a
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
/// <summary>Provides custom attributes for reflection objects that support them.</summary>
|
||||
// Token: 0x0200021C RID: 540
|
||||
[Token(Token = "0x200021C")]
|
||||
[ComVisible(true)]
|
||||
public interface ICustomAttributeProvider
|
||||
{
|
||||
/// <summary>Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type.</summary>
|
||||
/// <param name="attributeType">The type of the custom attributes.</param>
|
||||
/// <param name="inherit">When <see langword="true" />, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>An array of Objects representing custom attributes, or an empty array.</returns>
|
||||
/// <exception cref="T:System.TypeLoadException">The custom attribute type cannot be loaded.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="attributeType" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x060013CE RID: 5070
|
||||
[Token(Token = "0x60013CE")]
|
||||
[Address(Slot = "0")]
|
||||
object[] GetCustomAttributes(Type attributeType, bool inherit);
|
||||
|
||||
/// <summary>Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes.</summary>
|
||||
/// <param name="inherit">When <see langword="true" />, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>An array of Objects representing custom attributes, or an empty array.</returns>
|
||||
/// <exception cref="T:System.TypeLoadException">The custom attribute type cannot be loaded.</exception>
|
||||
/// <exception cref="T:System.Reflection.AmbiguousMatchException">There is more than one attribute of type <paramref name="attributeType" /> defined on this member.</exception>
|
||||
// Token: 0x060013CF RID: 5071
|
||||
[Token(Token = "0x60013CF")]
|
||||
[Address(Slot = "1")]
|
||||
object[] GetCustomAttributes(bool inherit);
|
||||
|
||||
/// <summary>Indicates whether one or more instance of <paramref name="attributeType" /> is defined on this member.</summary>
|
||||
/// <param name="attributeType">The type of the custom attributes.</param>
|
||||
/// <param name="inherit">When <see langword="true" />, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the <paramref name="attributeType" /> is defined on this member; <see langword="false" /> otherwise.</returns>
|
||||
// Token: 0x060013D0 RID: 5072
|
||||
[Token(Token = "0x60013D0")]
|
||||
[Address(Slot = "2")]
|
||||
bool IsDefined(Type attributeType, bool inherit);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user