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)
191if (_fieldInfo.DeclaringType is not null && _fieldInfo.DeclaringType.ContainsGenericParameters) 194if (_fieldInfo.DeclaringType is not null && ((RuntimeType)_fieldInfo.FieldType).IsNullableOfT) 307if (_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; 97return RuntimeFieldHandle.GetValueDirect(this, (RuntimeType)FieldType, &obj, (RuntimeType?)DeclaringType); 115RuntimeFieldHandle.SetValueDirect(this, (RuntimeType)FieldType, &obj, value, (RuntimeType?)DeclaringType);
src\System\RuntimeType.CoreCLR.cs (3)
2958if (ReferenceEquals(fieldInfo.DeclaringType, match.DeclaringType)) 2961if ((match.DeclaringType!.IsInterface) && (fieldInfo.DeclaringType!.IsInterface)) 2965if (match == null || fieldInfo.DeclaringType!.IsSubclassOf(match.DeclaringType!) || match.DeclaringType!.IsInterface)