@@ -17,46 +17,46 @@ internal sealed unsafe class RtFieldInfo : RuntimeFieldInfo, IRuntimeFieldInfo
1717 // lazy caching
1818 private string ? m_name ;
1919 private RuntimeType ? m_fieldType ;
20- private INVOCATION_FLAGS m_invocationFlags ;
20+ private InvocationFlags m_invocationFlags ;
2121
22- internal INVOCATION_FLAGS InvocationFlags
22+ internal InvocationFlags InvocationFlags
2323 {
2424 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
25- get => ( m_invocationFlags & INVOCATION_FLAGS . INVOCATION_FLAGS_INITIALIZED ) != 0 ?
25+ get => ( m_invocationFlags & InvocationFlags . Initialized ) != 0 ?
2626 m_invocationFlags : InitializeInvocationFlags ( ) ;
2727 }
2828
2929 [ MethodImpl ( MethodImplOptions . NoInlining ) ]
30- private INVOCATION_FLAGS InitializeInvocationFlags ( )
30+ private InvocationFlags InitializeInvocationFlags ( )
3131 {
3232 Type ? declaringType = DeclaringType ;
3333
34- INVOCATION_FLAGS invocationFlags = 0 ;
34+ InvocationFlags invocationFlags = 0 ;
3535
3636 // first take care of all the NO_INVOKE cases
3737 if ( declaringType != null && declaringType . ContainsGenericParameters )
3838 {
39- invocationFlags |= INVOCATION_FLAGS . INVOCATION_FLAGS_NO_INVOKE ;
39+ invocationFlags |= InvocationFlags . NoInvoke ;
4040 }
4141
4242 // If the invocationFlags are still 0, then
4343 // this should be an usable field, determine the other flags
4444 if ( invocationFlags == 0 )
4545 {
4646 if ( ( m_fieldAttributes & FieldAttributes . InitOnly ) != ( FieldAttributes ) 0 )
47- invocationFlags |= INVOCATION_FLAGS . INVOCATION_FLAGS_SPECIAL_FIELD ;
47+ invocationFlags |= InvocationFlags . SpecialField ;
4848
4949 if ( ( m_fieldAttributes & FieldAttributes . HasFieldRVA ) != ( FieldAttributes ) 0 )
50- invocationFlags |= INVOCATION_FLAGS . INVOCATION_FLAGS_SPECIAL_FIELD ;
50+ invocationFlags |= InvocationFlags . SpecialField ;
5151
5252 // find out if the field type is one of the following: Primitive, Enum or Pointer
5353 Type fieldType = FieldType ;
5454 if ( fieldType . IsPointer || fieldType . IsEnum || fieldType . IsPrimitive )
55- invocationFlags |= INVOCATION_FLAGS . INVOCATION_FLAGS_FIELD_SPECIAL_CAST ;
55+ invocationFlags |= InvocationFlags . FieldSpecialCast ;
5656 }
5757
5858 // must be last to avoid threading problems
59- return m_invocationFlags = invocationFlags | INVOCATION_FLAGS . INVOCATION_FLAGS_INITIALIZED ;
59+ return m_invocationFlags = invocationFlags | InvocationFlags . Initialized ;
6060 }
6161 #endregion
6262
@@ -124,10 +124,10 @@ internal override RuntimeModule GetRuntimeModule()
124124 [ Diagnostics . DebuggerHidden ]
125125 public override object ? GetValue ( object ? obj )
126126 {
127- INVOCATION_FLAGS invocationFlags = InvocationFlags ;
127+ InvocationFlags invocationFlags = InvocationFlags ;
128128 RuntimeType ? declaringType = DeclaringType as RuntimeType ;
129129
130- if ( ( invocationFlags & INVOCATION_FLAGS . INVOCATION_FLAGS_NO_INVOKE ) != 0 )
130+ if ( ( invocationFlags & InvocationFlags . NoInvoke ) != 0 )
131131 {
132132 if ( declaringType != null && DeclaringType ! . ContainsGenericParameters )
133133 throw new InvalidOperationException ( SR . Arg_UnboundGenField ) ;
@@ -170,10 +170,10 @@ internal override RuntimeModule GetRuntimeModule()
170170 [ Diagnostics . DebuggerHidden ]
171171 public override void SetValue ( object ? obj , object ? value , BindingFlags invokeAttr , Binder ? binder , CultureInfo ? culture )
172172 {
173- INVOCATION_FLAGS invocationFlags = InvocationFlags ;
173+ InvocationFlags invocationFlags = InvocationFlags ;
174174 RuntimeType ? declaringType = DeclaringType as RuntimeType ;
175175
176- if ( ( invocationFlags & INVOCATION_FLAGS . INVOCATION_FLAGS_NO_INVOKE ) != 0 )
176+ if ( ( invocationFlags & InvocationFlags . NoInvoke ) != 0 )
177177 {
178178 if ( declaringType != null && declaringType . ContainsGenericParameters )
179179 throw new InvalidOperationException ( SR . Arg_UnboundGenField ) ;
0 commit comments