LocalVariableInfo Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Discovers the attributes of a local variable and provides access to local variable metadata.
Assembly: mscorlib (in mscorlib.dll)
The LocalVariableInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IsPinned | Gets a Boolean value indicating whether the object referred to by the local variable is pinned in memory. |
![]() | LocalIndex | Gets the index of the local variable within the method body. |
![]() | LocalType | Gets the type of the local variable. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a user-readable string that describes the local variable. (Overrides Object::ToString().) |
In Windows Phone, LocalVariableInfo serves as the base class for LocalBuilder. It has no other use, because there is no way to create a LocalVariableInfo object.
Version Notes
Windows Phone
LocalVariableInfo is not supported in Windows Phone.
Show:


