MethodBase.IsStatic 属性

定义

获取一个值,该值指示方法是否为 staticGets a value indicating whether the method is static.

public:
 property bool IsStatic { bool get(); };
public bool IsStatic { get; }
member this.IsStatic : bool
Public ReadOnly Property IsStatic As Boolean

属性值

如果方法为 true,则为 static;否则为 falsetrue if this method is static; otherwise, false.

实现

注解

静态成员不能隐式引用类中的实例数据。A static member cannot implicitly reference instance data in a class.

适用于

另请参阅