# GrapeCity.ActiveReports.Converters.NotificationCollectionAdapter-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Converters_NotificationCollectionAdapter_2" data-uid="GrapeCity.ActiveReports.Converters.NotificationCollectionAdapter`2" class="text-break">NotificationCollectionAdapter&lt;TSource, TTarget&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents an adapter that converts an <span class="xref">GrapeCity.Viewer.Common.Implementation.INotificationCollection&lt;T&gt;</span> of <code class="typeparamref">TSource</code> type items to
a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection&lt;T&gt;</a> of <code class="typeparamref">TTarget</code> type items.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;TTarget&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;TTarget&gt;</div>
    <div class="level3"><span class="xref">NotificationCollectionAdapter&lt;TSource, TTarget&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TTarget&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TTarget&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;TTarget&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TTarget&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TTarget&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Converters.html">GrapeCity.ActiveReports.Converters</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Converters_NotificationCollectionAdapter_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class NotificationCollectionAdapter&lt;TSource, TTarget&gt; : ObservableCollection&lt;TTarget&gt;, IList&lt;TTarget&gt;, ICollection&lt;TTarget&gt;, IList, ICollection, IReadOnlyList&lt;TTarget&gt;, IReadOnlyCollection&lt;TTarget&gt;, IEnumerable&lt;TTarget&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TSource</span></td>
        <td><p>The type of items in the source <span class="xref">GrapeCity.Viewer.Common.Implementation.INotificationCollection&lt;T&gt;</span>.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TTarget</span></td>
        <td><p>The type of items in the target <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection&lt;T&gt;</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_NotificationCollectionAdapter_2__ctor_GrapeCity_Viewer_Common_Implementation_INotificationCollection__0__System_Func__0_System_Int32__1__" data-uid="GrapeCity.ActiveReports.Converters.NotificationCollectionAdapter`2.#ctor(GrapeCity.Viewer.Common.Implementation.INotificationCollection{`0},System.Func{`0,System.Int32,`1})">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.NotificationCollectionAdapter-2.-ctor.html#GrapeCity_ActiveReports_Converters_NotificationCollectionAdapter_2__ctor_GrapeCity_Viewer_Common_Implementation_INotificationCollection__0__System_Func__0_System_Int32__1__">NotificationCollectionAdapter(INotificationCollection&lt;TSource&gt;, Func&lt;TSource, int, TTarget&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Converters.NotificationCollectionAdapter-2.html">NotificationCollectionAdapter&lt;TSource, TTarget&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
