scripts
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
/// <summary>Discovers the attributes of a local variable and provides access to local variable metadata.</summary>
|
||||
// Token: 0x02000247 RID: 583
|
||||
[ComVisible(true)]
|
||||
public class LocalVariableInfo
|
||||
{
|
||||
// Token: 0x06001E40 RID: 7744 RVA: 0x00070A34 File Offset: 0x0006EC34
|
||||
internal LocalVariableInfo()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a <see cref="T:System.Boolean" /> value indicating whether the object referred to by the local variable is pinned in memory.</summary>
|
||||
/// <returns>true if the object referred to by the variable is pinned in memory; otherwise, false.</returns>
|
||||
// Token: 0x17000582 RID: 1410
|
||||
// (get) Token: 0x06001E41 RID: 7745 RVA: 0x00070A3C File Offset: 0x0006EC3C
|
||||
public virtual bool IsPinned
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.is_pinned;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the index of the local variable within the method body.</summary>
|
||||
/// <returns>An integer value that represents the order of declaration of the local variable within the method body.</returns>
|
||||
// Token: 0x17000583 RID: 1411
|
||||
// (get) Token: 0x06001E42 RID: 7746 RVA: 0x00070A44 File Offset: 0x0006EC44
|
||||
public virtual int LocalIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)this.position;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the type of the local variable.</summary>
|
||||
/// <returns>A <see cref="T:System.Type" /> object that represents the type of the local variable.</returns>
|
||||
// Token: 0x17000584 RID: 1412
|
||||
// (get) Token: 0x06001E43 RID: 7747 RVA: 0x00070A4C File Offset: 0x0006EC4C
|
||||
public virtual Type LocalType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Returns a user-readable string that describes the local variable.</summary>
|
||||
/// <returns>A string that displays information about the local variable, including the type name, index, and pinned status.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user