1 write to m_declaringType
System.Private.CoreLib (1)
src\System\Reflection\RuntimeFieldInfo.cs (1)
21m_declaringType = declaringType;
21 references to m_declaringType
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (8)
21Debug.Assert(_fieldInfo.m_declaringType != null); 23if (_fieldInfo.m_declaringType.ContainsGenericParameters || 24_fieldInfo.m_declaringType.IsNullableOfT) 178object? ret = RuntimeFieldHandle.GetValue(_fieldInfo, obj, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized); 193return RuntimeFieldHandle.GetValue(_fieldInfo, obj, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized); 303RuntimeFieldHandle.SetValue(_fieldInfo, obj, value, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized); 330RuntimeFieldHandle.SetValue(_fieldInfo, obj, value, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized); 352if (!_fieldInfo.m_declaringType.IsInstanceOfType(target))
src\System\Reflection\MdFieldInfo.cs (7)
37ReferenceEquals(m_declaringType, m.m_declaringType); 45internal override RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); } 52ReferenceEquals(fi.m_declaringType, m_declaringType) && 56HashCode.Combine(m_tkField.GetHashCode(), m_declaringType.GetUnderlyingNativeHandle().GetHashCode()); 118(int)fieldMarshal.Length, m_declaringType).FieldType;
src\System\Reflection\RtFieldInfo.cs (2)
77HashCode.Combine(m_fieldHandle.GetHashCode(), m_declaringType.GetUnderlyingNativeHandle().GetHashCode()); 146internal Signature GetSignature() => new Signature(this, m_declaringType);
src\System\Reflection\RuntimeFieldInfo.cs (4)
32return m_declaringType; 35internal RuntimeType GetRuntimeType() { return m_declaringType; } 43public override Type? DeclaringType => m_reflectedTypeCache.IsGlobal ? null : m_declaringType; 48public override bool IsCollectible => m_declaringType.IsCollectible;