Base:
4 references to DeclaringType
System.Reflection.Emit (4)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
97public override Type? ReflectedType => DeclaringType;
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1042if (member is FieldBuilderImpl fb && Equals(fb.Module) && !fb.DeclaringType!.IsGenericTypeDefinition)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
887if (match != null && ReferenceEquals(fieldInfo.DeclaringType, match.DeclaringType)) 890throw new AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_MemberInfo, fieldInfo.DeclaringType, fieldInfo.Name));