Files
2026-04-10 22:50:51 +02:00

214 lines
12 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Obtains information about the attributes of a member and provides access to member metadata.</summary>
// Token: 0x02000224 RID: 548
[Token(Token = "0x2000224")]
[ComDefaultInterface(typeof(_MemberInfo))]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[Serializable]
public abstract class MemberInfo : ICustomAttributeProvider, _MemberInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.MemberInfo" /> class.</summary>
// Token: 0x060013DE RID: 5086 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013DE")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
protected MemberInfo()
{
}
/// <summary>When overridden in a derived class, gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating the type of the member - method, constructor, event, and so on.</summary>
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating the type of member.</returns>
// Token: 0x170001FB RID: 507
// (get) Token: 0x060013DF RID: 5087
[Token(Token = "0x170001FB")]
public abstract MemberTypes MemberType
{
[Token(Token = "0x60013DF")]
[Address(Slot = "7")]
get;
}
/// <summary>Gets the name of the current member.</summary>
/// <returns>A <see cref="T:System.String" /> containing the name of this member.</returns>
// Token: 0x170001FC RID: 508
// (get) Token: 0x060013E0 RID: 5088
[Token(Token = "0x170001FC")]
public abstract string Name
{
[Token(Token = "0x60013E0")]
[Address(Slot = "8")]
get;
}
/// <summary>Gets the class that declares this member.</summary>
/// <returns>The <see langword="Type" /> object for the class that declares this member.</returns>
// Token: 0x170001FD RID: 509
// (get) Token: 0x060013E1 RID: 5089
[Token(Token = "0x170001FD")]
public abstract Type DeclaringType
{
[Token(Token = "0x60013E1")]
[Address(Slot = "9")]
get;
}
/// <summary>Gets the class object that was used to obtain this instance of <see langword="MemberInfo" />.</summary>
/// <returns>The <see langword="Type" /> object through which this <see langword="MemberInfo" /> object was obtained.</returns>
// Token: 0x170001FE RID: 510
// (get) Token: 0x060013E2 RID: 5090
[Token(Token = "0x170001FE")]
public abstract Type ReflectedType
{
[Token(Token = "0x60013E2")]
[Address(Slot = "10")]
get;
}
/// <summary>Gets a collection that contains this member's custom attributes.</summary>
/// <returns>A collection that contains this member's custom attributes.</returns>
// Token: 0x170001FF RID: 511
// (get) Token: 0x060013E3 RID: 5091 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001FF")]
public virtual IEnumerable<CustomAttributeData> CustomAttributes
{
[Token(Token = "0x60013E3")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920", Slot = "11")]
get
{
return null;
}
}
/// <summary>When overridden in a derived class, returns an array of all custom attributes applied to this member.</summary>
/// <param name="inherit">
/// <see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" />. This parameter is ignored for properties and events.</param>
/// <returns>An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined.</returns>
/// <exception cref="T:System.InvalidOperationException">This member belongs to a type that is loaded into the reflection-only context. See How to: Load Assemblies into the Reflection-Only Context.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type could not be loaded.</exception>
// Token: 0x060013E4 RID: 5092
[Token(Token = "0x60013E4")]
[Address(Slot = "12")]
public abstract object[] GetCustomAttributes(bool inherit);
/// <summary>When overridden in a derived class, returns an array of custom attributes applied to this member and identified by <see cref="T:System.Type" />.</summary>
/// <param name="attributeType">The type of attribute to search for. Only attributes that are assignable to this type are returned.</param>
/// <param name="inherit">
/// <see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" />. This parameter is ignored for properties and events.</param>
/// <returns>An array of custom attributes applied to this member, or an array with zero elements if no attributes assignable to <paramref name="attributeType" /> have been applied.</returns>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
/// <exception cref="T:System.ArgumentNullException">If <paramref name="attributeType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">This member belongs to a type that is loaded into the reflection-only context. See How to: Load Assemblies into the Reflection-Only Context.</exception>
// Token: 0x060013E5 RID: 5093
[Token(Token = "0x60013E5")]
[Address(Slot = "13")]
public abstract object[] GetCustomAttributes(Type attributeType, bool inherit);
/// <summary>When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member.</summary>
/// <param name="attributeType">The type of custom attribute to search for. The search includes derived types.</param>
/// <param name="inherit">
/// <see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" />. This parameter is ignored for properties and events.</param>
/// <returns>
/// <see langword="true" /> if one or more instances of <paramref name="attributeType" /> or any of its derived types is applied to this member; otherwise, <see langword="false" />.</returns>
// Token: 0x060013E6 RID: 5094
[Token(Token = "0x60013E6")]
[Address(Slot = "14")]
public abstract bool IsDefined(Type attributeType, bool inherit);
/// <summary>Returns a list of <see cref="T:System.Reflection.CustomAttributeData" /> objects representing data about the attributes that have been applied to the target member.</summary>
/// <returns>A generic list of <see cref="T:System.Reflection.CustomAttributeData" /> objects representing data about the attributes that have been applied to the target member.</returns>
// Token: 0x060013E7 RID: 5095 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013E7")]
[Address(RVA = "0x2A09A10", Offset = "0x2A08810", VA = "0x182A09A10", Slot = "15")]
public virtual IList<CustomAttributeData> GetCustomAttributesData()
{
return null;
}
/// <summary>Gets a value that identifies a metadata element.</summary>
/// <returns>A value which, in combination with <see cref="P:System.Reflection.MemberInfo.Module" />, uniquely identifies a metadata element.</returns>
/// <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Reflection.MemberInfo" /> represents an array method, such as <see langword="Address" />, on an array type whose element type is a dynamic type that has not been completed. To get a metadata token in this case, pass the <see cref="T:System.Reflection.MemberInfo" /> object to the <see cref="M:System.Reflection.Emit.ModuleBuilder.GetMethodToken(System.Reflection.MethodInfo)" /> method; or use the <see cref="M:System.Reflection.Emit.ModuleBuilder.GetArrayMethodToken(System.Type,System.String,System.Reflection.CallingConventions,System.Type,System.Type[])" /> method to get the token directly, instead of using the <see cref="M:System.Reflection.Emit.ModuleBuilder.GetArrayMethod(System.Type,System.String,System.Reflection.CallingConventions,System.Type,System.Type[])" /> method to get a <see cref="T:System.Reflection.MethodInfo" /> first.</exception>
// Token: 0x17000200 RID: 512
// (get) Token: 0x060013E8 RID: 5096 RVA: 0x0000EE08 File Offset: 0x0000D008
[Token(Token = "0x17000200")]
public virtual int MetadataToken
{
[Token(Token = "0x60013E8")]
[Address(RVA = "0x2A09A60", Offset = "0x2A08860", VA = "0x182A09A60", Slot = "16")]
get
{
return 0;
}
}
/// <summary>Gets the module in which the type that declares the member represented by the current <see cref="T:System.Reflection.MemberInfo" /> is defined.</summary>
/// <returns>The <see cref="T:System.Reflection.Module" /> in which the type that declares the member represented by the current <see cref="T:System.Reflection.MemberInfo" /> is defined.</returns>
/// <exception cref="T:System.NotImplementedException">This method is not implemented.</exception>
// Token: 0x17000201 RID: 513
// (get) Token: 0x060013E9 RID: 5097 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000201")]
public virtual Module Module
{
[Token(Token = "0x60013E9")]
[Address(RVA = "0x2A09A70", Offset = "0x2A08870", VA = "0x182A09A70", Slot = "17")]
get
{
return null;
}
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.MemberInfo" /> objects are equal.</summary>
/// <param name="left">The <see cref="T:System.Reflection.MemberInfo" /> to compare to <paramref name="right" />.</param>
/// <param name="right">The <see cref="T:System.Reflection.MemberInfo" /> to compare to <paramref name="left" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is equal to <paramref name="right" />; otherwise <see langword="false" />.</returns>
// Token: 0x060013EA RID: 5098 RVA: 0x0000EE20 File Offset: 0x0000D020
[Token(Token = "0x60013EA")]
[Address(RVA = "0x2A09BA0", Offset = "0x2A089A0", VA = "0x182A09BA0")]
public static bool operator ==(MemberInfo left, MemberInfo right)
{
return default(bool);
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.MemberInfo" /> objects are not equal.</summary>
/// <param name="left">The <see cref="T:System.Reflection.MemberInfo" /> to compare to <paramref name="right" />.</param>
/// <param name="right">The <see cref="T:System.Reflection.MemberInfo" /> to compare to <paramref name="left" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is not equal to <paramref name="right" />; otherwise <see langword="false" />.</returns>
// Token: 0x060013EB RID: 5099 RVA: 0x0000EE38 File Offset: 0x0000D038
[Token(Token = "0x60013EB")]
[Address(RVA = "0x2A09EB0", Offset = "0x2A08CB0", VA = "0x182A09EB0")]
public static bool operator !=(MemberInfo left, MemberInfo 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: 0x060013EC RID: 5100 RVA: 0x0000EE50 File Offset: 0x0000D050
[Token(Token = "0x60013EC")]
[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: 0x060013ED RID: 5101 RVA: 0x0000EE68 File Offset: 0x0000D068
[Token(Token = "0x60013ED")]
[Address(RVA = "0x2A02170", Offset = "0x2A00F70", VA = "0x182A02170", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
}
}