共用方式為


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)) { ... } 

適用於