# GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_LogicalNot

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_LogicalNot_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_LogicalNot*">operator ! Operator
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_LogicalNot_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_LogicalNot*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_LogicalNot_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_LogicalNot(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)">operator !(Variant)</h4>
<div class="markdown level1 summary"><p>Performs a logical negation on a <a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a> value if it is of boolean type, or a bitwise negation if it is of a numeric type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Variant operator !(Variant v)</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="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>Variant to be inverted.</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="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><p><code>Variant.True</code> if the given variant is False, False otherwise for boolean variant type .
Bitwise 'not' for numeric variants (int, long, ulong, float, double, decimal) and for string which can be parsed as numeric.
Returns 'Error' if the given variant is of a non-numeric, non-boolean type that does not support negation, such as TimeSpan, Date, or Object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
