# C1.WPF.TypeEx

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_TypeEx" data-uid="C1.WPF.TypeEx" class="text-break">TypeEx Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.WPF.TypeEx.html">TypeEx</a> class provides useful extension methods for the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a> class.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">TypeEx</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_TypeEx_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class TypeEx</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module TypeEx</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_TypeEx_GetDefaultProperties_System_Type_" data-uid="C1.WPF.TypeEx.GetDefaultProperties(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetDefaultProperties.html#C1_WPF_TypeEx_GetDefaultProperties_System_Type_">GetDefaultProperties(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Get default property list of the specified types.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_GetDefaultPublicCtor_System_Type_" data-uid="C1.WPF.TypeEx.GetDefaultPublicCtor(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetDefaultPublicCtor.html#C1_WPF_TypeEx_GetDefaultPublicCtor_System_Type_">GetDefaultPublicCtor(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns default public instance parameter-less constructor for the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_GetEnumValues__1_System_Type_" data-uid="C1.WPF.TypeEx.GetEnumValues``1(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetEnumValues.html#C1_WPF_TypeEx_GetEnumValues__1_System_Type_">GetEnumValues&lt;T&gt;(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the values of an Enum type (Type.IsEnum == true).</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_GetIndexerProperties_System_Type_" data-uid="C1.WPF.TypeEx.GetIndexerProperties(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetIndexerProperties.html#C1_WPF_TypeEx_GetIndexerProperties_System_Type_">GetIndexerProperties(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Get indexed property list of the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_GetNonNullableType_System_Type_" data-uid="C1.WPF.TypeEx.GetNonNullableType(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetNonNullableType.html#C1_WPF_TypeEx_GetNonNullableType_System_Type_">GetNonNullableType(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the underlying type of a nullable type:
e.g. if Type = double?, then returns double.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_GetTypeInfo_System_Type_" data-uid="C1.WPF.TypeEx.GetTypeInfo(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.GetTypeInfo.html#C1_WPF_TypeEx_GetTypeInfo_System_Type_">GetTypeInfo(Type)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNullableType_System_Type_" data-uid="C1.WPF.TypeEx.IsNullableType(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNullableType.html#C1_WPF_TypeEx_IsNullableType_System_Type_">IsNullableType(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is a nullable type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNumeric_System_Type_" data-uid="C1.WPF.TypeEx.IsNumeric(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNumeric.html#C1_WPF_TypeEx_IsNumeric_System_Type_">IsNumeric(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is any of the numeric data types:
double, float, int, uint, long, ulong, short, ushort, sbyte, byte and decimal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNumericIntegral_System_Type_" data-uid="C1.WPF.TypeEx.IsNumericIntegral(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNumericIntegral.html#C1_WPF_TypeEx_IsNumericIntegral_System_Type_">IsNumericIntegral(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is any of the integral numeric data types:
int, uint, long, ulong, short, ushort, sbyte and byte.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNumericIntegralSigned_System_Type_" data-uid="C1.WPF.TypeEx.IsNumericIntegralSigned(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNumericIntegralSigned.html#C1_WPF_TypeEx_IsNumericIntegralSigned_System_Type_">IsNumericIntegralSigned(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is any of the integral signed numeric data types:
int, long, short and sbyte.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNumericIntegralUnsigned_System_Type_" data-uid="C1.WPF.TypeEx.IsNumericIntegralUnsigned(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNumericIntegralUnsigned.html#C1_WPF_TypeEx_IsNumericIntegralUnsigned_System_Type_">IsNumericIntegralUnsigned(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is any of the integral unsigned numeric data types:
uint, ulong, ushort and byte.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_IsNumericNonIntegral_System_Type_" data-uid="C1.WPF.TypeEx.IsNumericNonIntegral(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.IsNumericNonIntegral.html#C1_WPF_TypeEx_IsNumericNonIntegral_System_Type_">IsNumericNonIntegral(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the type is any of the numeric non-integral data types:
double, float and decimal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_New_System_Type_" data-uid="C1.WPF.TypeEx.New(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.New.html#C1_WPF_TypeEx_New_System_Type_">New(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of this type using the default constructor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_New__1_System_Type_" data-uid="C1.WPF.TypeEx.New``1(System.Type)">
          <a class="xref" href="C1.WPF.TypeEx.New.html#C1_WPF_TypeEx_New__1_System_Type_">New&lt;T&gt;(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of this type using the default constructor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_TypeEx_New__1_System_Type_System_Action___0__" data-uid="C1.WPF.TypeEx.New``1(System.Type,System.Action{``0})">
          <a class="xref" href="C1.WPF.TypeEx.New.html#C1_WPF_TypeEx_New__1_System_Type_System_Action___0__">New&lt;T&gt;(Type, Action&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of this type using the default constructor.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
