Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FieldOnTypeBuilderInstantiation.cs
Go to the documentation of this file.
2
4
6{
8
10
12
13 public override MemberTypes MemberType => MemberTypes.Field;
14
15 public override string Name => m_field.Name;
16
17 public override Type DeclaringType => m_type;
18
19 public override Type ReflectedType => m_type;
20
21 public override int MetadataToken
22 {
23 get
24 {
25 FieldBuilder fieldBuilder = m_field as FieldBuilder;
26 if (fieldBuilder != null)
27 {
28 return fieldBuilder.MetadataToken;
29 }
31 }
32 }
33
34 public override Module Module => m_field.Module;
35
37 {
38 get
39 {
40 throw new NotImplementedException();
41 }
42 }
43
44 public override Type FieldType
45 {
46 get
47 {
48 throw new NotImplementedException();
49 }
50 }
51
53
55 {
56 FieldInfo fieldInfo;
57 if (type.m_hashtable.Contains(Field))
58 {
59 fieldInfo = type.m_hashtable[Field] as FieldInfo;
60 }
61 else
62 {
64 type.m_hashtable[Field] = fieldInfo;
65 }
66 return fieldInfo;
67 }
68
74
75 public override object[] GetCustomAttributes(bool inherit)
76 {
77 return m_field.GetCustomAttributes(inherit);
78 }
79
80 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
81 {
82 return m_field.GetCustomAttributes(attributeType, inherit);
83 }
84
85 public override bool IsDefined(Type attributeType, bool inherit)
86 {
87 return m_field.IsDefined(attributeType, inherit);
88 }
89
90 public override Type[] GetRequiredCustomModifiers()
91 {
93 }
94
95 public override Type[] GetOptionalCustomModifiers()
96 {
98 }
99
100 public override void SetValueDirect(TypedReference obj, object value)
101 {
102 throw new NotImplementedException();
103 }
104
105 public override object GetValueDirect(TypedReference obj)
106 {
107 throw new NotImplementedException();
108 }
109
110 public override object GetValue(object obj)
111 {
112 throw new InvalidOperationException();
113 }
114
115 public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
116 {
117 throw new InvalidOperationException();
118 }
119}
override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
FieldOnTypeBuilderInstantiation(FieldInfo field, TypeBuilderInstantiation type)
override bool IsDefined(Type attributeType, bool inherit)
static FieldInfo GetField(FieldInfo Field, TypeBuilderInstantiation type)
override void SetValueDirect(TypedReference obj, object value)
FieldAttributes Attributes
Definition FieldInfo.cs:11
virtual Type[] GetOptionalCustomModifiers()
Definition FieldInfo.cs:132
virtual Type[] GetRequiredCustomModifiers()
Definition FieldInfo.cs:137
bool IsDefined(Type attributeType, bool inherit)
object[] GetCustomAttributes(bool inherit)