- localType
- A Type object that represents the type of the local variable.
The declared local variable.
The local variable is created in the current lexical scope; for example, if code is being emitted in a for loop (For loop in Visual Basic), the scope of the variable is the loop.
A local variable created with this overload is not pinned. To create a pinned variable for use with unmanaged pointers, use the ILGenerator.DeclareLocal(Type, bool) method overload.