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

46 lines
2.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Provides custom attributes for reflection objects that support them.</summary>
// Token: 0x02000223 RID: 547
[Token(Token = "0x2000223")]
[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: 0x0600140C RID: 5132
[Token(Token = "0x600140C")]
[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: 0x0600140D RID: 5133
[Token(Token = "0x600140D")]
[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: 0x0600140E RID: 5134
[Token(Token = "0x600140E")]
[Address(Slot = "2")]
bool IsDefined(Type attributeType, bool inherit);
}
}