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)
196
if (_fieldInfo.
DeclaringType
is not null && _fieldInfo.
DeclaringType
.ContainsGenericParameters)
199
if (_fieldInfo.
DeclaringType
is not null && ((RuntimeType)_fieldInfo.FieldType).IsNullableOfT)
312
if (_fieldInfo.
DeclaringType
is not null && _fieldInfo.
DeclaringType
.ContainsGenericParameters)
src\System\Reflection\MdFieldInfo.cs (3)
63
public override bool IsSecurityCritical =>
DeclaringType
!.IsSecurityCritical;
64
public override bool IsSecuritySafeCritical =>
DeclaringType
!.IsSecuritySafeCritical;
65
public override bool IsSecurityTransparent =>
DeclaringType
!.IsSecurityTransparent;
src\System\Reflection\RtFieldInfo.cs (3)
60
internal string FullName =>
DeclaringType
!.FullName + "." + Name;
96
return RuntimeFieldHandle.GetValueDirect(this, (RuntimeType)FieldType, obj, (RuntimeType?)
DeclaringType
);
112
RuntimeFieldHandle.SetValueDirect(this, (RuntimeType)FieldType, obj, value, (RuntimeType?)
DeclaringType
);
src\System\RuntimeType.CoreCLR.cs (3)
2956
if (ReferenceEquals(fieldInfo.
DeclaringType
, match.DeclaringType))
2959
if ((match.DeclaringType!.IsInterface) && (fieldInfo.
DeclaringType
!.IsInterface))
2963
if (match == null || fieldInfo.
DeclaringType
!.IsSubclassOf(match.DeclaringType!) || match.DeclaringType!.IsInterface)