29 for (
int i = 0; i <
array2.Length; i++)
262 dllImportAttribute.CharSet =
charSet;
263 dllImportAttribute.SetLastError = (attributes &
PInvokeAttributes.SupportsLastError) != 0;
264 dllImportAttribute.ExactSpelling = (attributes &
PInvokeAttributes.NoMangle) != 0;
305 marshalAsAttribute.SizeConst =
sizeConst;
314 if ((
object)
field.DeclaringType !=
null &&
field.GetRuntimeModule().MetadataImport.GetFieldOffset(
field.DeclaringType.MetadataToken,
field.MetadataToken,
out var offset))
323 if (
type.IsInterface ||
type.HasElementType ||
type.IsGenericParameter)
359 structLayoutAttribute.Pack =
packSize;
361 structLayoutAttribute.CharSet =
charSet;
void Add(TKey key, TValue value)
static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType)
static bool IsDefined(RuntimeType type, RuntimeType caType)
static bool IsDefined(RuntimeFieldInfo field, RuntimeType caType)
static MarshalAsAttribute GetMarshalAsCustomAttribute(RuntimeFieldInfo field)
static void GetCustomAttributes(RuntimeFieldInfo field, RuntimeType caType, ref RuntimeType.ListBuilder< Attribute > pcas)
static void GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType, ref RuntimeType.ListBuilder< Attribute > pcas)
static void GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, ref RuntimeType.ListBuilder< Attribute > pcas)
static bool IsDefined(RuntimeParameterInfo parameter, RuntimeType caType)
static FieldOffsetAttribute GetFieldOffsetCustomAttribute(RuntimeFieldInfo field)
static void GetCustomAttributes(RuntimeType type, RuntimeType caType, ref RuntimeType.ListBuilder< Attribute > pcas)
static MarshalAsAttribute GetMarshalAsCustomAttribute(int token, RuntimeModule scope)
static DllImportAttribute GetDllImportCustomAttribute(RuntimeMethodInfo method)
static MarshalAsAttribute GetMarshalAsCustomAttribute(RuntimeParameterInfo parameter)
static StructLayoutAttribute GetStructLayoutCustomAttribute(RuntimeType type)
static readonly HashSet< RuntimeType > s_pca
static HashSet< RuntimeType > CreatePseudoCustomAttributeHashSet()
static MetadataImport GetMetadataImport(RuntimeModule module)
static void GetTypeByNameUsingCARules(string name, QCallModule scope, ObjectHandleOnStack type)