10[
TypeForwardedFrom(
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
13 public virtual object TypeId => GetType();
70 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:UnrecognizedReflectionPattern", Justification =
"rtPropAccessor.DeclaringType is guaranteed to have the specified property because rtPropAccessor.GetParentDefinition() returned a non-null MethodInfo.")]
113 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:UnrecognizedReflectionPattern", Justification =
"rtAdd.DeclaringType is guaranteed to have the specified event because rtAdd.GetParentDefinition() returned a non-null MethodInfo.")]
163 int position =
param.Position;
169 return parameters[position];
178 if ((
object)
type ==
null)
193 if ((
object)param.Member.DeclaringType ==
null)
250 if ((
object)param.Member.DeclaringType ==
null || !
inherit)
272 for (
int i = 0; i < attributes.Length; i++)
275 Type type = attributes[i].GetType();
300 for (
int i = 0; i < attributes.Length; i++)
302 Type type = attributes[i].GetType();
312 else if (
value.Inherited &&
value.AllowMultiple)
349 if (attributeType ==
null)
357 return element.MemberType
switch
376 return element.MemberType
switch
395 if (attributeType ==
null)
403 return element.MemberType
switch
446 if (attributeType ==
null)
454 if (element.
Member ==
null)
472 if (element.
Member ==
null)
495 if (attributeType ==
null)
504 return member.MemberType
switch
507 MemberTypes.Constructor => element.
IsDefined(attributeType,
inherit:
false),
561 if (attributeType ==
null)
583 if (attributeType ==
null)
624 if (attributeType ==
null)
660 if (attributeType ==
null)
690 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:UnrecognizedReflectionPattern", Justification =
"Unused fields don't make a difference for equality")]
697 if (GetType() !=
obj.GetType())
705 for (
int i = 0; i < fields.Length; i++)
719 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:UnrecognizedReflectionPattern", Justification =
"Unused fields don't make a difference for hashcode quality")]
727 for (
int i = 0; i < fields.Length; i++)
730 if (
value !=
null && !
value.GetType().IsArray)
741 return obj.GetHashCode();
745 return type.GetHashCode();
771 for (
int i = 0; i <
array.Length; i++)
static unsafe Array CreateInstance(Type elementType, int length)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static readonly AttributeUsageAttribute Default
static ParameterInfo GetParentDefinition(ParameterInfo param)
static ? Attribute GetCustomAttribute(ParameterInfo element, Type attributeType)
static Attribute[] GetCustomAttributes(Module element, Type attributeType)
static bool AreFieldValuesEqual(object thisValue, object thatValue)
static Attribute[] GetCustomAttributes(Assembly element)
static AttributeUsageAttribute InternalGetAttributeUsage(Type type)
static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType, bool inherit)
static Attribute[] InternalGetCustomAttributes(PropertyInfo element, Type type, bool inherit)
static Attribute[] GetCustomAttributes(Assembly element, Type attributeType)
override int GetHashCode()
static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit)
static Attribute[] InternalParamGetCustomAttributes(ParameterInfo param, Type type, bool inherit)
static Attribute[] GetCustomAttributes(MemberInfo element)
static Attribute[] GetCustomAttributes(MemberInfo element, bool inherit)
override bool Equals([NotNullWhen(true)] object? obj)
static ? Attribute GetCustomAttribute(MemberInfo element, Type attributeType)
static bool IsDefined(Assembly element, Type attributeType)
static ? Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
static bool InternalIsDefined(PropertyInfo element, Type attributeType, bool inherit)
static ? Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit)
static bool IsDefined(MemberInfo element, Type attributeType)
static Attribute[] GetCustomAttributes(ParameterInfo element, bool inherit)
virtual bool Match(object? obj)
static EventInfo GetParentDefinition(EventInfo ev)
static Attribute[] CreateAttributeArrayHelper(Type elementType, int elementCount)
static bool IsDefined(MemberInfo element, Type attributeType, bool inherit)
static Attribute[] GetCustomAttributes(ParameterInfo element)
static ? Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit)
static void CopyToAttributeList(List< Attribute > attributeList, Attribute[] attributes, Dictionary< Type, AttributeUsageAttribute > types)
static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType)
static Attribute[] GetCustomAttributes(Module element, Type attributeType, bool inherit)
virtual bool IsDefaultAttribute()
static Attribute[] InternalGetCustomAttributes(EventInfo element, Type type, bool inherit)
static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType)
static Attribute[] GetCustomAttributes(Assembly element, bool inherit)
static bool IsDefined(ParameterInfo element, Type attributeType)
static PropertyInfo GetParentDefinition(PropertyInfo property, Type[] propertyParameters)
static bool IsDefined(Module element, Type attributeType)
static bool IsDefined(Assembly element, Type attributeType, bool inherit)
static ? Attribute GetCustomAttribute(Assembly element, Type attributeType)
static void AddAttributesToList(List< Attribute > attributeList, Attribute[] attributes, Dictionary< Type, AttributeUsageAttribute > types)
static bool IsDefined(Module element, Type attributeType, bool inherit)
static Attribute[] GetCustomAttributes(Module element, bool inherit)
static Type[] GetIndexParameterTypes(PropertyInfo element)
static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit)
static bool InternalIsDefined(EventInfo element, Type attributeType, bool inherit)
static Attribute[] GetCustomAttributes(Module element)
static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit)
static ? Attribute GetCustomAttribute(Module element, Type attributeType, bool inherit)
static bool InternalParamIsDefined(ParameterInfo param, Type type, bool inherit)
static ? Attribute GetCustomAttribute(Module element, Type attributeType)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
virtual bool IsDefined(Type attributeType, bool inherit)
virtual object[] GetCustomAttributes(bool inherit)
object? GetValue(object? obj)
bool IsDefined(Type attributeType, bool inherit)
object[] GetCustomAttributes(bool inherit)
virtual bool IsDefined(Type attributeType, bool inherit)
virtual object[] GetCustomAttributes(bool inherit)
virtual bool IsDefined(Type attributeType, bool inherit)
virtual MemberInfo Member
virtual object[] GetCustomAttributes(bool inherit)
ParameterInfo[] GetIndexParameters()
static string Argument_MustHaveAttributeBaseClass
static string Format(string resourceFormat, object p1)
static string Argument_InvalidParameterInfo
static string Format_AttributeUsage
static string RFLCT_AmbigCust
static string Argument_InvalidParamInfo
virtual bool IsSubclassOf(Type c)
static readonly Type[] EmptyTypes