# PropertyInfoExtensions<no value>

{{< rawhtml >}}

            <article class="content wrap" id="_content" data-uid="ETLBox.Helper.PropertyInfoExtensions">
  <h1 id="ETLBox_Helper_PropertyInfoExtensions" data-uid="ETLBox.Helper.PropertyInfoExtensions" class="text-break">Class PropertyInfoExtensions</h1>
  <div class="markdown level0 summary"><p>Reflection helper class that allows to directly set values in properties.</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">PropertyInfoExtensions</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
    </div>
  </div>
<h6><strong>Namespace</strong>: ETLBox.Helper</h6>
  <h6><strong>Assembly</strong>: ETLBox.dll</h6>
  <h5 id="ETLBox_Helper_PropertyInfoExtensions_syntax">Syntax</h5>
{{< /rawhtml >}}

```C#
    public static class PropertyInfoExtensions
```

{{< rawhtml >}}
  <h3 id="methods">Methods
</h3>
  <a id="ETLBox_Helper_PropertyInfoExtensions_SetValueByType_" data-uid="ETLBox.Helper.PropertyInfoExtensions.SetValueByType*"></a>
  <h4 id="ETLBox_Helper_PropertyInfoExtensions_SetValueByType_System_Reflection_PropertyInfo_System_Object_System_Object_System_Type_" data-uid="ETLBox.Helper.PropertyInfoExtensions.SetValueByType(System.Reflection.PropertyInfo,System.Object,System.Object,System.Type)">SetValueByType(PropertyInfo, object, object, Type)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="declaration">Declaration</h5>
{{< /rawhtml >}}

```C#
    public static void SetValueByType(this PropertyInfo pi, object obj, object value, Type enumType)
```

{{< rawhtml >}}
  <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.reflection.propertyinfo">PropertyInfo</a></td>
        <td><span class="parametername">pi</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
        <td><span class="parametername">obj</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
        <td><span class="parametername">enumType</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>

{{< /rawhtml >}}
