This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,163 @@
using System;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Contains static methods for retrieving custom attributes.</summary>
// Token: 0x02000209 RID: 521
[Token(Token = "0x2000209")]
public static class CustomAttributeExtensions
{
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified assembly.</summary>
/// <param name="element">The assembly to inspect.</param>
/// <param name="attributeType">The type of attribute to search for.</param>
/// <returns>A custom attribute that matches <paramref name="attributeType" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> or <paramref name="attributeType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="attributeType" /> is not derived from <see cref="T:System.Attribute" />.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
// Token: 0x060013E9 RID: 5097 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013E9")]
[Address(RVA = "0x30B6920", Offset = "0x30B5920", VA = "0x1830B6920")]
public static Attribute GetCustomAttribute(this Assembly element, Type attributeType)
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified member.</summary>
/// <param name="element">The member to inspect.</param>
/// <param name="attributeType">The type of attribute to search for.</param>
/// <returns>A custom attribute that matches <paramref name="attributeType" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> or <paramref name="attributeType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="attributeType" /> is not derived from <see cref="T:System.Attribute" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="element" /> is not a constructor, method, property, event, type, or field.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013EA RID: 5098 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013EA")]
[Address(RVA = "0x30B6900", Offset = "0x30B5900", VA = "0x1830B6900")]
public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType)
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified assembly.</summary>
/// <param name="element">The assembly to inspect.</param>
/// <typeparam name="T">The type of attribute to search for.</typeparam>
/// <returns>A custom attribute that matches <paramref name="T" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
// Token: 0x060013EB RID: 5099 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013EB")]
[Address(RVA = "0x1E52830", Offset = "0x1E51830", VA = "0x181E52830")]
public static T GetCustomAttribute<T>(this Assembly element) where T : Attribute
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified member.</summary>
/// <param name="element">The member to inspect.</param>
/// <typeparam name="T">The type of attribute to search for.</typeparam>
/// <returns>A custom attribute that matches <paramref name="T" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="element" /> is not a constructor, method, property, event, type, or field.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013EC RID: 5100 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013EC")]
[Address(RVA = "0x1E52770", Offset = "0x1E51770", VA = "0x181E52770")]
public static T GetCustomAttribute<T>(this MemberInfo element) where T : Attribute
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.</summary>
/// <param name="element">The member to inspect.</param>
/// <param name="attributeType">The type of attribute to search for.</param>
/// <param name="inherit">
/// <see langword="true" /> to inspect the ancestors of <paramref name="element" />; otherwise, <see langword="false" />.</param>
/// <returns>A custom attribute that matches <paramref name="attributeType" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> or <paramref name="attributeType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="attributeType" /> is not derived from <see cref="T:System.Attribute" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="element" /> is not a constructor, method, property, event, type, or field.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013ED RID: 5101 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013ED")]
[Address(RVA = "0x30B6930", Offset = "0x30B5930", VA = "0x1830B6930")]
public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType, bool inherit)
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.</summary>
/// <param name="element">The parameter to inspect.</param>
/// <param name="attributeType">The type of attribute to search for.</param>
/// <param name="inherit">
/// <see langword="true" /> to inspect the ancestors of <paramref name="element" />; otherwise, <see langword="false" />.</param>
/// <returns>A custom attribute matching <paramref name="attributeType" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> or <paramref name="attributeType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="attributeType" /> is not derived from <see cref="T:System.Attribute" />.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013EE RID: 5102 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013EE")]
[Address(RVA = "0x30B6910", Offset = "0x30B5910", VA = "0x1830B6910")]
public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType, bool inherit)
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.</summary>
/// <param name="element">The member to inspect.</param>
/// <param name="inherit">
/// <see langword="true" /> to inspect the ancestors of <paramref name="element" />; otherwise, <see langword="false" />.</param>
/// <typeparam name="T">The type of attribute to search for.</typeparam>
/// <returns>A custom attribute that matches <paramref name="T" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="element" /> is not a constructor, method, property, event, type, or field.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013EF RID: 5103 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013EF")]
[Address(RVA = "0x1E526A0", Offset = "0x1E516A0", VA = "0x181E526A0")]
public static T GetCustomAttribute<T>(this MemberInfo element, bool inherit) where T : Attribute
{
return null;
}
/// <summary>Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.</summary>
/// <param name="element">The parameter to inspect.</param>
/// <param name="inherit">
/// <see langword="true" /> to inspect the ancestors of <paramref name="element" />; otherwise, <see langword="false" />.</param>
/// <typeparam name="T">The type of attribute to search for.</typeparam>
/// <returns>A custom attribute that matches <paramref name="T" />, or <see langword="null" /> if no such attribute is found.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="element" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <paramref name="element" /> is not a constructor, method, property, event, type, or field.</exception>
/// <exception cref="T:System.Reflection.AmbiguousMatchException">More than one of the requested attributes was found.</exception>
/// <exception cref="T:System.TypeLoadException">A custom attribute type cannot be loaded.</exception>
// Token: 0x060013F0 RID: 5104 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60013F0")]
[Address(RVA = "0x1E525D0", Offset = "0x1E515D0", VA = "0x181E525D0")]
public static T GetCustomAttribute<T>(this ParameterInfo element, bool inherit) where T : Attribute
{
return null;
}
}
}