44 references to System_IDisposable
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\MvcDetector.cs (1)
30var disposable = wellKnownTypes.Get(SpecialType.System_IDisposable);
src\Shared\Roslyn\MvcFacts.cs (1)
136if (method.ExplicitInterfaceImplementations[i].ContainingType.SpecialType == SpecialType.System_IDisposable)
Microsoft.AspNetCore.Mvc.Analyzers (2)
src\Shared\Roslyn\MvcFacts.cs (1)
136if (method.ExplicitInterfaceImplementations[i].ContainingType.SpecialType == SpecialType.System_IDisposable)
TopLevelParameterNameAnalyzer.cs (1)
277var disposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiControllerSymbolCache.cs (1)
97var disposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
src\Shared\Roslyn\MvcFacts.cs (1)
136if (method.ExplicitInterfaceImplementations[i].ContainingType.SpecialType == SpecialType.System_IDisposable)
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (3)
3963: _compilation.GetSpecialType(SpecialType.System_IDisposable); 4212Debug.Assert(iDisposable.SpecialType == SpecialType.System_IDisposable || 4539: _compilation.GetSpecialType(SpecialType.System_IDisposable);
SpecialMembers.cs (1)
878(byte)SpecialType.System_IDisposable, // DeclaringTypeId
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251var idisposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
Microsoft.CodeAnalysis.CSharp (9)
Binder\ForEachLoopBinder.cs (1)
1259NamedTypeSymbol targetInterface = isAsync ? this.Compilation.GetWellKnownType(WellKnownType.System_IAsyncDisposable) : this.Compilation.GetSpecialType(SpecialType.System_IDisposable);
Binder\UsingStatementBinder.cs (1)
302: originalBinder.Compilation.GetSpecialType(SpecialType.System_IDisposable);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
103EnsureSpecialType(SpecialType.System_IDisposable, bag);
Lowering\IteratorRewriter\IteratorStateMachine.cs (1)
39interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_IDisposable));
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
163_compilation.GetSpecialType(SpecialType.System_IDisposable) : 239_compilation.GetSpecialType(SpecialType.System_IDisposable) :
Operations\CSharpOperationFactory.cs (1)
1899: compilation.GetSpecialType(SpecialType.System_IDisposable);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
34var iDisposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
787&& compilation.GetSpecialType(SpecialType.System_IDisposable) is not MissingMetadataTypeSymbol
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2169return CreateResult(SpecialType.System_IDisposable); 2193return CreateResult(SpecialType.System_IDisposable);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAwaitUsingTests.cs (3)
671comp.MakeTypeMissing(SpecialType.System_IDisposable); 3076comp.MakeTypeMissing(SpecialType.System_IDisposable); 3099comp.MakeTypeMissing(SpecialType.System_IDisposable);
CodeGen\CodeGenForEachTests.cs (1)
1395compilation.MakeTypeMissing(SpecialType.System_IDisposable);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\CollectionExpressionTests.cs (1)
42443[InlineData((int)SpecialType.System_IDisposable)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UsingStatementTests.cs (1)
67Assert.Equal(SpecialType.System_IDisposable, declaredLocal.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1053var disposeMethod = (IMethodSymbol)compilation.GetSpecialType(SpecialType.System_IDisposable).GetMembers("Dispose").Single();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2169return CreateResult(SpecialType.System_IDisposable); 2193return CreateResult(SpecialType.System_IDisposable);
Microsoft.CodeAnalysis.Features (3)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
68var disposableType = semanticModel.Compilation.GetSpecialType(SpecialType.System_IDisposable); 105var disposableType = semanticModel.Compilation.GetSpecialType(SpecialType.System_IDisposable);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251var idisposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\Binder_Statements.vb (3)
3488Dim idisposableType = Compilation.GetSpecialType(SpecialType.System_IDisposable) 3989Dim idisposable = GetSpecialType(SpecialType.System_IDisposable, collectionSyntax, diagnostics) 4446Dim iDisposable = GetSpecialType(SpecialType.System_IDisposable,
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
106EnsureSpecialType(SpecialType.System_IDisposable, bag)
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
56interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_IDisposable))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
604Return CreateResult(SpecialType.System_IDisposable) 856Return CreateResult(SpecialType.System_IDisposable)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
604Return CreateResult(SpecialType.System_IDisposable) 856Return CreateResult(SpecialType.System_IDisposable)
Mvc.Api.Analyzers.Test (1)
MvcFactsTest.cs (1)
211var type = compilation.GetSpecialType(SpecialType.System_IDisposable);