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