# C1.Data.DataSource.DependencyObjectCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_DataSource_DependencyObjectCollection_1" data-uid="C1.Data.DataSource.DependencyObjectCollection`1" class="text-break">DependencyObjectCollection&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>An observable collection of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">dependency objects</a>.</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;T&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;T&gt;</div>
    <div class="level3"><span class="xref">DependencyObjectCollection&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Data.DataSource.FilterDescriptorCollection.html">FilterDescriptorCollection</a></div>
      <div class="level4"><a class="xref" href="C1.Data.DataSource.GroupDescriptorCollection.html">GroupDescriptorCollection</a></div>
      <div class="level4"><a class="xref" href="C1.Data.DataSource.SortDescriptorCollection.html">SortDescriptorCollection</a></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;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&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;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&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="C1.Data.DataSource.html">C1.Data.DataSource</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_DataSource_DependencyObjectCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DependencyObjectCollection&lt;T&gt; : ObservableCollection&lt;T&gt;, IList&lt;T&gt;, ICollection&lt;T&gt;, IList, ICollection, IReadOnlyList&lt;T&gt;, IReadOnlyCollection&lt;T&gt;, IEnumerable&lt;T&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where T : DependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DependencyObjectCollection(Of T As DependencyObject)
    Inherits ObservableCollection(Of T)
    Implements IList(Of T), ICollection(Of T), IList, ICollection, IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), 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">T</span></td>
        <td><p>The type of objects in the collection. Must be derived from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</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="C1_Data_DataSource_DependencyObjectCollection_1__ctor" data-uid="C1.Data.DataSource.DependencyObjectCollection`1.#ctor">
          <a class="xref" href="C1.Data.DataSource.DependencyObjectCollection-1.-ctor.html#C1_Data_DataSource_DependencyObjectCollection_1__ctor">DependencyObjectCollection()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_DataSource_DependencyObjectCollection_1_InsertItem_System_Int32__0_" data-uid="C1.Data.DataSource.DependencyObjectCollection`1.InsertItem(System.Int32,`0)">
          <a class="xref" href="C1.Data.DataSource.DependencyObjectCollection-1.InsertItem.html#C1_Data_DataSource_DependencyObjectCollection_1_InsertItem_System_Int32__0_">InsertItem(int, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_DataSource_DependencyObjectCollection_1_SetItem_System_Int32__0_" data-uid="C1.Data.DataSource.DependencyObjectCollection`1.SetItem(System.Int32,`0)">
          <a class="xref" href="C1.Data.DataSource.DependencyObjectCollection-1.SetItem.html#C1_Data_DataSource_DependencyObjectCollection_1_SetItem_System_Int32__0_">SetItem(int, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the element at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Data.Entities.EntityFrameworkExtensions.AsLive.html#C1_Data_Entities_EntityFrameworkExtensions_AsLive__1_System_Collections_Generic_ICollection___0__C1_Data_Entities_EntityClientScope_">EntityFrameworkExtensions.AsLive&lt;T&gt;(ICollection&lt;T&gt;, EntityClientScope)</a>
  </div>
  <div>
      <a class="xref" href="C1.Data.DataExtensions.ExecuteIn.html#C1_Data_DataExtensions_ExecuteIn__1_System_Collections_Generic_IEnumerable___0__C1_Data_ClientScope_">DataExtensions.ExecuteIn&lt;T&gt;(IEnumerable&lt;T&gt;, ClientScope)</a>
  </div>

</div>
