67 references to System_Delegate
Microsoft.CodeAnalysis (21)
SpecialMembers.cs (14)
169(byte)SpecialType.System_Delegate, // DeclaringTypeId 172(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 173(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 174(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 178(byte)SpecialType.System_Delegate, // DeclaringTypeId 181(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 182(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 183(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 187(byte)SpecialType.System_Delegate, // DeclaringTypeId 191(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 192(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 196(byte)SpecialType.System_Delegate, // DeclaringTypeId 200(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 201(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate,
WellKnownMembers.cs (7)
413(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type 419(byte)SpecialType.System_Delegate, // DeclaringTypeId 422(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type 429(byte)SpecialType.System_Delegate, // DeclaringTypeId 432(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, // Return Type 677(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate, 686(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Delegate,
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractSpeculationAnalyzer.cs (1)
991SpecialType.System_Delegate or
ITypeSymbolExtensions.cs (1)
273case SpecialType.System_Delegate:
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Constraints.cs (2)
481case SpecialType.System_Delegate: 528case SpecialType.System_Delegate:
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2631specialDestination == SpecialType.System_Delegate || 3403if (source.SpecialType == SpecialType.System_Delegate || source.SpecialType == SpecialType.System_MulticastDelegate) 3408if (HasImplicitConversionToInterface(this.corLibrary.GetDeclaredSpecialType(SpecialType.System_Delegate), source, ref useSiteInfo))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
380TypeSymbol systemDelegateType = _binder.Compilation.GetSpecialType(SpecialType.System_Delegate); 750((object)left.Type == null || (!left.Type.IsDelegateType() && left.Type.SpecialType != SpecialType.System_String && left.Type.SpecialType != SpecialType.System_Delegate)) && 751((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)
3978(SpecialType.System_Delegate, SpecialType.System_Delegate))
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
697unquoted = _bound.StaticCall(_bound.SpecialType(SpecialType.System_Delegate), "CreateDelegate", _bound.Typeof(delegateType), receiver, _bound.MethodInfo(method));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1952BoundExpression result = method.ReturnType.SpecialType == SpecialType.System_Delegate ?
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
477this.SpecialType == SpecialType.System_MulticastDelegate && baseSpecialType == SpecialType.System_Delegate) 649case SpecialType.System_Delegate:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
95isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Features (1)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
95isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\DelegateTypeTests.cs (8)
752Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 898Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1222Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1317Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1412Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 1830Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 5316Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.SpecialType); 5339Assert.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)
8179else if (leftType.SpecialType == SpecialType.System_Delegate && rightType.SpecialType == SpecialType.System_Delegate) 8182compilation.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)
1015(baseCorTypeId = SpecialType.System_Delegate AndAlso Me.SpecialType <> SpecialType.System_MulticastDelegate) Then 1305SpecialType.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)
156Return typeSymbol.SpecialType <> SpecialType.System_Delegate
Microsoft.CodeAnalysis.Workspaces (2)
AbstractSpeculationAnalyzer.cs (1)
991SpecialType.System_Delegate or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
273case SpecialType.System_Delegate:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
115not SpecialType.System_Delegate and
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\InternalElements\CodeDelegate.cs (1)
84this.FileCodeModel.GetCompilation().GetSpecialType(SpecialType.System_Delegate));