DeclareLocal Method

ILGenerator.DeclareLocal Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Declares a local variable.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method DeclareLocal(Type) Declares a local variable of the specified type.
Public method DeclareLocal(Type, Boolean) Declares a local variable of the specified type, optionally pinning the object referred to by the variable.
Top

Show:
© 2017 Microsoft