# C1.Schedule.BaseCollection-1.AddRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_BaseCollection_1_AddRange_" data-uid="C1.Schedule.BaseCollection`1.AddRange*">AddRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_BaseCollection_1_AddRange_" data-uid="C1.Schedule.BaseCollection`1.AddRange*"></a>
<h4 id="C1_Schedule_BaseCollection_1_AddRange__0___" data-uid="C1.Schedule.BaseCollection`1.AddRange(`0[])">AddRange(T[])</h4>
<div class="markdown level1 summary"><p>Adds an array of objects to the collection.
This methods clears the collection before adding new items.
Don't use it if you want to keep preexisting items.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AddRange(T[] items)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AddRange(items As T())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>T[]</td>
      <td><span class="parametername">items</span></td>
      <td><p>An array of items.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BaseCollection_1_AddRange_" data-uid="C1.Schedule.BaseCollection`1.AddRange*"></a>
<h4 id="C1_Schedule_BaseCollection_1_AddRange_System_Object___" data-uid="C1.Schedule.BaseCollection`1.AddRange(System.Object[])">AddRange(object[])</h4>
<div class="markdown level1 summary"><p>Adds an array of objects to the collection.
This methods clears the collection before adding new items.
Don't use it if you want to keep preexisting items.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddRange(object[] items)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddRange(items As Object())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</td>
      <td><span class="parametername">items</span></td>
      <td><p>An array of items.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
