Represents a local variable. Local variables are owned by method bodies
(MethodBodyDeclaration).
Namespace:
PostSharp.CodeModelAssembly: PostSharp.Core (in PostSharp.Core.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class LocalVariableDeclaration _ Inherits Declaration _ Implements IObservable(Of Integer), ICloneable |
| C# |
|---|
public sealed class LocalVariableDeclaration : Declaration, IObservable<int>, ICloneable |
| Visual C++ |
|---|
public ref class LocalVariableDeclaration sealed : public Declaration, IObservable<int>, ICloneable |
Remarks
A LocalVariableDeclaration it referenced by ordinal; it has
no name. Positions are assigned to a name in lexical scopes. Lexical
scopes are implemented by the InstructionBlock type and
assignment of names to a local variable are done by the LocalVariableSymbol
type.
Inheritance Hierarchy
System..::.Object
PostSharp.CodeModel..::.Element
PostSharp.CodeModel..::.Declaration
PostSharp.CodeModel..::.LocalVariableDeclaration
PostSharp.CodeModel..::.Element
PostSharp.CodeModel..::.Declaration
PostSharp.CodeModel..::.LocalVariableDeclaration