# C1.Web.Mvc.Fluent.ListItemFactory-2.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add_" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add_" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add">Add()</h4>
<div class="markdown level1 summary"><p>Add a default TItem instance to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TItemBuilder Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As TItemBuilder</code></pre>
</div>
<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><span class="xref">TItemBuilder</span></td>
      <td><p>The item builder</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add_" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add_System_Action__1__" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add(System.Action{`1})">Add(Action&lt;TItemBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Add a TItem instance updated by the specified action to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ListItemFactory&lt;TItem, TItemBuilder&gt; Add(Action&lt;TItemBuilder&gt; build)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(build As Action(Of TItemBuilder)) As ListItemFactory(Of TItem, TItemBuilder)</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.action-1">Action</a>&lt;TItemBuilder&gt;</td>
      <td><span class="parametername">build</span></td>
      <td><p>The specified action to update TItem instance.</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="C1.Web.Mvc.Fluent.ListItemFactory-2.html">ListItemFactory</a>&lt;TItem, TItemBuilder&gt;</td>
      <td><p>The factory instance</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add_" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_ListItemFactory_2_Add__0_" data-uid="C1.Web.Mvc.Fluent.ListItemFactory`2.Add(`0)">Add(TItem)</h4>
<div class="markdown level1 summary"><p>Add a TItem instance to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual ListItemFactory&lt;TItem, TItemBuilder&gt; Add(TItem item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Add(item As TItem) As ListItemFactory(Of TItem, TItemBuilder)</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">TItem</span></td>
      <td><span class="parametername">item</span></td>
      <td><p>The TItem instance.</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="C1.Web.Mvc.Fluent.ListItemFactory-2.html">ListItemFactory</a>&lt;TItem, TItemBuilder&gt;</td>
      <td><p>The factory instance</p>
</td>
    </tr>
  </tbody>
</table>
</div>
