186 lines
9.6 KiB
C#
186 lines
9.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Discovers the attributes of a method and provides access to method metadata.</summary>
|
|
// Token: 0x0200022B RID: 555
|
|
[Token(Token = "0x200022B")]
|
|
[ComDefaultInterface(typeof(_MethodInfo))]
|
|
[ComVisible(true)]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[Serializable]
|
|
public abstract class MethodInfo : MethodBase, _MethodInfo
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.MethodInfo" /> class.</summary>
|
|
// Token: 0x06001419 RID: 5145 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001419")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
protected MethodInfo()
|
|
{
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.MethodInfo" /> objects are equal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="left" /> is equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600141A RID: 5146 RVA: 0x0000F018 File Offset: 0x0000D218
|
|
[Token(Token = "0x600141A")]
|
|
[Address(RVA = "0x2A0B000", Offset = "0x2A09E00", VA = "0x182A0B000")]
|
|
public static bool operator ==(MethodInfo left, MethodInfo right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.MethodInfo" /> objects are not equal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="left" /> is not equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600141B RID: 5147 RVA: 0x0000F030 File Offset: 0x0000D230
|
|
[Token(Token = "0x600141B")]
|
|
[Address(RVA = "0x2A0B0A0", Offset = "0x2A09EA0", VA = "0x182A0B0A0")]
|
|
public static bool operator !=(MethodInfo left, MethodInfo right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
|
|
/// <param name="obj">An object to compare with this instance, or <see langword="null" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600141C RID: 5148 RVA: 0x0000F048 File Offset: 0x0000D248
|
|
[Token(Token = "0x600141C")]
|
|
[Address(RVA = "0x4C3A20", Offset = "0x4C2820", VA = "0x1804C3A20", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x0600141D RID: 5149 RVA: 0x0000F060 File Offset: 0x0000D260
|
|
[Token(Token = "0x600141D")]
|
|
[Address(RVA = "0x2A02170", Offset = "0x2A00F70", VA = "0x182A02170", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a method.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a method.</returns>
|
|
// Token: 0x17000210 RID: 528
|
|
// (get) Token: 0x0600141E RID: 5150 RVA: 0x0000F078 File Offset: 0x0000D278
|
|
[Token(Token = "0x17000210")]
|
|
public override MemberTypes MemberType
|
|
{
|
|
[Token(Token = "0x600141E")]
|
|
[Address(RVA = "0x4101D0", Offset = "0x40EFD0", VA = "0x1804101D0", Slot = "7")]
|
|
get
|
|
{
|
|
return (MemberTypes)0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the return type of this method.</summary>
|
|
/// <returns>The return type of this method.</returns>
|
|
// Token: 0x17000211 RID: 529
|
|
// (get) Token: 0x0600141F RID: 5151 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000211")]
|
|
public virtual Type ReturnType
|
|
{
|
|
[Token(Token = "0x600141F")]
|
|
[Address(RVA = "0x2A0AFB0", Offset = "0x2A09DB0", VA = "0x182A0AFB0", Slot = "43")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, returns the <see cref="T:System.Reflection.MethodInfo" /> object for the method on the direct or indirect base class in which the method represented by this instance was first declared.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object for the first implementation of this method.</returns>
|
|
// Token: 0x06001420 RID: 5152
|
|
[Token(Token = "0x6001420")]
|
|
[Address(Slot = "44")]
|
|
public abstract MethodInfo GetBaseDefinition();
|
|
|
|
/// <summary>Returns an array of <see cref="T:System.Type" /> objects that represent the type arguments of a generic method or the type parameters of a generic method definition.</summary>
|
|
/// <returns>An array of <see cref="T:System.Type" /> objects that represent the type arguments of a generic method or the type parameters of a generic method definition. Returns an empty array if the current method is not a generic method.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not supported.</exception>
|
|
// Token: 0x06001421 RID: 5153 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001421")]
|
|
[Address(RVA = "0x2A0AE60", Offset = "0x2A09C60", VA = "0x182A0AE60", Slot = "25")]
|
|
[ComVisible(true)]
|
|
public override Type[] GetGenericArguments()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.Reflection.MethodInfo" /> object that represents a generic method definition from which the current method can be constructed.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing a generic method definition from which the current method can be constructed.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The current method is not a generic method. That is, <see cref="P:System.Reflection.MethodBase.IsGenericMethod" /> returns <see langword="false" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not supported.</exception>
|
|
// Token: 0x06001422 RID: 5154 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001422")]
|
|
[Address(RVA = "0x2A0AED0", Offset = "0x2A09CD0", VA = "0x182A0AED0", Slot = "45")]
|
|
[ComVisible(true)]
|
|
public virtual MethodInfo GetGenericMethodDefinition()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Substitutes the elements of an array of types for the type parameters of the current generic method definition, and returns a <see cref="T:System.Reflection.MethodInfo" /> object representing the resulting constructed method.</summary>
|
|
/// <param name="typeArguments">An array of types to be substituted for the type parameters of the current generic method definition.</param>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object that represents the constructed method formed by substituting the elements of <paramref name="typeArguments" /> for the type parameters of the current generic method definition.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Reflection.MethodInfo" /> does not represent a generic method definition. That is, <see cref="P:System.Reflection.MethodBase.IsGenericMethodDefinition" /> returns <see langword="false" />.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="typeArguments" /> is <see langword="null" />.
|
|
/// -or-
|
|
/// Any element of <paramref name="typeArguments" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The number of elements in <paramref name="typeArguments" /> is not the same as the number of type parameters of the current generic method definition.
|
|
/// -or-
|
|
/// An element of <paramref name="typeArguments" /> does not satisfy the constraints specified for the corresponding type parameter of the current generic method definition.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">This method is not supported.</exception>
|
|
// Token: 0x06001423 RID: 5155 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001423")]
|
|
[Address(RVA = "0x2A0AF40", Offset = "0x2A09D40", VA = "0x182A0AF40", Slot = "46")]
|
|
public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates a delegate of the specified type from this method.</summary>
|
|
/// <param name="delegateType">The type of the delegate to create.</param>
|
|
/// <returns>The delegate for this method.</returns>
|
|
// Token: 0x06001424 RID: 5156 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001424")]
|
|
[Address(RVA = "0x2A0AD80", Offset = "0x2A09B80", VA = "0x182A0AD80", Slot = "47")]
|
|
public virtual Delegate CreateDelegate(Type delegateType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates a delegate of the specified type with the specified target from this method.</summary>
|
|
/// <param name="delegateType">The type of the delegate to create.</param>
|
|
/// <param name="target">The object targeted by the delegate.</param>
|
|
/// <returns>The delegate for this method.</returns>
|
|
// Token: 0x06001425 RID: 5157 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001425")]
|
|
[Address(RVA = "0x2A0ADF0", Offset = "0x2A09BF0", VA = "0x182A0ADF0", Slot = "48")]
|
|
public virtual Delegate CreateDelegate(Type delegateType, object target)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001426 RID: 5158 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001426")]
|
|
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "49")]
|
|
internal virtual MethodInfo GetBaseMethod()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|