39 references to IsDelegate
ilc (1)
RdXmlRootProvider.cs (1)
118
if (marshalDelegateDegreeAttribute != null && type.
IsDelegate
)
ILCompiler.Compiler (22)
Compiler\Compilation.cs (1)
470
if (owningType.
IsDelegate
&& containingMethod.Name == "Invoke"u8)
Compiler\CompilerTypeSystemContext.Aot.cs (1)
213
if (type.
IsDelegate
)
Compiler\Dataflow\HandleCallAction.cs (2)
340
if (systemTypeValue.RepresentedType.Type.
IsDelegate
)
377
if (staticType is null || !staticType.
IsDelegate
)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
416
else if (parameterType.
IsDelegate
|| parameterType.IsWellKnownType(Internal.TypeSystem.WellKnownType.MulticastDelegate)
Compiler\DependencyAnalysis\DelegateMarshallingDataNode.cs (1)
25
Debug.Assert(type.
IsDelegate
);
Compiler\DependencyAnalysis\MetadataEETypeNode.cs (1)
52
if (_type.
IsDelegate
)
Compiler\DependencyAnalysis\ReflectedDelegateNode.cs (1)
23
Debug.Assert(delegateType is null || delegateType.
IsDelegate
);
Compiler\MetadataManager.cs (1)
431
if (owningType.
IsDelegate
)
Compiler\TypePreinit.cs (1)
609
if (owningType.
IsDelegate
)
Compiler\UsageBasedInteropStubManager.cs (2)
40
if (type.
IsDelegate
)
76
if (type.
IsDelegate
)
Compiler\UsageBasedMetadataManager.cs (1)
300
if (type.
IsDelegate
)
IL\ILImporter.Scanner.cs (3)
573
allowAsyncVariant = allowAsyncVariant && !method.OwningType.
IsDelegate
;
646
if (method.OwningType.
IsDelegate
&& method.Name == "Invoke"u8 &&
1053
if (ctorMethod.OwningType.
IsDelegate
)
parent\parent\Common\TypeSystem\IL\DelegateInfo.cs (1)
108
Debug.Assert(delegateType.
IsDelegate
);
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
33
if (owningType.
IsDelegate
)
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (1)
16
Debug.Assert(method.OwningType.
IsDelegate
);
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (1)
535
else if (type.
IsDelegate
|| InteropTypes.IsSystemDelegate(context, type) || InteropTypes.IsSystemMulticastDelegate(context, type))
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapper.cs (1)
164
Debug.Assert(delegateType.
IsDelegate
);
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
144
Debug.Assert(delegateType.
IsDelegate
);
ILCompiler.ReadyToRun (8)
Compiler\ProfileDataManager.cs (1)
205
bool isDelegateInvoke = targetMeth.OwningType.
IsDelegate
&& targetMeth.Name == "Invoke"u8;
JitInterface\CorInfoImpl.ReadyToRun.cs (2)
574
if (methodNeedingCode.OwningType.
IsDelegate
&& (
2185
(targetMethod.OwningType.
IsDelegate
&& targetMethod.Name == "Invoke"u8) ||
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1210
if (method.OwningType.
IsDelegate
&& method.Name == "Invoke"u8)
2130
if (method.OwningType.
IsDelegate
)
2341
if (type.
IsDelegate
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (1)
535
else if (type.
IsDelegate
|| InteropTypes.IsSystemDelegate(context, type) || InteropTypes.IsSystemMulticastDelegate(context, type))
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
144
Debug.Assert(delegateType.
IsDelegate
);
ILCompiler.RyuJit (3)
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1210
if (method.OwningType.
IsDelegate
&& method.Name == "Invoke"u8)
2130
if (method.OwningType.
IsDelegate
)
2341
if (type.
IsDelegate
)
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (3)
172
else if ((type1.
IsDelegate
== type2.
IsDelegate
) && type1.
IsDelegate
)
parent\parent\Common\TypeSystem\Common\TypeDesc.TypeEquivalence.cs (1)
87
if (!(IsInterface && (IsComImport || IsComEventInterface)) && !IsValueType && !
IsDelegate
)
parent\parent\Common\TypeSystem\Ecma\MetadataExtensions.cs (1)
218
if (!type.
IsDelegate
)