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