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

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_TryEquals_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.TryEquals*">TryEquals Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_TryEquals_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.TryEquals*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_TryEquals_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_System_Boolean__" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.TryEquals(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant,System.Boolean@)">TryEquals(Variant, out bool)</h4>
<div class="markdown level1 summary"><p>Checks whether the Variant equals to the specified one.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryEquals(Variant other, out bool result)</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">other</span></td>
      <td><p>Variant to check with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">result</span></td>
      <td><p><code>True</code> if variants are equal, <code>False</code> otherwise.</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.boolean">bool</a></td>
      <td><p><code>True</code> if the variants are comparable, <code>False</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
