共用方式為


ILocalSymbol.IsConst Property

Definition

Returns true if this local variable was declared as "const" (i.e. is a constant declaration). Also returns true for an enum member.

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

Property Value

Applies to