# GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Repeat

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_Tools_EnumerableExtensions_Repeat_" data-uid="GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Repeat*">Repeat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Tools_EnumerableExtensions_Repeat_" data-uid="GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Repeat*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Tools_EnumerableExtensions_Repeat__1___0_System_Int32_" data-uid="GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Repeat``1(``0,System.Int32)">Repeat&lt;T&gt;(T, int)</h4>
<div class="markdown level1 summary"><p>Generates a sequence that contains one repeated value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEnumerable&lt;T&gt; Repeat&lt;T&gt;(this T item, int times)</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><span class="xref">T</span></td>
      <td><span class="parametername">item</span></td>
      <td><p>The value to be repeated.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">times</span></td>
      <td><p>The number of times to repeat the value in the generated sequence</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable&lt;T&gt;</a> that contains a repeated value.</p>
</td>
    </tr>
  </tbody>
</table>
<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 the value to be repeated in the result sequence.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
