Megosztás a következőn keresztül:


ILocalSymbol.IsUsing Property

Definition

Returns true if the local variable is declared in resource-acquisition of a 'using statement'; otherwise false

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

Property Value

Examples

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

Applies to