Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Reflection/MethodInfo.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000232 RID: 562
[Token(Token = "0x2000232")]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(_MethodInfo))]
[Serializable]
public abstract class MethodInfo : MethodBase, _MethodInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.MethodInfo" /> class.</summary>
// Token: 0x06001457 RID: 5207 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001457")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
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: 0x06001458 RID: 5208 RVA: 0x0000F378 File Offset: 0x0000D578
[Token(Token = "0x6001458")]
[Address(RVA = "0x30BCC80", Offset = "0x30BBC80", VA = "0x1830BCC80")]
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: 0x06001459 RID: 5209 RVA: 0x0000F390 File Offset: 0x0000D590
[Token(Token = "0x6001459")]
[Address(RVA = "0x30BCD20", Offset = "0x30BBD20", VA = "0x1830BCD20")]
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: 0x0600145A RID: 5210 RVA: 0x0000F3A8 File Offset: 0x0000D5A8
[Token(Token = "0x600145A")]
[Address(RVA = "0x2112960", Offset = "0x2111960", VA = "0x182112960", 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: 0x0600145B RID: 5211 RVA: 0x0000F3C0 File Offset: 0x0000D5C0
[Token(Token = "0x600145B")]
[Address(RVA = "0x4F9150", Offset = "0x4F8150", VA = "0x1804F9150", 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: 0x1700021A RID: 538
// (get) Token: 0x0600145C RID: 5212 RVA: 0x0000F3D8 File Offset: 0x0000D5D8
[Token(Token = "0x1700021A")]
public override MemberTypes MemberType
{
[Token(Token = "0x600145C")]
[Address(RVA = "0x681E00", Offset = "0x680E00", VA = "0x180681E00", Slot = "7")]
get
{
return (MemberTypes)0;
}
}
/// <summary>Gets the return type of this method.</summary>
/// <returns>The return type of this method.</returns>
// Token: 0x1700021B RID: 539
// (get) Token: 0x0600145D RID: 5213 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700021B")]
public virtual Type ReturnType
{
[Token(Token = "0x600145D")]
[Address(RVA = "0x30BCC30", Offset = "0x30BBC30", VA = "0x1830BCC30", 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: 0x0600145E RID: 5214
[Token(Token = "0x600145E")]
[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: 0x0600145F RID: 5215 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600145F")]
[Address(RVA = "0x30BCAE0", Offset = "0x30BBAE0", VA = "0x1830BCAE0", 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: 0x06001460 RID: 5216 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001460")]
[Address(RVA = "0x30BCB50", Offset = "0x30BBB50", VA = "0x1830BCB50", 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: 0x06001461 RID: 5217 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001461")]
[Address(RVA = "0x30BCBC0", Offset = "0x30BBBC0", VA = "0x1830BCBC0", 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: 0x06001462 RID: 5218 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001462")]
[Address(RVA = "0x30BCA00", Offset = "0x30BBA00", VA = "0x1830BCA00", 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: 0x06001463 RID: 5219 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001463")]
[Address(RVA = "0x30BCA70", Offset = "0x30BBA70", VA = "0x1830BCA70", Slot = "48")]
public virtual Delegate CreateDelegate(Type delegateType, object target)
{
return null;
}
// Token: 0x06001464 RID: 5220 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001464")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "49")]
internal virtual MethodInfo GetBaseMethod()
{
return null;
}
}
}