# C1.C1Preview.Unit.op_Implicit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*">implicit operator Operator
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*"></a>
<h4 id="C1_C1Preview_Unit_op_Implicit_C1_C1Preview_Unit__System_Double" data-uid="C1.C1Preview.Unit.op_Implicit(C1.C1Preview.Unit)~System.Double">implicit operator double(Unit)</h4>
<div class="markdown level1 summary"><p>Returns the absolute value of a <a class="xref" href="C1.C1Preview.Unit.html">Unit</a> expressed in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Default">Default</a> units.</p>
<p>Throws exception if the operation cannot be performed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static implicit operator double(Unit value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Widening Operator CType(value As Unit) As Double</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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The unit value to convert.</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.double">double</a></td>
      <td><p>The absolute value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*"></a>
<h4 id="C1_C1Preview_Unit_op_Implicit_C1_C1Preview_Unit__System_String" data-uid="C1.C1Preview.Unit.op_Implicit(C1.C1Preview.Unit)~System.String">implicit operator string(Unit)</h4>
<div class="markdown level1 summary"><p>Converts a unit value to a string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static implicit operator string(Unit value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Widening Operator CType(value As Unit) As String</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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The unit to convert.</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.string">string</a></td>
      <td><p>The string representing the unit value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*"></a>
<h4 id="C1_C1Preview_Unit_op_Implicit_System_Double__C1_C1Preview_Unit" data-uid="C1.C1Preview.Unit.op_Implicit(System.Double)~C1.C1Preview.Unit">implicit operator Unit(double)</h4>
<div class="markdown level1 summary"><p>Converts a <b>double</b> value to a <a class="xref" href="C1.C1Preview.Unit.html">Unit</a> using <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Default">Default</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static implicit operator Unit(double value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Widening Operator CType(value As Double) As Unit</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 <b>double</b> value.</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.C1Preview.Unit.html">Unit</a></td>
      <td><p>The unit value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*"></a>
<h4 id="C1_C1Preview_Unit_op_Implicit_System_Int32__C1_C1Preview_Unit" data-uid="C1.C1Preview.Unit.op_Implicit(System.Int32)~C1.C1Preview.Unit">implicit operator Unit(int)</h4>
<div class="markdown level1 summary"><p>Converts an integer value to a <a class="xref" href="C1.C1Preview.Unit.html">Unit</a> using <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Default">Default</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static implicit operator Unit(int value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Widening Operator CType(value As Integer) As Unit</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.</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.C1Preview.Unit.html">Unit</a></td>
      <td><p>The unit value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Unit_op_Implicit_" data-uid="C1.C1Preview.Unit.op_Implicit*"></a>
<h4 id="C1_C1Preview_Unit_op_Implicit_System_String__C1_C1Preview_Unit" data-uid="C1.C1Preview.Unit.op_Implicit(System.String)~C1.C1Preview.Unit">implicit operator Unit(string)</h4>
<div class="markdown level1 summary"><p>Converts a string to a <a class="xref" href="C1.C1Preview.Unit.html">Unit</a> value (see <a class="xref" href="C1.C1Preview.Unit.-ctor.html#C1_C1Preview_Unit__ctor_System_String_">Unit(string)</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static implicit operator Unit(string value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Widening Operator CType(value As String) As Unit</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 string to convert.</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.C1Preview.Unit.html">Unit</a></td>
      <td><p>The unit value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
