Declares a local variable.
[Visual Basic] Public Function DeclareLocal( _ ByVal localType As Type _ ) As LocalBuilder [C#] public LocalBuilder DeclareLocal( Type localType ); [C++] public: LocalBuilder* DeclareLocal( Type* localType ); [JScript] public function DeclareLocal( localType : Type ) : LocalBuilder;
The declared local variable.
Exception Type | Condition |
---|---|
ArgumentNullException | if localType is a null reference (in Visual Basic Nothing) |
InvalidOperationException | if the containing type has been created with CreateType. |
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace