using System; using System.Runtime.InteropServices; namespace System.Reflection { /// Discovers the attributes of a local variable and provides access to local variable metadata. // Token: 0x02000247 RID: 583 [ComVisible(true)] public class LocalVariableInfo { // Token: 0x06001E40 RID: 7744 RVA: 0x00070A34 File Offset: 0x0006EC34 internal LocalVariableInfo() { } /// Gets a value indicating whether the object referred to by the local variable is pinned in memory. /// true if the object referred to by the variable is pinned in memory; otherwise, false. // Token: 0x17000582 RID: 1410 // (get) Token: 0x06001E41 RID: 7745 RVA: 0x00070A3C File Offset: 0x0006EC3C public virtual bool IsPinned { get { return this.is_pinned; } } /// Gets the index of the local variable within the method body. /// An integer value that represents the order of declaration of the local variable within the method body. // Token: 0x17000583 RID: 1411 // (get) Token: 0x06001E42 RID: 7746 RVA: 0x00070A44 File Offset: 0x0006EC44 public virtual int LocalIndex { get { return (int)this.position; } } /// Gets the type of the local variable. /// A object that represents the type of the local variable. // Token: 0x17000584 RID: 1412 // (get) Token: 0x06001E43 RID: 7747 RVA: 0x00070A4C File Offset: 0x0006EC4C public virtual Type LocalType { get { return this.type; } } /// Returns a user-readable string that describes the local variable. /// A string that displays information about the local variable, including the type name, index, and pinned status. // Token: 0x06001E44 RID: 7748 RVA: 0x00070A54 File Offset: 0x0006EC54 public override string ToString() { if (this.is_pinned) { return string.Format("{0} ({1}) (pinned)", this.type, this.position); } return string.Format("{0} ({1})", this.type, this.position); } // Token: 0x04000A5F RID: 2655 internal Type type; // Token: 0x04000A60 RID: 2656 internal bool is_pinned; // Token: 0x04000A61 RID: 2657 internal ushort position; } }