using System; using System.Reflection; using System.Runtime.InteropServices; namespace System { /// Represents the base class for custom attributes. /// 1 // Token: 0x02000004 RID: 4 [ComVisible(true)] [ComDefaultInterface(typeof(_Attribute))] [AttributeUsage(AttributeTargets.All)] [ClassInterface(ClassInterfaceType.None)] [Serializable] public abstract class Attribute : _Attribute { /// Maps a set of names to a corresponding set of dispatch identifiers. /// Reserved for future use. Must be IID_NULL. /// Passed-in array of names to be mapped. /// Count of the names to be mapped. /// The locale context in which to interpret the names. /// Caller-allocated array that receives the IDs corresponding to the names. /// Late-bound access using the COM IDispatch interface is not supported. // Token: 0x06000016 RID: 22 RVA: 0x00002220 File Offset: 0x00000420 void _Attribute.GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId) { throw new NotImplementedException(); } /// Retrieves the type information for an object, which can be used to get the type information for an interface. /// The type information to return. /// The locale identifier for the type information. /// Receives a pointer to the requested type information object. /// Late-bound access using the COM IDispatch interface is not supported. // Token: 0x06000017 RID: 23 RVA: 0x00002228 File Offset: 0x00000428 void _Attribute.GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo) { throw new NotImplementedException(); } /// Retrieves the number of type information interfaces that an object provides (either 0 or 1). /// Points to a location that receives the number of type information interfaces provided by the object. /// Late-bound access using the COM IDispatch interface is not supported. // Token: 0x06000018 RID: 24 RVA: 0x00002230 File Offset: 0x00000430 void _Attribute.GetTypeInfoCount(out uint pcTInfo) { throw new NotImplementedException(); } /// Provides access to properties and methods exposed by an object. /// Identifies the member. /// Reserved for future use. Must be IID_NULL. /// The locale context in which to interpret arguments. /// Flags describing the context of the call. /// Pointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays. /// Pointer to the location where the result is to be stored. /// Pointer to a structure that contains exception information. /// The index of the first argument that has an error. /// Late-bound access using the COM IDispatch interface is not supported. // Token: 0x06000019 RID: 25 RVA: 0x00002238 File Offset: 0x00000438 void _Attribute.Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) { throw new NotImplementedException(); } /// When implemented in a derived class, gets a unique identifier for this . /// An that is a unique identifier for the attribute. /// 2 // Token: 0x17000001 RID: 1 // (get) Token: 0x0600001A RID: 26 RVA: 0x00002240 File Offset: 0x00000440 public virtual object TypeId { get { return base.GetType(); } } // Token: 0x0600001B RID: 27 RVA: 0x00002248 File Offset: 0x00000448 private static void CheckParameters(object element, Type attributeType) { if (element == null) { throw new ArgumentNullException("element"); } if (attributeType == null) { throw new ArgumentNullException("attributeType"); } if (!typeof(Attribute).IsAssignableFrom(attributeType)) { throw new ArgumentException(Locale.GetText("Type is not derived from System.Attribute."), "attributeType"); } } // Token: 0x0600001C RID: 28 RVA: 0x000022A4 File Offset: 0x000004A4 private static Attribute FindAttribute(object[] attributes) { if (attributes.Length > 1) { throw new AmbiguousMatchException(Locale.GetText(" has more than one attribute of type ")); } if (attributes.Length < 1) { return null; } return (Attribute)attributes[0]; } /// Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x0600001D RID: 29 RVA: 0x000022E0 File Offset: 0x000004E0 public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType) { return Attribute.GetCustomAttribute(element, attributeType, true); } /// Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// More than one of the requested attributes was found. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x0600001E RID: 30 RVA: 0x000022EC File Offset: 0x000004EC public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType) { return Attribute.GetCustomAttribute(element, attributeType, true); } /// Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// 1 // Token: 0x0600001F RID: 31 RVA: 0x000022F8 File Offset: 0x000004F8 public static Attribute GetCustomAttribute(Assembly element, Type attributeType) { return Attribute.GetCustomAttribute(element, attributeType, true); } /// Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// 1 // Token: 0x06000020 RID: 32 RVA: 0x00002304 File Offset: 0x00000504 public static Attribute GetCustomAttribute(Module element, Type attributeType) { return Attribute.GetCustomAttribute(element, attributeType, true); } /// Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// 1 // Token: 0x06000021 RID: 33 RVA: 0x00002310 File Offset: 0x00000510 public static Attribute GetCustomAttribute(Module element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); object[] customAttributes = element.GetCustomAttributes(attributeType, inherit); return Attribute.FindAttribute(customAttributes); } /// Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// 1 // Token: 0x06000022 RID: 34 RVA: 0x00002334 File Offset: 0x00000534 public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); object[] customAttributes = element.GetCustomAttributes(attributeType, inherit); return Attribute.FindAttribute(customAttributes); } /// Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// More than one of the requested attributes was found. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000023 RID: 35 RVA: 0x00002358 File Offset: 0x00000558 public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); object[] customAttributes = element.GetCustomAttributes(attributeType, inherit); return Attribute.FindAttribute(customAttributes); } /// Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. /// A reference to the single custom attribute of type that is applied to , or null if there is no such attribute. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// More than one of the requested attributes was found. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000024 RID: 36 RVA: 0x0000237C File Offset: 0x0000057C public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return MonoCustomAttrs.GetCustomAttribute(element, attributeType, inherit); } /// Retrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a reusable collection of modules. /// /// is null. /// 1 // Token: 0x06000025 RID: 37 RVA: 0x00002390 File Offset: 0x00000590 public static Attribute[] GetCustomAttributes(Assembly element) { return Attribute.GetCustomAttributes(element, true); } /// Retrieves an array of the custom attributes applied to a method parameter. A parameter specifies the method parameter. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a parameter of a member of a class. /// /// is null. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000026 RID: 38 RVA: 0x0000239C File Offset: 0x0000059C public static Attribute[] GetCustomAttributes(ParameterInfo element) { return Attribute.GetCustomAttributes(element, true); } /// Retrieves an array of the custom attributes applied to a member of a type. A parameter specifies the member. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// /// is null. /// /// is not a constructor, method, property, event, type, or field. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000027 RID: 39 RVA: 0x000023A8 File Offset: 0x000005A8 public static Attribute[] GetCustomAttributes(MemberInfo element) { return Attribute.GetCustomAttributes(element, true); } /// Retrieves an array of the custom attributes applied to a module. A parameter specifies the module. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a portable executable file. /// /// is null. /// 1 // Token: 0x06000028 RID: 40 RVA: 0x000023B4 File Offset: 0x000005B4 public static Attribute[] GetCustomAttributes(Module element) { return Attribute.GetCustomAttributes(element, true); } /// Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x06000029 RID: 41 RVA: 0x000023C0 File Offset: 0x000005C0 public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType) { return Attribute.GetCustomAttributes(element, attributeType, true); } /// Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and the type of the custom attribute to search for. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600002A RID: 42 RVA: 0x000023CC File Offset: 0x000005CC public static Attribute[] GetCustomAttributes(Module element, Type attributeType) { return Attribute.GetCustomAttributes(element, attributeType, true); } /// Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// A custom attribute type cannot be loaded. /// 1 // Token: 0x0600002B RID: 43 RVA: 0x000023D8 File Offset: 0x000005D8 public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType) { return Attribute.GetCustomAttributes(element, attributeType, true); } /// Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x0600002C RID: 44 RVA: 0x000023E4 File Offset: 0x000005E4 public static Attribute[] GetCustomAttributes(MemberInfo element, Type type) { return Attribute.GetCustomAttributes(element, type, true); } /// Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600002D RID: 45 RVA: 0x000023F0 File Offset: 0x000005F0 public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return (Attribute[])element.GetCustomAttributes(attributeType, inherit); } /// Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// A custom attribute type cannot be loaded. /// 1 // Token: 0x0600002E RID: 46 RVA: 0x00002408 File Offset: 0x00000608 public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return (Attribute[])element.GetCustomAttributes(attributeType, inherit); } /// Retrieves an array of the custom attributes applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600002F RID: 47 RVA: 0x00002420 File Offset: 0x00000620 public static Attribute[] GetCustomAttributes(Module element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return (Attribute[])element.GetCustomAttributes(attributeType, inherit); } /// Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. /// An array that contains the custom attributes of type applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000030 RID: 48 RVA: 0x00002438 File Offset: 0x00000638 public static Attribute[] GetCustomAttributes(MemberInfo element, Type type, bool inherit) { Attribute.CheckParameters(element, type); MemberTypes memberType = element.MemberType; if (memberType == MemberTypes.Property) { return (Attribute[])MonoCustomAttrs.GetCustomAttributes(element, type, inherit); } return (Attribute[])element.GetCustomAttributes(type, inherit); } /// Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and an ignored search option. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a portable executable file. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// 1 // Token: 0x06000031 RID: 49 RVA: 0x00002478 File Offset: 0x00000678 public static Attribute[] GetCustomAttributes(Module element, bool inherit) { Attribute.CheckParameters(element, typeof(Attribute)); return (Attribute[])element.GetCustomAttributes(inherit); } /// Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and an ignored search option. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a reusable collection of modules. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// 1 // Token: 0x06000032 RID: 50 RVA: 0x00002498 File Offset: 0x00000698 public static Attribute[] GetCustomAttributes(Assembly element, bool inherit) { Attribute.CheckParameters(element, typeof(Attribute)); return (Attribute[])element.GetCustomAttributes(inherit); } /// Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a constructor, event, field, method, or property member of a class. /// If true, specifies to also search the ancestors of for custom attributes. /// /// is null. /// /// is not a constructor, method, property, event, type, or field. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000033 RID: 51 RVA: 0x000024B8 File Offset: 0x000006B8 public static Attribute[] GetCustomAttributes(MemberInfo element, bool inherit) { Attribute.CheckParameters(element, typeof(Attribute)); MemberTypes memberType = element.MemberType; if (memberType == MemberTypes.Property) { return (Attribute[])MonoCustomAttrs.GetCustomAttributes(element, inherit); } return (Attribute[])element.GetCustomAttributes(typeof(Attribute), inherit); } /// Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and whether to search ancestors of the method parameter. /// An array that contains the custom attributes applied to , or an empty array if no such custom attributes exist. /// An object derived from the class that describes a parameter of a member of a class. /// If true, specifies to also search the ancestors of for custom attributes. /// /// is null. /// A custom attribute type cannot be loaded. /// 1 // Token: 0x06000034 RID: 52 RVA: 0x00002508 File Offset: 0x00000708 public static Attribute[] GetCustomAttributes(ParameterInfo element, bool inherit) { Attribute.CheckParameters(element, typeof(Attribute)); return (Attribute[])element.GetCustomAttributes(inherit); } /// Returns the hash code for this instance. /// A 32-bit signed integer hash code. /// 2 // Token: 0x06000035 RID: 53 RVA: 0x00002528 File Offset: 0x00000728 public override int GetHashCode() { return base.GetHashCode(); } /// When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. /// true if this instance is the default attribute for the class; otherwise, false. /// 2 // Token: 0x06000036 RID: 54 RVA: 0x00002530 File Offset: 0x00000730 public virtual bool IsDefaultAttribute() { return false; } /// Determines whether any custom attributes of a specified type are applied to a module. Parameters specify the module, and the type of the custom attribute to search for. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x06000037 RID: 55 RVA: 0x00002534 File Offset: 0x00000734 public static bool IsDefined(Module element, Type attributeType) { return Attribute.IsDefined(element, attributeType, false); } /// Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x06000038 RID: 56 RVA: 0x00002540 File Offset: 0x00000740 public static bool IsDefined(ParameterInfo element, Type attributeType) { return Attribute.IsDefined(element, attributeType, true); } /// Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a constructor, event, field, method, type, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// 1 // Token: 0x06000039 RID: 57 RVA: 0x0000254C File Offset: 0x0000074C public static bool IsDefined(MemberInfo element, Type attributeType) { return Attribute.IsDefined(element, attributeType, true); } /// Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600003A RID: 58 RVA: 0x00002558 File Offset: 0x00000758 public static bool IsDefined(Assembly element, Type attributeType) { return Attribute.IsDefined(element, attributeType, true); } /// Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a constructor, event, field, method, type, or property member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// /// is not a constructor, method, property, event, type, or field. /// 1 // Token: 0x0600003B RID: 59 RVA: 0x00002564 File Offset: 0x00000764 public static bool IsDefined(MemberInfo element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); MemberTypes memberType = element.MemberType; if (memberType != MemberTypes.Constructor && memberType != MemberTypes.Event && memberType != MemberTypes.Field && memberType != MemberTypes.Method && memberType != MemberTypes.Property && memberType != MemberTypes.TypeInfo && memberType != MemberTypes.NestedType) { throw new NotSupportedException(Locale.GetText("Element is not a constructor, method, property, event, type or field.")); } if (memberType == MemberTypes.Property) { return MonoCustomAttrs.IsDefined(element, attributeType, inherit); } return element.IsDefined(attributeType, inherit); } /// Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a reusable collection of modules. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600003C RID: 60 RVA: 0x000025E0 File Offset: 0x000007E0 public static bool IsDefined(Assembly element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return element.IsDefined(attributeType, inherit); } /// Determines whether any custom attributes are applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a portable executable file. /// The type, or a base type, of the custom attribute to search for. /// This parameter is ignored, and does not affect the operation of this method. /// /// or is null. /// /// is not derived from . /// 1 // Token: 0x0600003D RID: 61 RVA: 0x000025F4 File Offset: 0x000007F4 public static bool IsDefined(Module element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return element.IsDefined(attributeType, inherit); } /// Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. /// true if a custom attribute of type is applied to ; otherwise, false. /// An object derived from the class that describes a parameter of a member of a class. /// The type, or a base type, of the custom attribute to search for. /// If true, specifies to also search the ancestors of for custom attributes. /// /// or is null. /// /// is not derived from . /// /// is not a method, constructor, or type. /// 1 // Token: 0x0600003E RID: 62 RVA: 0x00002608 File Offset: 0x00000808 public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit) { Attribute.CheckParameters(element, attributeType); return element.IsDefined(attributeType, inherit) || Attribute.IsDefined(element.Member, attributeType, inherit); } /// When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. /// true if this instance equals ; otherwise, false. /// An to compare with this instance of . /// 2 // Token: 0x0600003F RID: 63 RVA: 0x00002638 File Offset: 0x00000838 public virtual bool Match(object obj) { return this.Equals(obj); } /// Returns a value that indicates whether this instance is equal to a specified object. /// true if equals the type and value of this instance; otherwise, false. /// An to compare with this instance or null. /// 2 // Token: 0x06000040 RID: 64 RVA: 0x00002644 File Offset: 0x00000844 public override bool Equals(object obj) { return obj != null && obj is Attribute && ValueType.DefaultEquals(this, obj); } } }