src/Mimp.SeeSharper.Reflection/PropertyInfoExtensions.cs
/// <summary>
/// Return a compield action to assign the property.
/// </summary>
/// <typeparam name="TInstance"></typeparam>
/// <typeparam name="TProperty"></typeparam>
/// <param name="property"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Return a compield action to assign the property.
Return a compield action to assign the property .
public static Action<TInstance, TProperty> GetInstanceAssignAction<TInstance, TProperty>(this PropertyInfo property)
            where TInstance : notnull
        {
            if (property is null)
                throw new ArgumentNullException(nameof(property));
            return property.GetInstanceAssignDelegate<Action<TInstance, TProperty?>>();
        }
public static Action < TInstance , TProperty > GetInstanceAssignAction < TInstance , TProperty > ( this PropertyInfo property ) where TInstance : notnull { if ( property is null ) throw new ArgumentNullException ( nameof ( property ) ) ; return property . GetInstanceAssignDelegate < Action < TInstance , TProperty ? > > ( ) ; }
Return a compield action to assign the property.
Return a compield action to assign the property .
None
None
PropertyInfo
this
property
None
typeparam
None
typeparam
None