342 references to Delegate
Microsoft.Analyzers.Local (1)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (64)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (33)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (28)
2404typeKind: TypeKind.Delegate,
2439typeKind: TypeKind.Delegate,
2472typeKind: TypeKind.Delegate,
2505typeKind: TypeKind.Delegate,
2538typeKind: TypeKind.Delegate,
2567typeKind: TypeKind.Delegate,
2596typeKind: TypeKind.Delegate,
2626typeKind: TypeKind.Delegate,
2661typeKind: TypeKind.Delegate,
2696typeKind: TypeKind.Delegate,
2729typeKind: TypeKind.Delegate,
2762typeKind: TypeKind.Delegate,
2792typeKind: TypeKind.Delegate,
2821typeKind: TypeKind.Delegate,
2856typeKind: TypeKind.Delegate,
2891typeKind: TypeKind.Delegate,
2924typeKind: TypeKind.Delegate,
2957typeKind: TypeKind.Delegate,
2987typeKind: TypeKind.Delegate,
3016typeKind: TypeKind.Delegate,
3050typeKind: TypeKind.Delegate,
3081typeKind: TypeKind.Delegate,
3403typeKind: TypeKind.Delegate,
3428typeKind: TypeKind.Delegate,
3463typeKind: TypeKind.Delegate,
3490typeKind: TypeKind.Delegate,
3597typeKind: TypeKind.Delegate,
3636typeKind: TypeKind.Delegate,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (4)
181new SymbolKindOrTypeKind(TypeKind.Delegate)
229new SymbolKindOrTypeKind(TypeKind.Delegate)
344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Compilation\SemanticModelGetSemanticInfoTests.cs (14)
5658Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
6437Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
7169Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
7171Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
7233Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
7235Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
7851Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
7853Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
7917Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
7919Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
7983Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
7985Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
10713Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind);
10715Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.VisualBasic (69)
Compilation\ClsComplianceChecker.vb (4)
186If symbol.TypeKind = TypeKind.Delegate Then
439If type.TypeKind = TypeKind.Delegate AndAlso type.IsImplicitlyDeclared AndAlso TryCast(type, NamedTypeSymbol)?.AssociatedSymbol Is symbol Then
595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (26)
Semantics\GetExtendedSemanticInfoTests.vb (11)
6812Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind)
6814Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind)
6887Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind)
6889Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind)
6962Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind)
6964Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind)
7037Assert.Equal(TypeKind.Delegate, semanticInfo.Type.TypeKind)
7039Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.TypeKind)
7739Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind)
7741Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.TypeKind)
7774Assert.Equal(TypeKind.Delegate, semanticSummary.Type.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (12)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
Microsoft.CodeAnalysis.Workspaces (20)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.Gen.Logging (2)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.VisualStudio.LanguageServices (6)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)