7 overrides of DeclaringMethod
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
251
public override MethodBase?
DeclaringMethod
=> null;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
94
public sealed override MethodBase
DeclaringMethod
=> throw new NotSupportedException(SR.NotSupported_SignatureType);
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
194
public override MethodBase?
DeclaringMethod
=> m_type.DeclaringMethod;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1061
public override MethodBase?
DeclaringMethod
=> m_declMeth;
src\System\RuntimeType.CoreCLR.cs (1)
3247
public override MethodBase?
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)
145
public abstract override MethodBase?
DeclaringMethod
{ get; }
23 references to DeclaringMethod
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)
467
if (t.
DeclaringMethod
!= null)
744
if (t.IsGenericParameter && t.
DeclaringMethod
!= null)
746
MethodBase methodBase = t.
DeclaringMethod
;
1634
if (t.IsGenericParameter && t.
DeclaringMethod
!= null && t.
DeclaringMethod
== m)
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoHelpers.cs (1)
43
target.
DeclaringMethod
!= null;
Microsoft.VisualBasic.Core (9)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (1)
1132
If AreGenericMethodDefsEqual(parameterType.
DeclaringMethod
, targetProcedure) Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
545
possibleGenericParameter.
DeclaringMethod
IsNot Nothing AndAlso
546
AreGenericMethodDefsEqual(possibleGenericParameter.
DeclaringMethod
, genericMethodDef) Then
563
Debug.Assert(referringType.
DeclaringMethod
.IsGenericMethodDefinition, "Unexpected generic method instantiation!!!")
565
If AreGenericMethodDefsEqual(referringType.
DeclaringMethod
, method) Then
Microsoft\VisualBasic\CompilerServices\Utils.vb (4)
274
If t1.
DeclaringMethod
Is Nothing AndAlso member1.DeclaringType.Equals(t1.DeclaringType) Then
275
If Not (t2.
DeclaringMethod
Is Nothing AndAlso member2.DeclaringType.Equals(t2.DeclaringType)) Then
278
ElseIf t2.
DeclaringMethod
Is Nothing AndAlso member2.DeclaringType.Equals(t2.DeclaringType) Then
325
If typeParam.
DeclaringMethod
IsNot Nothing Then
System.Private.CoreLib (3)
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;
src\System\Reflection\Emit\SignatureHelper.cs (1)
326
if (clsArgument.
DeclaringMethod
!= null)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
54
get { return _typeInfo.
DeclaringMethod
; }