62 if (fieldName ==
null)
66 if (fieldName.Length == 0)
70 if (fieldName[0] ==
'\0')
78 if (
type == typeof(
void))
87 fieldSigHelper.
AddArgument(
type, requiredCustomModifiers, optionalCustomModifiers);
94 internal void SetData(
byte[] data,
int size)
148 if (binaryAttribute ==
null)
159 if (customBuilder ==
null)
void CreateCustomAttribute(ModuleBuilder mod, int tkOwner)
void SetOffset(int iOffset)
override FieldAttributes Attributes
override object[] GetCustomAttributes(bool inherit)
override? object GetValue(object? obj)
void SetData(byte[] data, int size)
TypeBuilder m_typeBuilder
void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
override RuntimeFieldHandle FieldHandle
override bool IsDefined(Type attributeType, bool inherit)
void SetConstant(object? defaultValue)
override void SetValue(object? obj, object? val, BindingFlags invokeAttr, Binder? binder, CultureInfo? culture)
FieldBuilder(TypeBuilder typeBuilder, string fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes)
override? Type DeclaringType
void SetCustomAttribute(CustomAttributeBuilder customBuilder)
override? Type ReflectedType
FieldAttributes m_Attributes
int GetConstructorToken(ConstructorInfo con)
static void SetFieldRVAContent(QCallModule module, int fdToken, byte[] data, int length)
byte[] InternalGetSignature(out int length)
static SignatureHelper GetFieldSigHelper(Module? mod)
void AddArgument(Type clsArgument)
bool m_isHiddenGlobalType
static void SetFieldLayoutOffset(QCallModule module, int fdToken, int iOffset)
ModuleBuilder GetModuleBuilder()
static void DefineCustomAttribute(QCallModule module, int tkAssociate, int tkConstructor, byte[] attr, int attrLength)
static int DefineField(QCallModule module, int tkParent, string name, byte[] signature, int sigLength, FieldAttributes attributes)
static unsafe void SetConstantValue(QCallModule module, int tk, int corType, void *pValue)
static string Argument_ConstantNull
static string NotSupported_DynamicModule
static string Argument_IllegalName
static string Argument_BadFieldType
static string Argument_EmptyName
virtual bool IsGenericType
virtual Type GetGenericTypeDefinition()