31 rt.CreateInstanceCheckThis();
141 return Array.Empty<T>();
145 return new T[1] {
_item };
293 if ((
object)
val2 ==
null)
307 foreach (T val
in array)
309 if ((
object)val ==
null)
353 foreach (T val
in array)
355 if ((
object)val ==
null)
382 if (
string.IsNullOrEmpty(name) || (
cacheType ==
CacheType.Constructor && name[0] !=
'.' && name[0] !=
'*'))
518 int num =
array.Length;
520 for (
int i = 0; i <
list.Length; i++)
525 for (
j = 0;
j < num;
j++)
532 if (val.CacheEquals(
val2))
679 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2075:UnrecognizedReflectionPattern", Justification =
"Calls to GetInterfaces technically require all interfaces on ReflectedTypeBut this is not a public API to enumerate reflection items, all the public APIs which do thatshould be annotated accordingly.")]
697 for (
int i = 0; i < interfaces.Length; i++)
715 return list.ToArray();
740 for (
int i = 0; i <
count; i++)
773 for (
int i = 0; i < result.Length; i++)
787 if (
filter.RequiresStringComparison())
817 Type[] interfaces =
iList.GetInterfaces();
818 for (
int i = 0; i < interfaces.Length; i++)
828 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2065:UnrecognizedReflectionPattern", Justification =
"Calls to GetInterfaces technically require all interfaces on ReflectedTypeBut this is not a public API to enumerate reflection items, all the public APIs which do thatshould be annotated accordingly.")]
836 if (interfaces !=
null)
838 for (
int i = 0; i < interfaces.Length; i++)
883 return list.ToArray();
886 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Calls to ResolveTypeHandle technically require all types to be kept But this is not a public API to enumerate reflection items, all the public APIs which do that should be annotated accordingly.")]
902 for (
int i = 0; i < result.Length; i++)
942 return list.ToArray();
954 for (
int i = 0; i < result.Length; i++)
957 if (
filter.RequiresStringComparison())
980 else if (
list.Count > 0)
1011 return list.ToArray();
1024 for (
int i = 0; i < result.Length; i++)
1026 int num = result[i];
1027 if (
filter.RequiresStringComparison())
1462 Cache.GenericCache =
value;
1470 return Cache.DomainInitialized;
1474 Cache.DomainInitialized =
value;
1554 string nameSpace = Cache.GetNameSpace();
1555 if (
string.IsNullOrEmpty(nameSpace))
1646 if (!
base.IsPublic && !
base.IsNotPublic)
1666 if (typeName ==
null)
1691 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2070:UnrecognizedReflectionPattern", Justification =
"The code in this method looks up the method by name, but it always starts with a method handle.To get here something somwhere had to get the method handle and thus the method must exist.")]
1710 for (
int i = 0; i <
array2.Length; i++)
1845 int num2 = fullname.Length - ns.Length - 1;
1888 name = name.ToLowerInvariant();
1992 if (ns !=
null && ns !=
type.Namespace)
2102 return runtimeType.m_handle ==
m_handle;
2143 return Cache.GetDefaultMemberName();
2341 result.TargetType =
this;
2467 return propertyInfo;
2544 if (flag &&
fieldInfo.DeclaringType.IsInterface)
2712 if ((
object)member ==
null)
2818 if ((
object)
type ==
null)
2866 return Cache.GetEmptyArray();
2880 [
RequiresUnreferencedCode(
"If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimming can't validate that the requirements of those annotations are met.")]
2923 if (
type.IsSignatureType)
3027 bool flag = base.IsPointer ||
IsEnum ||
base.IsPrimitive;
3036 return pointer.GetPointerValue();
3065 else if (
value ==
null)
3077 return pointer.GetPointerValue();
3094 return Cache.GetName(kind);
3114 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2082:UnrecognizedReflectionPattern", Justification =
"Implementation detail of Activator that linker intrinsically recognizes")]
3115 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2085:UnrecognizedReflectionPattern", Justification =
"Implementation detail of Activator that linker intrinsically recognizes")]
3139 for (
int i = 0; i <
args.Length; i++)
3154 if (
list.Count == 0)
3159 object state =
null;
3173 if (
methodBase.GetParametersNoCopy().Length == 0)
3175 if (
args.Length != 0)
3245 Cache.InvalidateCachedNestedType();
3271 int num =
aArgs.Length;
3276 for (
int i = 0; i < num; i++)
3288 for (
int j = 0;
j < num;
j++)
3308 int num =
aArgs.Length;
3309 for (
int i = 0; i < num; i++)
3410 if ((
object)attributeType ==
null)
3477 for (
int i = 0; i <
array.Length; i++)
3515 TypeCode typeCode = Cache.TypeCode;
3522 CorElementType.ELEMENT_TYPE_BOOLEAN =>
TypeCode.Boolean,
3523 CorElementType.ELEMENT_TYPE_CHAR =>
TypeCode.Char,
3524 CorElementType.ELEMENT_TYPE_I1 =>
TypeCode.SByte,
3525 CorElementType.ELEMENT_TYPE_U1 =>
TypeCode.Byte,
3526 CorElementType.ELEMENT_TYPE_I2 =>
TypeCode.Int16,
3527 CorElementType.ELEMENT_TYPE_U2 =>
TypeCode.UInt16,
3528 CorElementType.ELEMENT_TYPE_I4 =>
TypeCode.Int32,
3529 CorElementType.ELEMENT_TYPE_U4 =>
TypeCode.UInt32,
3530 CorElementType.ELEMENT_TYPE_I8 =>
TypeCode.Int64,
3531 CorElementType.ELEMENT_TYPE_U8 =>
TypeCode.UInt64,
3532 CorElementType.ELEMENT_TYPE_R4 =>
TypeCode.Single,
3533 CorElementType.ELEMENT_TYPE_R8 =>
TypeCode.Double,
3537 Cache.TypeCode = typeCode;
3558 if ((
object)attributeType ==
null)
3645 if (typeInfo ==
null)
3649 return IsAssignableFrom(typeInfo.
AsType());
3654 if ((
object)c ==
null)
3658 if ((
object)c ==
this)
3672 if (
base.IsInterface)
3676 if (IsGenericParameter)
3697 if (IsGenericParameter)
3727 if (target !=
null && target.GetType().IsCOMObject)
3766 throw ex.InnerException;
3794 if (name.Length == 0 || name.Equals(
"[DISPID=0]"))
3796 name = GetDefaultMemberName() ??
"ToString";
3830 if (
array.Length == 1)
3834 else if (
array.Length != 0)
3846 for (
int i = 0; i <
num2; i++)
3972 object state =
null;
4000 if (
base.IsInterface)
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
int IList. IndexOf(object value)
static unsafe Array CreateInstance(Type elementType, int length)
static int BinarySearch(Array array, object? value)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
void Add(TKey key, TValue value)
static MethodBase FindMostDerivedNewSlotMeth(MethodBase[] match, int cMatches)
static MethodBase ExactBinding(MethodBase[] match, Type[] types, ParameterModifier[] modifiers)
static bool CompareMethodSig(MethodBase m1, MethodBase m2)
static PropertyInfo ExactPropertyBinding(PropertyInfo[] match, Type returnType, Type[] types, ParameterModifier[] modifiers)
static readonly Empty Value
static object ToObject(Type enumType, object value)
static ulong[] InternalGetValues(RuntimeType enumType)
static string[] InternalGetNames(RuntimeType enumType)
static string GetEnumName(RuntimeType enumType, ulong ulValue)
static RuntimeType InternalGetUnderlyingType(RuntimeType enumType)
static ulong ToUInt64(object value)
static void KeepAlive(object? obj)
static CultureInfo CurrentCulture
static byte Max(byte val1, byte val2)
static string CreateQualifiedName(string? assemblyName, string? typeName)
virtual ? string FullName
static IList< CustomAttributeData > GetCustomAttributes(MemberInfo target)
static object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit)
static bool IsDefined(RuntimeType type, RuntimeType caType, bool inherit)
static Type MakeGenericType(Type type, Type[] typeArguments)
static StructLayoutAttribute GetStructLayoutCustomAttribute(RuntimeType type)
static IList< CustomAttributeData > GetCustomAttributesInternal(RuntimeType target)
unsafe readonly void * _allocatorFirstArg
unsafe readonly delegate *< void *, object > _pfnAllocator
readonly bool _ctorIsPublic
unsafe ActivatorCache(RuntimeType rt)
unsafe object CreateUninitializedObject(RuntimeType rt)
unsafe void CallConstructor(object uninitializedObject)
unsafe readonly delegate *< object, void > _pfnCtor
RuntimeType[] PopulateInterfaces(Filter filter)
T[] GetMemberList(MemberListType listType, string name, CacheType cacheType)
RuntimeType ReflectedType
RuntimeEventInfo[] PopulateEvents(Filter filter)
RuntimePropertyInfo[] PopulateProperties(Filter filter)
unsafe void PopulateRtFields(Filter filter, RuntimeType declaringType, ref ListBuilder< RuntimeFieldInfo > list)
unsafe void PopulateRtFields(Filter filter, IntPtr *ppFieldHandles, int count, RuntimeType declaringType, ref ListBuilder< RuntimeFieldInfo > list)
unsafe T[] Populate(string name, MemberListType listType, CacheType cacheType)
void PopulateProperties(Filter filter, RuntimeType declaringType, Dictionary< string, List< RuntimePropertyInfo > > csPropertyInfos, bool[] usedSlots, ref ListBuilder< RuntimePropertyInfo > list)
void Insert(ref T[] list, string name, MemberListType listType)
RuntimeFieldInfo[] PopulateFields(Filter filter)
RuntimeType[] PopulateNestedClasses(Filter filter)
RuntimeConstructorInfo[] PopulateConstructors(Filter filter)
CerHashtable< string, T[]> m_csMemberInfos
MemberInfoCache(RuntimeTypeCache runtimeTypeCache)
void MergeWithGlobalList(T[] list)
readonly RuntimeTypeCache m_runtimeTypeCache
CerHashtable< string, T[]> m_cisMemberInfos
void AddSpecialInterface(ref ListBuilder< RuntimeType > list, Filter filter, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] RuntimeType iList, bool addSubInterface)
void PopulateEvents(Filter filter, RuntimeType declaringType, Dictionary< string, RuntimeEventInfo > csEventInfos, ref ListBuilder< RuntimeEventInfo > list)
FieldInfo AddField(RuntimeFieldHandleInternal field)
unsafe RuntimeMethodInfo[] PopulateMethods(Filter filter)
void PopulateLiteralFields(Filter filter, RuntimeType declaringType, ref ListBuilder< RuntimeFieldInfo > list)
MethodBase AddMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method, CacheType cacheType)
unsafe T[] GetListByName(char *pName, int cNameLen, byte *pUtf8Name, int cUtf8Name, MemberListType listType, CacheType cacheType)
MemberInfoCache< RuntimeEventInfo > m_eventInfoCache
RuntimeTypeCache(RuntimeType runtimeType)
RuntimeType GetRuntimeType()
RuntimeType[] GetNestedTypeList(MemberListType listType, string name)
RuntimeConstructorInfo[] GetConstructorList(MemberListType listType, string name)
RuntimeEventInfo[] GetEventList(MemberListType listType, string name)
MemberInfoCache< RuntimeType > m_nestedClassesCache
readonly RuntimeType m_runtimeType
RuntimeFieldInfo[] GetFieldList(MemberListType listType, string name)
MethodBase GetMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method)
MemberInfoCache< RuntimeConstructorInfo > m_constructorInfoCache
string GetName(TypeNameKind kind)
bool m_bIsDomainInitialized
RuntimeType[] GetInterfaceList(MemberListType listType, string name)
string ConstructName([NotNull] ref string name, TypeNameFormatFlags formatFlags)
FieldInfo GetField(RuntimeFieldHandleInternal field)
RuntimePropertyInfo[] GetPropertyList(MemberListType listType, string name)
void InvalidateCachedNestedType()
MemberInfoCache< RuntimeFieldInfo > m_fieldInfoCache
string GetDefaultMemberName()
MemberInfoCache< RuntimeType > m_interfaceCache
MemberInfoCache< T > GetMemberCache< T >(ref MemberInfoCache< T > m_cache)
RuntimeType GetEnclosingType()
string m_defaultMemberName
RuntimeType m_enclosingType
T[] GetMemberList< T >(ref MemberInfoCache< T > m_cache, MemberListType listType, string name, CacheType cacheType)
MemberInfoCache< RuntimePropertyInfo > m_propertyInfoCache
RuntimeMethodInfo[] GetMethodList(MemberListType listType, string name)
static object s_methodInstantiationsLock
MethodBase GetConstructor(RuntimeType declaringType, RuntimeMethodHandleInternal constructor)
static CerHashtable< RuntimeMethodInfo, RuntimeMethodInfo > s_methodInstantiations
MethodInfo GetGenericMethodInfo(RuntimeMethodHandleInternal genericMethod)
MemberInfoCache< RuntimeMethodInfo > m_methodInfoCache
override Array GetEnumValues()
override Type MakeGenericType(params Type[] instantiation)
static MethodBase GetMethodBase(RuntimeType reflectedType, IRuntimeMethodInfo methodHandle)
override Type[] GetGenericParameterConstraints()
override bool IsCollectible
static MethodBase GetMethodBase(RuntimeType reflectedType, RuntimeMethodHandleInternal methodHandle)
override string ToString()
override RuntimeTypeHandle TypeHandle
override bool IsGenericTypeDefinition
override EventInfo GetEvent(string name, BindingFlags bindingAttr)
ListBuilder< PropertyInfo > GetPropertyCandidates(string name, BindingFlags bindingAttr, Type[] types, bool allowPrefixLookup)
override MemberInfo[] GetDefaultMembers()
override Type DeclaringType
override Type UnderlyingSystemType
override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
override Type MakeArrayType()
override bool IsByRefImpl()
static bool FilterApplyMethodBase(MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo typeInfo)
override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
override bool IsByRefLike
override Type GetInterface(string fullname, bool ignoreCase)
override FieldInfo[] GetFields(BindingFlags bindingAttr)
override string AssemblyQualifiedName
static bool CanValueSpecialCast(RuntimeType valueType, RuntimeType targetType)
object CheckValue(object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
override Type MakeArrayType(int rank)
override bool IsInstanceOfType([NotNullWhen(true)] object o)
ListBuilder< Type > GetNestedTypeCandidates(string fullname, BindingFlags bindingAttr, bool allowPrefixLookup)
static MemberInfo GetNestedTypeWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo nestedType)
override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member)
static readonly RuntimeType StringType
static bool FilterApplyPrefixLookup(MemberInfo memberInfo, string name, bool ignoreCase)
override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
override Type GetEnumUnderlyingType()
override bool IsArrayImpl()
override Type[] GetGenericArguments()
override bool IsEnumDefined(object value)
static object AllocateValueType(RuntimeType type, object value, bool fForceTypeChange)
static readonly RuntimeType s_typedRef
override bool IsPrimitiveImpl()
override bool HasSameMetadataDefinitionAs(MemberInfo other)
static MemberInfo GetMethodWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo method)
IntPtr GetUnderlyingNativeHandle()
static void SplitName(string fullname, out string name, out string ns)
override Type[] GetNestedTypes(BindingFlags bindingAttr)
override MethodBase DeclaringMethod
object CreateInstanceOfT()
override bool ContainsGenericParameters
void GetGUID(ref Guid result)
object CreateInstanceDefaultCtor(bool publicOnly, bool wrapExceptions)
static BindingFlags FilterPreCalculate(bool isPublic, bool isInherited, bool isStatic)
static MemberInfo GetPropertyWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo property)
override Type MakePointerType()
bool IsGenericCOMObjectImpl()
static RuntimeType GetType(string typeName, bool throwOnError, bool ignoreCase, ref StackCrawlMark stackMark)
ListBuilder< EventInfo > GetEventCandidates(string name, BindingFlags bindingAttr, bool allowPrefixLookup)
RuntimeType[] GetGenericArgumentsInternal()
override bool IsConstructedGenericType
override bool IsContextfulImpl()
override bool IsAssignableFrom([NotNullWhen(true)] Type c)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
RuntimeTypeCache InitializeCache()
object ForwardCallToInvokeMember(string memberName, BindingFlags flags, object target, object[] aArgs, bool[] aArgsIsByRef, int[] aArgsWrapperTypes, Type[] aArgsTypes, Type retType)
override MemberTypes MemberType
static object _CreateEnum(RuntimeType enumType, long value)
ListBuilder< FieldInfo > GetFieldCandidates(string name, BindingFlags bindingAttr, bool allowPrefixLookup)
RuntimeType GetBaseType()
static bool FilterApplyBase(MemberInfo memberInfo, BindingFlags bindingFlags, bool isPublic, bool isNonProtectedInternal, bool isStatic, string name, bool prefixLookup)
override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
static bool FilterApplyConstructorInfo(RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
static void ThrowIfTypeNeverValidGenericArgument(RuntimeType type)
static FieldInfo GetFieldInfo(RuntimeType reflectedType, IRuntimeFieldInfo field)
ListBuilder< MethodInfo > GetMethodCandidates(string name, int genericParameterCount, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, bool allowPrefixLookup)
static MemberInfo GetFieldWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo field)
object CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture)
string GetDefaultMemberName()
override bool IsValueTypeImpl()
void InvalidateCachedNestedType()
static bool FilterApplyMethodInfo(RuntimeMethodInfo method, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
override Type GetElementType()
static OleAutBinder s_ForwardCallBinder
override Type ReflectedType
override object InvokeMember(string name, BindingFlags bindingFlags, Binder binder, object target, object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParams)
override MethodInfo[] GetMethods(BindingFlags bindingAttr)
override string GetEnumName(object value)
override bool IsSecurityCritical
static readonly RuntimeType ObjectType
override Type[] GetInterfaces()
override bool HasElementTypeImpl()
override bool IsCOMObjectImpl()
MethodInfo GetMethodImplCommon(string name, int genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
override Type GetNestedType(string fullname, BindingFlags bindingAttr)
override object[] GetCustomAttributes(bool inherit)
string GetCachedName(TypeNameKind kind)
static MemberInfo GetEventWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo eventInfo)
override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
override Type GetGenericTypeDefinition()
static object CreateEnum(RuntimeType enumType, long value)
const int GenericParameterCountAny
override TypeAttributes GetAttributeFlagsImpl()
readonly object m_keepalive
static void FilterHelper(BindingFlags bindingFlags, ref string name, bool allowPrefixLookup, out bool prefixLookup, out bool ignoreCase, out MemberListType listType)
override bool IsTypeDefinition
static FieldInfo GetFieldInfo(IRuntimeFieldInfo fieldHandle)
static void SanityCheckGenericArguments(RuntimeType[] genericArguments, RuntimeType[] genericParameters)
override IList< CustomAttributeData > GetCustomAttributesData()
static MethodBase GetMethodBase(IRuntimeMethodInfo methodHandle)
override string Namespace
override FieldInfo GetField(string name, BindingFlags bindingAttr)
override int GetHashCode()
override bool IsDefined(Type attributeType, bool inherit)
object TryChangeType(object value, Binder binder, CultureInfo culture, bool needsSpecialCast)
override int GenericParameterPosition
override int GetArrayRank()
override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
override bool Equals(object obj)
override EventInfo[] GetEvents(BindingFlags bindingAttr)
override TypeCode GetTypeCodeImpl()
static bool FilterApplyType(Type type, BindingFlags bindingFlags, string name, bool prefixLookup, string ns)
static MemberInfo GetConstructorWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo constructor)
static void WrapArgsForInvokeCall(object[] aArgs, int[] aArgsWrapperTypes)
override bool CacheEquals(object o)
static void FilterHelper(BindingFlags bindingFlags, ref string name, out bool ignoreCase, out MemberListType listType)
RuntimeModule GetRuntimeModule()
ListBuilder< ConstructorInfo > GetConstructorCandidates(string name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, bool allowPrefixLookup)
override bool IsSubclassOf(Type type)
static OleAutBinder ForwardCallBinder
override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.NonPublicMethods)] Type ifaceType)
override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
static void ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e)
override bool IsEquivalentTo([NotNullWhen(true)] Type other)
override Type MakeByRefType()
static PropertyInfo GetPropertyInfo(RuntimeType reflectedType, int tkProperty)
void CreateInstanceCheckThis()
override bool IsGenericParameter
override MemberInfo[] GetMembers(BindingFlags bindingAttr)
RuntimeTypeCache CacheIfExists
override bool IsSecuritySafeCritical
override bool IsGenericType
object InvokeDispMethod(string name, BindingFlags invokeAttr, object target, object[] args, bool[] byrefModifiers, int culture, string[] namedParameters)
override string[] GetEnumNames()
static MethodBase GetMethodBase(RuntimeModule scope, int typeMetadataToken)
override bool IsPointerImpl()
override bool IsSecurityTransparent
static int GetHashCode(object? o)
static bool IsBuiltInComSupported
static string Arg_GenericParameter
static string Arg_COMAccess
static string Argument_NotEnoughGenArguments
static string Arg_MustBeEnum
static string NotSupported_CallToVarArg
static string Argument_ResolveFieldHandle
static string NotSupported_COM
static string Acc_CreateVoid
static string Arg_MustBeType
static string Arg_NoDefCTor
static string Arg_FldGetArgErr
static string Arg_EnumAndObjectMustBeSameType
static string Format(string resourceFormat, object p1)
static string Arg_FldSetPropGet
static string Arg_IndexMustBeInt
static string Arg_CreatInstAccess
static string Arg_FldSetArgErr
static string Arg_NotGenericParameter
static string Argument_NeverValidGenericArgument
static string InvalidOperation_UnknownEnumType
static string Arg_AmbiguousMatchException
static string Acc_CreateArgIterator
static string Arg_FldSetGet
static string Arg_ObjObjEx
static string Argument_HasToBeArrayClass
static string InvalidOperation_NotGenericType
static string Activator_CannotCreateInstance
static string Argument_ArrayGetInterfaceMap
static string Arg_FldSetInvoke
static string Arg_NoAccessSpec
static string Arg_COMPropSetPut
static string Arg_NamedParamNull
static string Arg_PropSetGet
static string Argument_ResolveMethodHandle
static string Arg_PropSetInvoke
static string Acc_CreateGenericEx
static string MissingConstructor_Name
static string Arg_EnumUnderlyingTypeAndObjectMustBeSameType
static string Argument_GenericArgsCount
static string Arg_NotGenericTypeDefinition
static string Arg_NamedParamTooBig
static string Argument_MustBeRuntimeType
static string Arg_MustBeEnumBaseTypeOrEnum
static string Argument_GenConstraintViolation
static string Arg_FldGetPropSet
static int CompareExchange(ref int location1, int value, int comparand)
static void Exit(object obj)
static void Enter(object obj)
static bool Read(ref bool location)
static void Write(ref bool location, bool value)
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
virtual RuntimeTypeHandle GetTypeHandleInternal()
Type UnderlyingSystemType
static Binder DefaultBinder
static TypeCode GetTypeCode(Type? type)
bool ImplementInterface(Type ifaceType)
static bool IsIntegerType(Type t)
virtual bool IsSubclassOf(Type c)
Type GetRootElementType()
static readonly Type[] EmptyTypes
static ArgumentException CreateGetMemberWithSameMetadataDefinitionAsNotFoundException(MemberInfo member)
virtual bool IsGenericTypeDefinition
ConstructorInfo[] GetConstructors()
DynamicallyAccessedMemberTypes
GenericParameterAttributes
static readonly IntPtr Zero
unsafe bool Equals(MdUtf8String s)
static unsafe uint HashCaseInsensitive(void *sz, int cSz)
static unsafe bool EqualsCaseInsensitive(void *szLhs, void *szRhs, int cSz)
static bool ContainsPropertyMatchingHash(RuntimeModule module, int propertyToken, uint hash)
static MetadataImport GetMetadataImport(RuntimeModule module)
static RuntimeType GetApproxDeclaringType(RuntimeFieldHandleInternal field)
static bool MatchesNameHash(RuntimeFieldHandleInternal handle, uint hash)
static FieldAttributes GetAttributes(RuntimeFieldHandleInternal field)
static bool AcquiresContextFromThis(RuntimeFieldHandleInternal field)
static unsafe MdUtf8String GetUtf8Name(RuntimeFieldHandleInternal field)
static RuntimeFieldHandleInternal GetStaticFieldForGenericType(RuntimeFieldHandleInternal field, RuntimeType declaringType)
static RuntimeType[] GetMethodInstantiationInternal(IRuntimeMethodInfo method)
static bool IsConstructor(RuntimeMethodHandleInternal method)
static Resolver GetResolver(RuntimeMethodHandleInternal method)
static RuntimeMethodHandleInternal GetMethodFromCanonical(RuntimeMethodHandleInternal method, RuntimeType declaringType)
static bool HasMethodInstantiation(RuntimeMethodHandleInternal method)
static LoaderAllocator GetLoaderAllocator(RuntimeMethodHandleInternal method)
static string GetName(RuntimeMethodHandleInternal method)
static unsafe MdUtf8String GetUtf8Name(RuntimeMethodHandleInternal method)
static bool IsDynamicMethod(RuntimeMethodHandleInternal method)
static int GetSlot(RuntimeMethodHandleInternal method)
static RuntimeType GetDeclaringType(RuntimeMethodHandleInternal method)
static bool MatchesNameHash(RuntimeMethodHandleInternal method, uint hash)
static bool IsGenericMethodDefinition(RuntimeMethodHandleInternal method)
static RuntimeMethodHandleInternal GetStubIfNeeded(RuntimeMethodHandleInternal method, RuntimeType declaringType, RuntimeType[] methodInstantiation)
static MethodAttributes GetAttributes(RuntimeMethodHandleInternal method)
static bool IsPrimitive(RuntimeType type)
static void GetConstraints(QCallTypeHandle handle, ObjectHandleOnStack types)
static void MakePointer(QCallTypeHandle handle, ObjectHandleOnStack type)
static bool IsValueType(RuntimeType type)
static RuntimeType GetDeclaringType(RuntimeType type)
static bool IsComObject(RuntimeType type, bool isGenericCOM)
static bool IsPointer(RuntimeType type)
static TypeAttributes GetAttributes(RuntimeType type)
static unsafe bool GetFields(RuntimeType type, IntPtr *result, int *count)
static void GetTypeByName(string name, bool throwOnError, bool ignoreCase, StackCrawlMarkHandle stackMark, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack type, ObjectHandleOnStack keepalive)
static IntroducedMethodEnumerator GetIntroducedMethods(RuntimeType type)
static bool IsByRefLike(RuntimeType type)
static void MakeSZArray(QCallTypeHandle handle, ObjectHandleOnStack type)
static void GetGenericTypeDefinition(QCallTypeHandle type, ObjectHandleOnStack retType)
static MetadataImport GetMetadataImport(RuntimeType type)
static bool IsInterface(RuntimeType type)
static bool CanCastTo(RuntimeType type, RuntimeType target)
static RuntimeModule GetModule(RuntimeType type)
static bool ContainsGenericVariables(RuntimeType handle)
static void MakeByRef(QCallTypeHandle handle, ObjectHandleOnStack type)
static Type[] GetInterfaces(RuntimeType type)
static unsafe MdUtf8String GetUtf8Name(RuntimeType type)
static int GetToken(RuntimeType type)
static bool HasInstantiation(RuntimeType type)
static bool IsByRef(RuntimeType type)
static bool IsGenericTypeDefinition(RuntimeType type)
static bool IsSZArray(RuntimeType type)
static int GetNumVirtualsAndStaticVirtuals(RuntimeType type)
static RuntimeAssembly GetAssembly(RuntimeType type)
static RuntimeType GetElementType(RuntimeType type)
static unsafe void GetActivationInfo(RuntimeType rt, out delegate *< void *, object > pfnAllocator, out void *vAllocatorFirstArg, out delegate *< object, void > pfnCtor, out bool ctorIsPublic)
static void MakeArray(QCallTypeHandle handle, int rank, ObjectHandleOnStack type)
static Interop.BOOL IsCollectible(QCallTypeHandle handle)
static bool IsGenericVariable(RuntimeType type)
static RuntimeMethodHandleInternal GetMethodAt(RuntimeType type, int slot)
static void ConstructName(QCallTypeHandle handle, TypeNameFormatFlags formatFlags, StringHandleOnStack retString)
static bool IsEquivalentTo(RuntimeType rtType1, RuntimeType rtType2)
static unsafe void Instantiate(QCallTypeHandle handle, IntPtr *pInst, int numGenericArgs, ObjectHandleOnStack type)
static bool HasElementType(RuntimeType type)
static int GetGenericVariableIndex(RuntimeType type)
static bool IsArray(RuntimeType type)
static unsafe bool SatisfiesConstraints(RuntimeType paramType, IntPtr *pTypeContext, int typeContextLength, IntPtr *pMethodContext, int methodContextLength, RuntimeType toType)
static CorElementType GetCorElementType(RuntimeType type)
static bool CompareCanonicalHandles(RuntimeType left, RuntimeType right)
static IRuntimeMethodInfo GetDeclaringMethod(RuntimeType type)
static RuntimeType GetBaseType(RuntimeType type)
static bool IsInstanceOfType(RuntimeType type, [NotNullWhen(true)] object o)
static int GetNumVirtuals(RuntimeType type)
static int GetArrayRank(RuntimeType type)
static bool IsTypeDefinition(RuntimeType type)
ListBuilder(int capacity)
void CopyTo(object[] array, int index)
readonly MemberListType m_listType
bool RequiresStringComparison()
readonly MdUtf8String m_name
unsafe Filter(byte *pUtf8Name, int cUtf8Name, MemberListType listType)
bool Match(MdUtf8String name)
static void InternalSet(IntPtr handle, object value)
static unsafe object InternalGet(IntPtr handle)
static object InternalCompareExchange(IntPtr handle, object value, object oldValue)