# GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.-ctor

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*">Variant Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Boolean_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Boolean)">Variant(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified boolean value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(bool value)</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.boolean">bool</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The boolean value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Int32_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Int32)">Variant(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified integer value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(int value)</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.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The integer value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Int64_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Int64)">Variant(long)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified long integer value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(long value)</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.int64">long</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The long integer value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_UInt64_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.UInt64)">Variant(ulong)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified unsigned long integer value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(ulong value)</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.uint64">ulong</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The unsigned long integer value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Double_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Double)">Variant(double)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified double value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(double value)</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.double">double</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Single_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Single)">Variant(float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified float value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(float value)</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.single">float</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Decimal_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Decimal)">Variant(decimal)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified decimal value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(decimal value)</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.decimal">decimal</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_Char_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.Char)">Variant(char)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(char value)</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.char">char</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_String_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.String)">Variant(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(string value)</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.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_TimeSpan_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.TimeSpan)">Variant(TimeSpan)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(TimeSpan value)</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.timespan">TimeSpan</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__ctor_System_DateTime_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.#ctor(System.DateTime)">Variant(DateTime)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the Variant with the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Variant(DateTime value)</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.datetime">DateTime</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value of the Variant.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
