src/Mimp.SeeSharper.Reflection/PropertyInfoExtensions.cs
/// <summary>
/// Check if property has a public setter.
/// </summary>
/// <param name="property"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Check if property has a public setter.
Check if property has a public setter .
public static bool HasPublicSet(this PropertyInfo property)
        {
            if (property is null)
                throw new ArgumentNullException(nameof(property));
            return property.SetMethod is not null && property.SetMethod.IsPublic;
        }
public static bool HasPublicSet ( this PropertyInfo property ) { if ( property is null ) throw new ArgumentNullException ( nameof ( property ) ) ; return property . SetMethod is not null && property . SetMethod . IsPublic ; }
Check if property has a public setter.
Check if property has a public setter .
None
None
PropertyInfo
this
property
None