src/Mimp.SeeSharper.Reflection/PropertyInfoExtensions.cs
/// <summary>
/// Return a compiled delegate to access the property with a return type of the property type.
/// </summary>
/// <param name="property"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Return a compiled delegate to access the property with a return type of the property type.
Return a compiled delegate to access the property with a return type of the property type .
public static Delegate GetInstanceAccessDelegate(this PropertyInfo property)
        {
            if (property is null)
                throw new ArgumentNullException(nameof(property));
            return property.GetInstanceAccessDelegate(Expression.GetFuncType(property.ReflectedType!, property.PropertyType));
        }
public static Delegate GetInstanceAccessDelegate ( this PropertyInfo property ) { if ( property is null ) throw new ArgumentNullException ( nameof ( property ) ) ; return property . GetInstanceAccessDelegate ( Expression . GetFuncType ( property . ReflectedType ! , property . PropertyType ) ) ; }
Return a compiled delegate to access the property with a return type of the property type.
Return a compiled delegate to access the property with a return type of the property type .
None
None
PropertyInfo
this
<not_specific>
property
<not_specific>
None