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