Base:
property
DeclaringType
System.Reflection.MemberInfo.DeclaringType
14 references to DeclaringType
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (5)
196if (_fieldInfo.DeclaringType is not null && _fieldInfo.DeclaringType.ContainsGenericParameters) 199if (_fieldInfo.DeclaringType is not null && ((RuntimeType)_fieldInfo.FieldType).IsNullableOfT) 312if (_fieldInfo.DeclaringType is not null && _fieldInfo.DeclaringType.ContainsGenericParameters)
src\System\Reflection\MdFieldInfo.cs (3)
63public override bool IsSecurityCritical => DeclaringType!.IsSecurityCritical; 64public override bool IsSecuritySafeCritical => DeclaringType!.IsSecuritySafeCritical; 65public override bool IsSecurityTransparent => DeclaringType!.IsSecurityTransparent;
src\System\Reflection\RtFieldInfo.cs (3)
60internal string FullName => DeclaringType!.FullName + "." + Name; 96return RuntimeFieldHandle.GetValueDirect(this, (RuntimeType)FieldType, obj, (RuntimeType?)DeclaringType); 112RuntimeFieldHandle.SetValueDirect(this, (RuntimeType)FieldType, obj, value, (RuntimeType?)DeclaringType);
src\System\RuntimeType.CoreCLR.cs (3)
2956if (ReferenceEquals(fieldInfo.DeclaringType, match.DeclaringType)) 2959if ((match.DeclaringType!.IsInterface) && (fieldInfo.DeclaringType!.IsInterface)) 2963if (match == null || fieldInfo.DeclaringType!.IsSubclassOf(match.DeclaringType!) || match.DeclaringType!.IsInterface)