MethodBodyBlock.LocalVariablesInitialized 属性

定义

获取一个值,该值指示此方法中的局部变量是否初始化为其类型的默认值。

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

属性值

true 如果初始化局部变量,则为 ;否则为 false

适用于