81 references to System_Delegate
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
134Delegate = Compilation.GetSpecialType(SpecialType.System_Delegate);
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
277var delegateSymbol = semanticModel.Compilation.GetSpecialType(SpecialType.System_Delegate);
Microsoft.CodeAnalysis (21)
SpecialMembers.cs (18)
237(byte)SpecialType.System_Delegate, // DeclaringTypeId 240(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 241(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 242(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 246(byte)SpecialType.System_Delegate, // DeclaringTypeId 249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 251(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 255(byte)SpecialType.System_Delegate, // DeclaringTypeId 259(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 260(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 264(byte)SpecialType.System_Delegate, // DeclaringTypeId 268(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 269(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 273(byte)SpecialType.System_Delegate, // DeclaringTypeId 276(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type 283(byte)SpecialType.System_Delegate, // DeclaringTypeId 286(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type
WellKnownMembers.cs (3)
393(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type 636(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 645(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate,
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
275case SpecialType.System_Delegate:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1029SpecialType.System_Delegate or
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Constraints.cs (2)
522case SpecialType.System_Delegate: 569case SpecialType.System_Delegate:
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2780specialDestination == SpecialType.System_Delegate || 3642if (source.SpecialType == SpecialType.System_Delegate || source.SpecialType == SpecialType.System_MulticastDelegate) 3647if (HasImplicitConversionToInterface(this.corLibrary.GetDeclaredSpecialType(SpecialType.System_Delegate), source, ref useSiteInfo))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
380TypeSymbol systemDelegateType = _binder.Compilation.GetSpecialType(SpecialType.System_Delegate); 768((object)left.Type == null || (!left.Type.IsDelegateType() && left.Type.SpecialType != SpecialType.System_String && left.Type.SpecialType != SpecialType.System_Delegate)) && 769((object)right.Type == null || (!right.Type.IsDelegateType() && right.Type.SpecialType != SpecialType.System_String && right.Type.SpecialType != SpecialType.System_Delegate));
Binder\Semantics\Operators\OperatorFacts.cs (1)
39case SpecialType.System_Delegate:
Compilation\CSharpCompilation.cs (2)
4267(SpecialType.System_Delegate, SpecialType.System_Delegate))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2032BoundExpression result = method.ReturnType.SpecialType == SpecialType.System_Delegate ?
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
478this.SpecialType == SpecialType.System_MulticastDelegate && baseSpecialType == SpecialType.System_Delegate) 649case SpecialType.System_Delegate:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
89isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
89isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\DelegateTypeTests.cs (21)
752Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 898Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1214Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1250Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1335Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1375Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1418Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1462Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1557Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1637Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1687Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1737Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1787Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1837Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1887Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1937Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1983Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 2031Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 3610Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 8031Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 8054Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType);
Semantics\GenericConstraintsTests.cs (3)
980Assert.Equal(SpecialType.System_Delegate, typeParameter.ConstraintTypes().Single().SpecialType); 1015Assert.Equal(SpecialType.System_Delegate, typeParameter.ConstraintTypes().Single().SpecialType); 1032Assert.Equal(SpecialType.System_Delegate, typeParameter.ConstraintTypes().Single().SpecialType);
Semantics\OperatorTests.cs (4)
8180else if (leftType.SpecialType == SpecialType.System_Delegate && rightType.SpecialType == SpecialType.System_Delegate) 8183compilation.GetSpecialType(SpecialType.System_Delegate), compilation.GetSpecialType(SpecialType.System_Delegate),
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
253SpecialType.System_Delegate or
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_Delegates.vb (1)
229If targetType.SpecialType = SpecialType.System_Delegate OrElse
Symbols\ConstraintsHelper.vb (1)
178SpecialType.System_Delegate,
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1017(baseCorTypeId = SpecialType.System_Delegate AndAlso Me.SpecialType <> SpecialType.System_MulticastDelegate) Then 1327SpecialType.System_Delegate,
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1255SpecialType.System_Delegate,
Symbols\SpecialTypeExtensions.vb (1)
75SpecialType.System_Delegate,
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
158Return typeSymbol.SpecialType <> SpecialType.System_Delegate
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
275case SpecialType.System_Delegate:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1029SpecialType.System_Delegate or
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
115not SpecialType.System_Delegate and
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
244public INamedTypeSymbol? DelegateType => _DelegateType ??= Compilation.GetSpecialType(SpecialType.System_Delegate);