ILocalSymbol.IsUsing 属性

定义

如果在“using 语句”的资源获取中声明局部变量,则返回 true;否则为 false

public bool IsUsing { get; }
member this.IsUsing : bool
Public ReadOnly Property IsUsing As Boolean

属性值

示例

using (var localVariable = new StreamReader(path)) { ... } 

适用于