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