5 overrides of DeclaringMethod
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
250public override MethodBase? DeclaringMethod => null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
98public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType);
System\RuntimeType.NativeAot.cs (1)
681public override MethodBase? DeclaringMethod => GetRuntimeTypeInfo().DeclaringMethod;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
52public override MethodBase? DeclaringMethod
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
141public abstract override MethodBase? DeclaringMethod { get; }
17 references to DeclaringMethod
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3846return type.DeclaringMethod is not null ? $"``{type.GenericParameterPosition}" : $"`{type.GenericParameterPosition}";
Microsoft.CSharp (9)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (4)
157if (t1.DeclaringMethod == null && member1.DeclaringType.Equals(t1.DeclaringType)) 159if (!(t2.DeclaringMethod == null && member2.DeclaringType.Equals(t2.DeclaringType))) 164else if (t2.DeclaringMethod == null && member2.DeclaringType.Equals(t2.DeclaringType)) 225if (typeParam.DeclaringMethod != null)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (5)
476if (t.DeclaringMethod != null) 760if (t.IsGenericParameter && t.DeclaringMethod != null) 762MethodBase methodBase = t.DeclaringMethod; 1665if (t.IsGenericParameter && t.DeclaringMethod != null && t.DeclaringMethod == m)
Microsoft.TestPlatform.AdapterUtilities (1)
Helpers\ReflectionHelpers.Type.cs (1)
18return type.DeclaringMethod;
Mono.Cecil (2)
Mono.Cecil\Import.cs (2)
252 if (type.DeclaringMethod != null) 253 return context.MethodParameter (NormalizeMethodName (type.DeclaringMethod), type.GenericParameterPosition);
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
58public virtual bool IsGenericTypeParameter => IsGenericParameter && DeclaringMethod is null; 59public virtual bool IsGenericMethodParameter => IsGenericParameter && DeclaringMethod != null;
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
206if (type.DeclaringMethod != null)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
54get { return _typeInfo.DeclaringMethod; }