109 interfaces inheriting from IDisposable
Aspire.Hosting.Testing (1)
DistributedApplicationTestingBuilder.cs (1)
419public interface IDistributedApplicationTestingBuilder : IDistributedApplicationBuilder, IAsyncDisposable, IDisposable
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
632internal interface IServerMutex : IDisposable
dotnet-openapi (2)
IHttpClientWrapper.cs (1)
10internal interface IHttpClientWrapper : IDisposable
IHttpResponseMessageWrapper.cs (1)
12public interface IHttpResponseMessageWrapper : IDisposable
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (1)
264internal interface ICommunicationWaiter : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\IClientChannel.cs (1)
15public interface IClientChannel : IContextChannel, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ISspiNegotiation.cs (1)
12internal interface ISspiNegotiation : IDisposable
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\INegotiateState.cs (1)
9internal interface INegotiateState : IDisposable
Microsoft.AspNetCore.DataProtection (2)
ISecret.cs (1)
11public interface ISecret : IDisposable
SP800_108\ISP800_108_CTR_HMACSHA512Provider.cs (1)
8internal unsafe interface ISP800_108_CTR_HMACSHA512Provider : IDisposable
Microsoft.AspNetCore.Hosting.Abstractions (1)
IWebHost.cs (1)
11public interface IWebHost : IDisposable
Microsoft.AspNetCore.Hosting.Server.Abstractions (1)
IServer.cs (1)
11public interface IServer : IDisposable
Microsoft.AspNetCore.Server.IIS (1)
Core\IO\IAsyncIOEngine.cs (1)
8internal interface IAsyncIOEngine : IDisposable
Microsoft.Build (1)
Logging\TerminalLogger\ITerminal.cs (1)
12internal interface ITerminal : IDisposable
Microsoft.Build.Framework (1)
ITranslator.cs (1)
67internal interface ITranslator : IDisposable
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
632internal interface IServerMutex : IDisposable
Microsoft.Cci.Extensions (1)
Writers\Syntax\ISyntaxWriter.cs (1)
9public interface ISyntaxWriter : IDisposable
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
18internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
9internal interface IAsyncToken : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
Microsoft.CodeAnalysis.EditorFeatures (3)
Preview\IDifferenceViewerPreview.cs (1)
10internal interface IDifferenceViewerPreview<TDifferenceViewer> : IDisposable
Undo\ISourceTextUndoTransaction.cs (1)
14internal interface ISourceTextUndoTransaction : IDisposable
Undo\IWorkspaceGlobalUndoTransaction.cs (1)
12internal interface IWorkspaceGlobalUndoTransaction : IDisposable
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
23internal interface IFSharpWorkspaceProjectContext : IDisposable
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\IFileDownloaderFactory.cs (1)
19internal interface IFileDownloader : IDisposable
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
9internal interface IAsyncToken : IDisposable
Microsoft.CodeAnalysis.LanguageServer (1)
Contracts\ITelemetryReporter.cs (1)
7internal interface ITelemetryReporter : IDisposable
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\ILspServices.cs (1)
14internal interface ILspServices : IDisposable
Microsoft.CodeAnalysis.Remote.Workspaces (2)
ProjectSystem\IWorkspaceProject.cs (1)
14internal interface IWorkspaceProject : IDisposable
ProjectSystem\IWorkspaceProjectBatch.cs (1)
17internal interface IWorkspaceProjectBatch : IDisposable
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\IRuntimeEnvironment.cs (1)
30public interface IRuntimeEnvironment : IDisposable
Microsoft.CodeAnalysis.Threading.Package (1)
TestHooks\IAsyncToken.cs (1)
9internal interface IAsyncToken : IDisposable
Microsoft.CodeAnalysis.Workspaces (9)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
18internal interface IAnalyzerAssemblyLoaderInternal : IAnalyzerAssemblyLoader, IDisposable
src\Dependencies\Threading\TestHooks\IAsyncToken.cs (1)
9internal interface IAsyncToken : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (1)
15internal interface IReferenceCountedDisposable<out T> : IDisposable, IAsyncDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
12internal interface IReductionRewriter : IDisposable
SymbolSearch\ISymbolSearchUpdateEngine.cs (1)
16internal interface ISymbolSearchUpdateEngine : IDisposable
Workspace\Host\TemporaryStorage\ITemporaryStorage.cs (2)
14public interface ITemporaryTextStorage : IDisposable 23public interface ITemporaryStreamStorage : IDisposable
Workspace\ProjectSystem\IFileChangeWatcher.cs (2)
78internal interface IFileChangeContext : IDisposable 93internal interface IWatchedFile : IDisposable
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
ILspServices.cs (1)
14internal interface ILspServices : IDisposable
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\IChatClient.cs (1)
28public interface IChatClient : IDisposable
Embeddings\IEmbeddingGenerator.cs (1)
14public interface IEmbeddingGenerator : IDisposable
SpeechToText\ISpeechToTextClient.cs (1)
29public interface ISpeechToTextClient : IDisposable
Microsoft.Extensions.Caching.Abstractions (2)
ICacheEntry.cs (1)
14public interface ICacheEntry : IDisposable
IMemoryCache.cs (1)
11public interface IMemoryCache : IDisposable
Microsoft.Extensions.DependencyInjection.Abstractions (1)
IServiceScope.cs (1)
17public interface IServiceScope : IDisposable
Microsoft.Extensions.DependencyModel (1)
IDependencyContextReader.cs (1)
9public interface IDependencyContextReader : IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
IManualHealthCheck.cs (1)
11public interface IManualHealthCheck : IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\IJobHandle.cs (1)
12internal interface IJobHandle : IDisposable
Microsoft.Extensions.Hosting.Abstractions (1)
IHost.cs (1)
13public interface IHost : IDisposable
Microsoft.Extensions.Identity.Core (2)
IRoleStore.cs (1)
14public interface IRoleStore<TRole> : IDisposable where TRole : class
IUserStore.cs (1)
14public interface IUserStore<TUser> : IDisposable where TUser : class
Microsoft.Extensions.Logging.Abstractions (2)
ILoggerFactory.cs (1)
12public interface ILoggerFactory : IDisposable
ILoggerProvider.cs (1)
11public interface ILoggerProvider : IDisposable
Microsoft.Extensions.Options.Contextual (1)
Provider\IConfigureContextualOptions.cs (1)
12public interface IConfigureContextualOptions<in TOptions> : IDisposable
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\ILatencyContext.cs (1)
16public interface ILatencyContext : IDisposable
Microsoft.JSInterop (2)
IJSInProcessObjectReference.cs (1)
12public interface IJSInProcessObjectReference : IJSObjectReference, IDisposable
Infrastructure\IDotNetObjectReference.cs (1)
6internal interface IDotNetObjectReference : IDisposable
Microsoft.Maui (1)
ImageSources\IImageSourceServiceResult.cs (1)
11 public interface IImageSourceServiceResult : IDisposable
Microsoft.Maui.Graphics (2)
IImage.cs (1)
14 public interface IImage : IDrawable, IDisposable
IPdfPage.cs (1)
7 public interface IPdfPage : IDrawable, IDisposable
Microsoft.ML.AutoML (2)
AutoMLExperiment\IPerformanceMonitor.cs (1)
19public interface IPerformanceMonitor : IDisposable
AutoMLExperiment\Runner\ITrialRunner.cs (1)
17public interface ITrialRunner : IDisposable
Microsoft.ML.Core (4)
Data\IFileHandle.cs (1)
16public interface IFileHandle : IDisposable
Data\IHostEnvironment.cs (1)
139public interface IPipe<TMessage> : IExceptionContext, IDisposable
Data\IProgressChannel.cs (1)
37public interface IProgressChannel : IProgressChannelProvider, IDisposable
Data\ServerChannel.cs (1)
158public interface IServer : IDisposable
Microsoft.ML.CpuMath (1)
ICpuBuffer.cs (1)
12internal interface ICpuBuffer<T> : IEnumerable<T>, IDisposable
Microsoft.ML.Data (3)
DataLoadSave\Binary\IValueCodec.cs (2)
68internal interface IValueWriter : IDisposable 124internal interface IValueReader<T> : IDisposable
DataView\TypedCursor.cs (1)
20internal interface IRowReadableAs<TRow> : IDisposable
Microsoft.ML.GenAI.Core (1)
Utility\Cache.cs (1)
15public interface IKVCache : IDictionary<int, (Tensor, Tensor)>, IDisposable
Microsoft.VisualStudio.LanguageServices (2)
IInvisibleEditor.cs (1)
10internal interface IInvisibleEditor : IDisposable
ProjectSystem\CPS\IWorkspaceProjectContext.cs (1)
20internal interface IWorkspaceProjectContext : IDisposable
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Telemetry\IRequestScope.cs (1)
9internal interface IRequestScope : IDisposable
MSBuildTaskHost (1)
ITranslator.cs (1)
67internal interface ITranslator : IDisposable
PresentationCore (2)
System\Windows\InterOp\IStylusInputProvider.cs (1)
13internal interface IStylusInputProvider : IInputProvider, IDisposable
System\Windows\Media\ICompositionTarget.cs (1)
19internal interface ICompositionTarget : IDisposable
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
632internal interface IServerMutex : IDisposable
System.ComponentModel.Primitives (2)
System\ComponentModel\IComponent.cs (1)
27public interface IComponent : IDisposable
System\ComponentModel\IContainer.cs (1)
16public interface IContainer : IDisposable
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\IDesigner.cs (1)
11public interface IDesigner : IDisposable
System.Data.Common (4)
System\Data\IDataReader.cs (1)
6public interface IDataReader : IDisposable, IDataRecord
System\Data\IDbCommand.cs (1)
8public interface IDbCommand : IDisposable
System\Data\IDbConnection.cs (1)
8public interface IDbConnection : IDisposable
System\Data\IDbTransaction.cs (1)
6public interface IDbTransaction : IDisposable
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\IMeterFactory.cs (1)
18public interface IMeterFactory : IDisposable
System.Private.CoreLib (4)
src\libraries\Common\src\System\Threading\ITimer.cs (1)
11public interface ITimer : IDisposable, IAsyncDisposable
src\libraries\System.Private.CoreLib\src\System\Buffers\IMemoryOwner.cs (1)
9public interface IMemoryOwner<T> : IDisposable
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IEnumerator.cs (1)
8public interface IEnumerator<out T> : IDisposable, IEnumerator
src\libraries\System.Private.CoreLib\src\System\Resources\IResourceReader.cs (1)
11public interface IResourceReader : IEnumerable, IDisposable
System.Resources.Writer (1)
System\Resources\IResourceWriter.cs (1)
6public interface IResourceWriter : IDisposable
System.Security.Cryptography (9)
System\Security\Cryptography\ICryptoTransform.cs (1)
9public interface ICryptoTransform : IDisposable
System\Security\Cryptography\ILiteSymmetricCipher.cs (1)
8internal interface ILiteSymmetricCipher : IDisposable
System\Security\Cryptography\LiteHashProvider.cs (1)
184internal interface ILiteHash : IDisposable
System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs (1)
9internal interface ICertificatePalCore : IDisposable
System\Security\Cryptography\X509Certificates\IChainPal.cs (1)
8internal interface IChainPal : IDisposable
System\Security\Cryptography\X509Certificates\IExportPal.cs (1)
8internal interface IExportPal : IDisposable
System\Security\Cryptography\X509Certificates\IFindPal.cs (1)
8internal interface IFindPal : IDisposable
System\Security\Cryptography\X509Certificates\ILoaderPal.cs (1)
6internal interface ILoaderPal : IDisposable
System\Security\Cryptography\X509Certificates\IStorePal.cs (1)
8internal interface IStorePal : IDisposable
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.IDesignerTarget.cs (1)
8private interface IDesignerTarget : IDisposable
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
632internal interface IServerMutex : IDisposable
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\IClientConnection.cs (1)
15internal interface IClientConnection : IDisposable
src\Compilers\Shared\BuildServerConnection.cs (1)
632internal interface IServerMutex : IDisposable
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\IDependencyContextReader.cs (1)
9internal interface IDependencyContextReader: IDisposable
1755 implementations of IDisposable
Aspire.Dashboard (16)
Components\Controls\ApplicationName.razor.cs (1)
11public sealed partial class ApplicationName : ComponentBase, IDisposable
Components\Controls\ResourceDetails.razor.cs (1)
17public partial class ResourceDetails : IComponentWithTelemetry, IDisposable
Components\Controls\SpanDetails.razor.cs (1)
15public partial class SpanDetails : IDisposable
Components\Controls\SummaryDetailsView.razor.cs (1)
15public partial class SummaryDetailsView<T> : IGlobalKeydownListener, IDisposable
Components\Dialogs\ExemplarsDialog.razor.cs (1)
16public partial class ExemplarsDialog : IDisposable
Components\Dialogs\SettingsDialog.razor.cs (1)
14public partial class SettingsDialog : IDialogContentComponent, IDisposable
Components\Layout\DesktopNavMenu.razor.cs (1)
12public partial class DesktopNavMenu : ComponentBase, IDisposable
Components\Pages\ComponentTelemetryContext.cs (1)
29public sealed class ComponentTelemetryContext : IDisposable
Components\Pages\Error.razor.cs (1)
10public partial class Error : IComponentWithTelemetry, IDisposable
Components\Pages\Metrics.razor.cs (1)
19public partial class Metrics : IDisposable, IComponentWithTelemetry, IPageWithSessionAndUrlState<Metrics.MetricsViewModel, Metrics.MetricsPageState>
Components\Pages\NotFound.razor.cs (1)
8public partial class NotFound : IComponentWithTelemetry, IDisposable
Components\Pages\TraceDetail.razor.cs (1)
19public partial class TraceDetail : ComponentBase, IComponentWithTelemetry, IDisposable
Components\Resize\GridColumnManager.razor.cs (1)
10public partial class GridColumnManager : ComponentBase, IDisposable
Model\BrowserLinkOutgoingPeerResolver.cs (1)
15private sealed class NullSubscription : IDisposable
Otlp\Storage\Subscription.cs (1)
9public sealed class Subscription : IDisposable
Otlp\Storage\TelemetryRepository.cs (1)
26public sealed class TelemetryRepository : IDisposable
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.Dashboard.Tests (4)
Model\SpanWaterfallViewModelTests.cs (1)
165private sealed class EmptyDisposable : IDisposable
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
9public sealed class TestOutgoingPeerResolver : IOutgoingPeerResolver, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
10public class ToolCommand : IDisposable
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (1)
20public class ResourceNotificationService : IDisposable
Dashboard\DashboardServiceData.cs (1)
14internal sealed class DashboardServiceData : IDisposable
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
189private sealed class TempDirectory : IDisposable
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
108public sealed class TempDirectory : IDisposable
Aspire.Hosting.Testing (1)
DistributedApplicationEntryPointInvoker.cs (1)
209internal sealed class TestingBuilderFactory : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>>, IDisposable
Aspire.Hosting.Testing.Tests (3)
ResourceLoggerForwarderServiceTests.cs (1)
136private sealed class TestHostApplicationLifetime : IHostApplicationLifetime, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.Hosting.Tests (3)
ResourceNotificationTests.cs (1)
411private sealed class TestHostApplicationLifetime : IHostApplicationLifetime, IDisposable
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.Microsoft.Data.SqlClient (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
11internal sealed class DiagnosticSourceSubscriber : IDisposable, IObserver<DiagnosticListener>
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientInstrumentation.cs (1)
16internal sealed class SqlClientInstrumentation : IDisposable
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
11internal sealed class DiagnosticSourceSubscriber : IDisposable, IObserver<DiagnosticListener>
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientInstrumentation.cs (1)
16internal sealed class SqlClientInstrumentation : IDisposable
Aspire.Playground.Tests (2)
tests\Shared\Logging\TestLogger.cs (1)
62private sealed class TestDisposable : IDisposable
tests\Shared\Logging\XunitLoggerProvider.cs (1)
120private sealed class NullScope : IDisposable
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
11internal sealed class RabbitMQEventSourceLogForwarder : IDisposable
Aspire.StackExchange.Redis (3)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
17internal sealed class StackExchangeRedisConnectionInstrumentation : IDisposable
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (2)
13internal sealed class StackExchangeRedisInstrumentation : IDisposable 79private sealed class StackExchangeRedisConnectionInstrumentationRegistration : IDisposable
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
10public class ToolCommand : IDisposable
BasicTestApp (2)
PreserveStateService.cs (1)
9public class PreserveStateService : IDisposable
ServerReliability\ThrowingDisposeComponent.cs (1)
8public class ThrowingDisposeComponent : IComponent, IDisposable
BuildValidator (2)
DemoLogger.cs (2)
16private sealed class Scope : IDisposable 61internal sealed class EmptyLogger : ILogger, IDisposable
Client.ClientBase.IntegrationTests (1)
SessionTests.cs (1)
483public class DuplexTestCleanupHelper : IDisposable
csc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
97internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
Diagnostics.EFCore.FunctionalTests (2)
Helpers\TestLoggerProvider.cs (1)
61public class NullScope : IDisposable
SqlServerTestStore.cs (1)
8public class SqlTestStore : IDisposable
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
12public class TestFixture<TStartup> : IDisposable
dotnet-svcutil-lib (34)
Bootstrapper\SvcutilBootstrapper.cs (1)
16internal class SvcutilBootstrapper : IDisposable
CodeDomFixup\CodeDomVisitors\NameScope.cs (1)
10internal abstract class NameScope : IDisposable
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
15public abstract class CodeDomProvider : IDisposable
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
29public class TempFileCollection : ICollection, IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
25public abstract partial class XmlReader : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (1)
26public abstract partial class XmlReader : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
48public abstract partial class XmlWriter : IDisposable
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeList.cs (1)
12public abstract class XmlNodeList : IEnumerable, IDisposable
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
616internal sealed class ExceptionXmlParser : IDisposable
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
11internal sealed class InputQueue<T> : IDisposable where T : class
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\Activity.cs (1)
9internal class Activity : IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\WindowsClaimSet.NetNative.cs (1)
18public class WindowsClaimSet : ClaimSet, IIdentityInfo, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
14public class X509CertificateClaimSet : ClaimSet, IIdentityInfo, IDisposable 488internal class X509Identity : GenericIdentity, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
18internal class UnconditionalPolicy : IAuthorizationPolicy, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
13public class X509SecurityTokenProvider : SecurityTokenProvider, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WindowsSecurityToken.NetNative.cs (1)
13public class WindowsSecurityToken : SecurityToken, IDisposable
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (1)
12public class X509SecurityToken : SecurityToken, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
14public abstract class ChannelFactory : CommunicationObject, IChannelFactory, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
9internal sealed class ChannelBindingMessageProperty : IDisposable, IMessageProperty
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
18public abstract class Message : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (1)
11public abstract class MessageBuffer : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (2)
12public sealed class MessageProperties : IDictionary<string, object>, IDisposable 856internal struct Property : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContext.cs (1)
9public abstract class RequestContext : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
282internal class RequestContextMessageProperty : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
15public abstract class ClientBase<TChannel> : ICommunicationObject, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
12internal class ServiceModelActivity : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (1)
11public sealed class OperationContextScope : IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityMessageProperty.cs (1)
12public class SecurityMessageProperty : IMessageProperty, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
15public class SecurityContextSecurityToken : SecurityToken, TimeBoundedCache.IExpirableItem, IDisposable
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
272internal sealed class EnumeratorAdapter : IEnumerator, IDisposable
Shared\MSBuildProj.cs (1)
18internal class MSBuildProj : IDisposable
Shared\Utilities\SafeLogger.cs (1)
11internal class SafeLogger : IDisposable, ILogger
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
17public class ClassFixture : IDisposable 628protected class CurrentDirectorySetter : IDisposable
GenerateDocumentationAndConfigFiles (3)
JsonWriter.cs (1)
25internal sealed class JsonWriter : IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
IIS.Common.TestLib (2)
DisposableList.cs (1)
9public class DisposableList<T> : List<T>, IDisposable where T : IDisposable
TestConnections.cs (1)
21public class TestConnection : IDisposable
IIS.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
IIS.LongTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
IIS.NewHandler.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
IIS.NewShim.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
IIS.ShadowCopy.Tests (6)
ShadowCopyTests.cs (1)
343public class TempDirectory : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
IIS.Tests (1)
Utilities\TestServer.cs (1)
26public partial class TestServer : IDisposable
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
65public class AppVerifierToken : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (1)
11public class ClientCertificateFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
15public class IISTestSiteFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedSitesFixture.cs (1)
20public class PublishedSitesFixture : IDisposable
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (1)
9public class TestRegistryKey : IDisposable
illink (5)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
79 public struct Enumerator : IEnumerator<TValue>, IDisposable, IEnumerator
InMemory.FunctionalTests (10)
BadHttpRequestTests.cs (1)
289private class BadRequestEventListener : IObserver<KeyValuePair<string, object>>, IDisposable
Http2\Http2TestBase.cs (1)
33public class Http2TestBase : TestApplicationErrorLoggerLoggedTest, IDisposable, IHttpStreamHeadersHandler
Http3\Http3TestBase.cs (1)
17public abstract class Http3TestBase : TestApplicationErrorLoggerLoggedTest, IDisposable
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
40internal sealed class CertificateAuthority : IDisposable
src\Servers\Kestrel\shared\test\DisposableStack.cs (1)
9public class DisposableStack<T> : Stack<T>, IDisposable
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
1095internal class TestStreamContext : ConnectionContext, IStreamDirectionFeature, IStreamIdFeature, IProtocolErrorCodeFeature, IPersistentStateFeature, IStreamAbortFeature, IDisposable, IStreamClosedFeature
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
12internal sealed class RevocationResponder : IDisposable
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
16public abstract class StreamBackedTestConnection : IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Interop.FunctionalTests (1)
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
InteropClient (1)
InteropClient.cs (1)
36public class InteropClient : IDisposable
InteropTests (3)
Helpers\ClientProcess.cs (1)
11public class ClientProcess : IDisposable
Helpers\WebsiteProcess.cs (1)
12public class WebsiteProcess : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Metrics (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Metrics.Legacy (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
12public class TemporaryDirectory : IDisposable
UserJwtsTestFixture.cs (1)
9public sealed class UserJwtsTestFixture : IDisposable
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
425private sealed class AuthPersistence : IDisposable
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthTokenResponse.cs (1)
12public class OAuthTokenResponse : IDisposable
Microsoft.AspNetCore.Authorization.Policy (2)
AuthorizationPolicyCache.cs (1)
10internal sealed class AuthorizationPolicyCache : IDisposable
src\Http\Routing\src\DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
Microsoft.AspNetCore.BrowserTesting (1)
PageInformation.cs (1)
9public class PageInformation : IDisposable
Microsoft.AspNetCore.Components (12)
NavigationManager.cs (1)
600private sealed class LocationChangingRegistration : IDisposable
OwningComponentBase.cs (2)
17public abstract class OwningComponentBase : ComponentBase, IDisposable 74public abstract class OwningComponentBase<TService> : OwningComponentBase, IDisposable where TService : notnull
PersistingComponentStateSubscription.cs (1)
12public readonly struct PersistingComponentStateSubscription : IDisposable
Rendering\RenderBatchBuilder.cs (1)
14internal sealed class RenderBatchBuilder : IDisposable
Rendering\RenderingMetrics.cs (1)
10internal sealed class RenderingMetrics : IDisposable
Rendering\RenderTreeBuilder.cs (1)
19public sealed class RenderTreeBuilder : IDisposable
RenderTree\Renderer.cs (1)
26public abstract partial class Renderer : IDisposable, IAsyncDisposable
Routing\Router.cs (1)
21public partial class Router : IComponent, IHandleAfterRender, IDisposable
Sections\SectionContent.cs (1)
9public sealed class SectionContent : IComponent, IDisposable
Sections\SectionOutlet.cs (1)
11public sealed class SectionOutlet : IComponent, IDisposable
src\Components\Shared\src\ArrayBuilder.cs (1)
30internal class ArrayBuilder<T> : IDisposable
Microsoft.AspNetCore.Components.Authorization (1)
CascadingAuthenticationStateServiceCollectionExtensions.cs (1)
29private sealed class AuthenticationStateCascadingValueSource : CascadingValueSource<Task<AuthenticationState>>, IDisposable
Microsoft.AspNetCore.Components.Endpoints (3)
DependencyInjection\HotReloadService.cs (1)
11internal sealed class HotReloadService : IDisposable
FormMapping\FormDataReader.cs (1)
15internal struct FormDataReader : IDisposable
FormMapping\PrefixResolver.cs (1)
8internal readonly struct PrefixResolver : IDisposable
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\TestFileProvider\TestFileChangeToken.cs (1)
24private sealed class NullDisposable : IDisposable
HotReloadServiceTests.cs (1)
151private sealed class WrappedChangeTokenDisposable : IDisposable
Microsoft.AspNetCore.Components.Forms (3)
DataAnnotationsValidator.cs (1)
9public class DataAnnotationsValidator : ComponentBase, IDisposable
EditContextDataAnnotationsExtensions.cs (1)
62private sealed class DataAnnotationsEventSubscriptions : IDisposable
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Components.Forms.Tests (1)
ExpressionFormatterTest.cs (1)
8public sealed class ExpressionFormatterTest : IDisposable
Microsoft.AspNetCore.Components.QuickGrid (2)
Infrastructure\EventCallbackSubscriber.cs (1)
12internal sealed class EventCallbackSubscriber<T> : IDisposable
Pagination\Paginator.razor.cs (1)
11public partial class Paginator : IDisposable
Microsoft.AspNetCore.Components.Server (8)
BlazorPack\SequenceOfT.cs (1)
21internal sealed class Sequence<T> : IBufferWriter<T>, IDisposable
Circuits\CircuitMetrics.cs (1)
10internal sealed class CircuitMetrics : IDisposable
Circuits\RemoteJSDataStream.cs (1)
236internal readonly struct ValueLinkedCancellationTokenSource : IDisposable
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
15: ServerAuthenticationStateProvider, IDisposable
src\Components\Shared\src\ArrayBuilder.cs (1)
30internal class ArrayBuilder<T> : IDisposable
src\Components\Shared\src\RenderBatchWriter.cs (1)
34internal sealed class RenderBatchWriter : IDisposable
src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequencePool.cs (1)
117internal struct Rental : IDisposable
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\CircuitHostTest.cs (4)
732private class DispatcherComponent : ComponentBase, IDisposable 749private class ThrowOnDisposeComponent : IComponent, IDisposable 764private class RenderInParallelComponent : IComponent, IDisposable 861private class DynamicallyAddedComponent : IComponent, IDisposable
Microsoft.AspNetCore.Components.Tests (5)
OwningComponentBaseTest.cs (1)
38private class MyService : IDisposable
RendererTest.cs (2)
5183private class TestComponent : IComponent, IDisposable 5523private class DisposableComponent : AutoRenderComponent, IDisposable
RenderTreeDiffBuilderTest.cs (2)
11public class RenderTreeDiffBuilderTest : IDisposable 2521private class DisposableComponent : IComponent, IDisposable
Microsoft.AspNetCore.Components.Web (10)
Forms\InputBase.cs (1)
17public abstract class InputBase<TValue> : ComponentBase, IDisposable
Forms\InputFile.cs (1)
13public class InputFile : ComponentBase, IInputFileJsCallbacks, IDisposable
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
9internal sealed class InputFileJsCallbacksRelay : IDisposable
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
35private sealed class MappingContextEventSubscriptions : IDisposable
Forms\Mapping\FormMappingValidator.cs (1)
9internal class FormMappingValidator : ComponentBase, IDisposable
Forms\ValidationMessage.cs (1)
12public class ValidationMessage<TValue> : ComponentBase, IDisposable
Forms\ValidationSummary.cs (1)
15public class ValidationSummary : ComponentBase, IDisposable
HtmlRendering\HtmlRenderer.cs (1)
14public sealed class HtmlRenderer : IDisposable, IAsyncDisposable
Routing\NavLink.cs (1)
13public class NavLink : ComponentBase, IDisposable
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Components.WebAssembly (2)
HotReload\HotReloadAgent.cs (1)
17internal sealed class HotReloadAgent : IDisposable
Services\WebAssemblyConsoleLogger.cs (1)
159private sealed class NoOpDisposable : IDisposable
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializer.cs (1)
10internal sealed class AuthenticationStateSerializer : IHostEnvironmentAuthenticationStateProvider, IDisposable
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\ArrayBuilder.cs (1)
30internal class ArrayBuilder<T> : IDisposable
src\Components\Shared\src\RenderBatchWriter.cs (1)
34internal sealed class RenderBatchWriter : IDisposable
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.Test (1)
WebViewManagerTests.cs (1)
176private class ScopedService : IDisposable
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.ConcurrencyLimiter (2)
ConcurrencyLimiterEventSource.cs (1)
64internal struct QueueFrame : IDisposable
QueuePolicies\BasePolicy.cs (1)
12internal class BasePolicy : IQueuePolicy, IDisposable
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
WeakReferenceHelpersTests.cs (1)
74private sealed class MyDisposable : IDisposable
Microsoft.AspNetCore.DataProtection (4)
Cng\Internal\CngAuthenticatedEncryptorBase.cs (1)
12internal abstract unsafe class CngAuthenticatedEncryptorBase : IOptimizedAuthenticatedEncryptor, IDisposable
Managed\AesGcmAuthenticatedEncryptor.cs (1)
16internal sealed unsafe class AesGcmAuthenticatedEncryptor : IOptimizedAuthenticatedEncryptor, IDisposable
Managed\ManagedAuthenticatedEncryptor.cs (1)
20internal sealed unsafe class ManagedAuthenticatedEncryptor : IAuthenticatedEncryptor, IDisposable
Secret.cs (1)
16public sealed unsafe class Secret : IDisposable, ISecret
Microsoft.AspNetCore.DataProtection.Tests (1)
StringLoggerFactory.cs (1)
72private sealed class DummyDisposable : IDisposable
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
514public class CertFixture : IDisposable
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingFeature.cs (1)
86internal sealed class PoolHelper : IDisposable
Microsoft.AspNetCore.Hosting (2)
Internal\HostingMetrics.cs (1)
12internal sealed class HostingMetrics : IDisposable
Internal\WebHostLifetime.cs (1)
6internal sealed class WebHostLifetime : IDisposable
Microsoft.AspNetCore.Hosting.Tests (8)
Fakes\FakeService.cs (1)
6public class FakeService : IFakeEveryService, IDisposable
HostingApplicationDiagnosticsTests.cs (1)
1160private class Scope : IDisposable
StartupManagerTests.cs (1)
765public class DisposableService : IDisposable
WebHostBuilderTests.cs (1)
1662public class DisposableService : IDisposable
WebHostTests.AsyncDisposable.cs (1)
61private class AsyncDisposableServiceProvider : IServiceProvider, IDisposable, IAsyncDisposable
WebHostTests.cs (3)
1145private class TestHostedService : IHostedService, IDisposable 1180private class DelegateHostedService : IHostedService, IDisposable 1207public class StartInstance : IDisposable
Microsoft.AspNetCore.Http (1)
Features\RequestServicesFeature.cs (1)
11public class RequestServicesFeature : IServiceProvidersFeature, IDisposable, IAsyncDisposable
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsMetrics.cs (1)
21internal sealed class HttpConnectionsMetrics : IDisposable
Microsoft.AspNetCore.Http.Connections.Tests (1)
TestWebSocketConnectionFeature.cs (1)
16internal class TestWebSocketConnectionFeature : IHttpWebSocketFeature, IDisposable
Microsoft.AspNetCore.Http.Extensions (2)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
15internal struct FormDataReader : IDisposable
src\Components\Endpoints\src\FormMapping\PrefixResolver.cs (1)
8internal readonly struct PrefixResolver : IDisposable
Microsoft.AspNetCore.Http.Tests (3)
DefaultHttpContextTests.cs (2)
417private class DisposableThing : IDisposable 510private class AsyncDisposableServiceProvider : IServiceProvider, IDisposable, IServiceScopeFactory
Internal\DefaultHttpResponseTests.cs (1)
220public class DisposableClass : IDisposable, IAsyncDisposable
Microsoft.AspNetCore.Identity (2)
AspNetRoleManager.cs (1)
13public class AspNetRoleManager<TRole> : RoleManager<TRole>, IDisposable where TRole : class
AspNetUserManager.cs (1)
15public class AspNetUserManager<TUser> : UserManager<TUser>, IDisposable where TUser : class
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Utilities\ScratchDatabaseFixture.cs (1)
10public class ScratchDatabaseFixture : IDisposable
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryUserStoreTest.cs (1)
46public class Fixture : IDisposable
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
15public class IdentityUIScriptsTest : IDisposable
Microsoft.AspNetCore.InternalTesting (7)
AssemblyTestLog.cs (2)
23public class AssemblyTestLog : IAcceptFailureReports, IDisposable 341private sealed class Disposable : IDisposable
CultureReplacer.cs (1)
11public class CultureReplacer : IDisposable
LoggedTest\LoggedTestBase.cs (1)
18public abstract class LoggedTestBase : ITestMethodLifecycle, IDisposable
Logging\TestLogger.cs (1)
66private sealed class TestDisposable : IDisposable
Logging\XunitLoggerProvider.cs (1)
122private sealed class NullScope : IDisposable
Tracing\EventSourceTestBase.cs (1)
14public abstract class EventSourceTestBase : IDisposable
Microsoft.AspNetCore.InternalTesting.Tests (3)
AspNetTestAssemblyRunnerTest.cs (1)
173private class TextAssemblyFixtureWithDispose : IAcceptFailureReports, IDisposable
ConditionalFactTest.cs (1)
57public class ConditionalFactAsserter : IDisposable
ConditionalTheoryTest.cs (1)
118public class ConditionalTheoryAsserter : IDisposable
Microsoft.AspNetCore.Localization.Tests (1)
RequestLocalizationOptionsTest.cs (1)
9public class RequestLocalizationOptionsTest : IDisposable
Microsoft.AspNetCore.Mvc (1)
HotReloadService.cs (1)
16internal sealed class HotReloadService : IActionDescriptorChangeProvider, IDisposable
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelBindingContext.cs (1)
164public readonly struct NestedScope : IDisposable
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Validation\ValidationVisitor.cs (1)
487protected readonly struct StateManager : IDisposable
Routing\ActionEndpointDataSourceBase.cs (1)
15internal abstract class ActionEndpointDataSourceBase : EndpointDataSource, IDisposable
Routing\DynamicControllerEndpointSelector.cs (1)
10internal sealed class DynamicControllerEndpointSelector : IDisposable
src\Http\Routing\src\DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\DefaultApplicationModelProviderTest.cs (5)
1432: ViewFeaturesController, IDisposable 1448private class ViewFeaturesController : ControllerBase, IDisposable 1480private class Controller : IDisposable 1561private class IDisposablePocoController : IDisposable 1583private class BaseClass : IDisposable
ControllerBaseTest.cs (1)
3271private class DisposableObject : IDisposable
Controllers\ControllerActivatorProviderTest.cs (1)
140private class DisposableController : IDisposable
Controllers\DefaultControllerActivatorTest.cs (2)
190private class MyController : IDisposable 215private class MyDisposableAndAsyncDisposableController : IDisposable, IAsyncDisposable
Controllers\DefaultControllerFactoryTest.cs (1)
273private class MyController : IDisposable
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
ActivityReplacer.cs (1)
8public class ActivityReplacer : IDisposable
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureInheritanceTests.cs (1)
115private class DisposableService : IAsyncDisposable, IDisposable
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointSelector.cs (1)
10internal sealed class DynamicPageEndpointSelector : IDisposable
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Infrastructure\DefaultPageActivatorProviderTest.cs (2)
229private class DisposablePage : TestPage, IDisposable 250private class DisposableAndAsyncDisposablePage : TestPage, IDisposable, IAsyncDisposable
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
468private class DisposablePage : Page, IDisposable
Infrastructure\DefaultPageModelActivatorProviderTest.cs (2)
230private class DisposableModel : IDisposable 251private class DisposableAndAsyncDisposableModel : IDisposable, IAsyncDisposable
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
26public partial class WebApplicationFactory<TEntryPoint> : IDisposable, IAsyncDisposable where TEntryPoint : class
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Buffers\MemoryPoolViewBufferScope.cs (1)
11internal sealed class MemoryPoolViewBufferScope : IViewBufferScope, IDisposable
Buffers\PagedCharBuffer.cs (1)
8internal sealed class PagedCharBuffer : IDisposable
Controller.cs (1)
17public abstract class Controller : ControllerBase, IActionFilter, IAsyncActionFilter, IDisposable
Rendering\MvcForm.cs (1)
13public class MvcForm : IDisposable
src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ControllerTest.cs (1)
476private class DisposableObject : IDisposable
ViewComponents\DefaultViewComponentActivatorTests.cs (2)
113public class ActivablePropertiesViewComponent : IDisposable 150public class SyncAndAsyncDisposableViewComponent : IDisposable, IAsyncDisposable
ViewComponents\DefaultViewComponentFactoryTest.cs (2)
107public class ActivablePropertiesViewComponent : IDisposable 144public class SyncAndAsyncDisposableViewComponent : IDisposable, IAsyncDisposable
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileChangeToken.cs (1)
24private sealed class NullDisposable : IDisposable
Microsoft.AspNetCore.OpenApi.Tests (3)
Transformers\DocumentTransformerTests.cs (1)
335private class DisposableTransformer : IOpenApiDocumentTransformer, IDisposable
Transformers\OperationTransformerTests.cs (1)
669private class DisposableTransformer : IOpenApiOperationTransformer, IDisposable
Transformers\SchemaTransformerTests.cs (1)
967private class DisposableTransformer : IOpenApiSchemaTransformer, IDisposable
Microsoft.AspNetCore.OutputCaching (3)
OutputCacheEntry.cs (1)
12internal sealed class OutputCacheEntry : IDisposable
RecyclableArrayBufferWriter.cs (1)
12internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
RecyclableSequenceBuilder.cs (1)
11internal sealed class RecyclableSequenceBuilder : IDisposable
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
265internal sealed class NullPipeWriter : PipeWriter, IDisposable
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
22internal partial class RedisOutputCacheStore : IOutputCacheStore, IOutputCacheBufferStore, IDisposable
Microsoft.AspNetCore.RateLimiting (2)
LeaseContext.cs (1)
8internal struct LeaseContext : IDisposable
RateLimitingMetrics.cs (1)
11internal sealed class RateLimitingMetrics : IDisposable
Microsoft.AspNetCore.Routing (8)
CompositeEndpointDataSource.cs (1)
17public sealed class CompositeEndpointDataSource : EndpointDataSource, IDisposable
DataSourceDependentCache.cs (1)
13internal sealed class DataSourceDependentCache<T> : IDisposable where T : class
DefaultLinkGenerator.cs (1)
22internal sealed partial class DefaultLinkGenerator : LinkGenerator, IDisposable
DefaultLinkParser.cs (1)
13internal sealed partial class DefaultLinkParser : LinkParser, IDisposable
EndpointNameAddressScheme.cs (1)
10internal sealed class EndpointNameAddressScheme : IEndpointAddressScheme<string>, IDisposable
Matching\DataSourceDependentMatcher.cs (1)
75public sealed class Lifetime : IDisposable
RouteGroupBuilder.cs (1)
40private sealed class GroupEndpointDataSource : EndpointDataSource, IDisposable
RouteValuesAddressScheme.cs (1)
11internal sealed class RouteValuesAddressScheme : IEndpointAddressScheme<RouteValuesAddress>, IDisposable
Microsoft.AspNetCore.Routing.FunctionalTests (6)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
13public class EndpointRoutingBenchmarkTest : IDisposable
Benchmarks\RouterBenchmarkTest.cs (1)
14public class RouterBenchmarkTest : IDisposable
EndpointRoutingSampleTest.cs (1)
12public class EndpointRoutingSampleTest : IDisposable
RouteHandlerTest.cs (1)
117private class TestDisposeEndpointDataSource : EndpointDataSource, IDisposable
RouterSampleTest.cs (1)
12public class RouterSampleTest : IDisposable
RoutingTestFixture.cs (1)
11public class RoutingTestFixture<TStartup> : IDisposable
Microsoft.AspNetCore.Server.HttpSys (12)
AsyncAcceptContext.cs (1)
10internal sealed unsafe partial class AsyncAcceptContext : IValueTaskSource<RequestContext>, IDisposable
DelegationRule.cs (1)
12public class DelegationRule : IDisposable
HttpSysListener.cs (1)
20internal sealed partial class HttpSysListener : IDisposable
NativeInterop\ServerSession.cs (1)
9internal sealed class ServerSession : IDisposable
NativeInterop\UrlGroup.cs (1)
13internal sealed partial class UrlGroup : IDisposable
RequestProcessing\ClientCertLoader.cs (1)
16internal sealed unsafe partial class ClientCertLoader : IAsyncResult, IDisposable
RequestProcessing\RequestStreamAsyncResult.cs (1)
9internal sealed unsafe class RequestStreamAsyncResult : IAsyncResult, IDisposable
RequestProcessing\ResponseStreamAsyncResult.cs (1)
11internal sealed unsafe partial class ResponseStreamAsyncResult : IAsyncResult, IDisposable
RequestProcessing\TlsListener.cs (1)
11internal sealed partial class TlsListener : IDisposable
RequestProcessing\TlsListener.Log.cs (1)
8internal sealed partial class TlsListener : IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
25internal unsafe class NativeRequestContext : IDisposable
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Listener\ResponseHeaderTests.cs (1)
18public class ResponseHeaderTests : IDisposable
Microsoft.AspNetCore.Server.IIS (6)
Core\IISHttpContext.cs (1)
31internal abstract partial class IISHttpContext : NativeRequestContext, IThreadPoolWorkItem, IDisposable
Core\IO\AsyncIOEngine.cs (1)
9internal sealed partial class AsyncIOEngine : IAsyncIOEngine, IDisposable
Core\IO\WebSocketsAsyncIOEngine.Read.cs (1)
12internal sealed class WebSocketReadOperation : AsyncIOOperation, IDisposable
Core\IO\WebSocketsAsyncIOEngine.Write.cs (1)
11internal sealed class WebSocketWriteOperation : AsyncWriteOperationBase, IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
25internal unsafe class NativeRequestContext : IDisposable
Microsoft.AspNetCore.Server.IntegrationTesting (4)
CachingApplicationPublisher.cs (1)
8public class CachingApplicationPublisher : ApplicationPublisher, IDisposable
Deployers\ApplicationDeployer.cs (1)
13public abstract class ApplicationDeployer : IDisposable
PublishedApplication.cs (1)
8public class PublishedApplication : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
10public class IISDeploymentResult : DeploymentResult, IDisposable
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\CertificatePathWatcher.cs (1)
14internal sealed partial class CertificatePathWatcher : IDisposable
Internal\Http\Http1OutputProducer.cs (1)
16internal class Http1OutputProducer : IHttpOutputProducer, IDisposable
Internal\Http2\Http2OutputProducer.cs (1)
22internal sealed class Http2OutputProducer : IHttpOutputProducer, IHttpOutputAborter, IDisposable
Internal\Http2\Http2Stream.cs (1)
31internal abstract partial class Http2Stream : HttpProtocol, IThreadPoolWorkItem, IDisposable, IPooledStream
Internal\Infrastructure\Disposable.cs (1)
9internal sealed class Disposable : IDisposable
Internal\Infrastructure\Heartbeat.cs (1)
8internal sealed class Heartbeat : IDisposable
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
17internal sealed class QPackDecoder : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
BufferWriterTests.cs (1)
11public class BufferWriterTests : IDisposable
CertificatePathWatcherTests.cs (1)
506private sealed class DummyDisposable : IDisposable
Http1\Http1ConnectionTestsBase.cs (1)
18public class Http1ConnectionTestsBase : LoggedTest, IDisposable
Http1\Http1OutputProducerTests.cs (1)
19public class Http1OutputProducerTests : IDisposable
PipelineExtensionTests.cs (1)
13public class PipelineExtensionTests : IDisposable
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
40internal sealed class CertificateAuthority : IDisposable
src\Servers\Kestrel\shared\test\DisposableStack.cs (1)
9public class DisposableStack<T> : Stack<T>, IDisposable
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
12internal sealed class RevocationResponder : IDisposable
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
16public abstract class StreamBackedTestConnection : IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (1)
18public class QPackDecoderTests : IDisposable
StartLineTests.cs (1)
18public class StartLineTests : IDisposable
TestHelpers\TestInput.cs (1)
21class TestInput : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
1095internal class TestStreamContext : ConnectionContext, IStreamDirectionFeature, IStreamIdFeature, IProtocolErrorCodeFeature, IPersistentStateFeature, IStreamAbortFeature, IDisposable, IStreamClosedFeature
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (1)
16internal partial class QuicStreamContext : TransportConnection, IPooledStream, IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Internal\SocketSenderPool.cs (1)
9internal sealed class SocketSenderPool : IDisposable
SocketConnectionContextFactory.cs (1)
16public sealed class SocketConnectionContextFactory : IDisposable
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
12internal unsafe struct UnmanagedBufferAllocator : IDisposable
Microsoft.AspNetCore.Shared.Tests (3)
runtime\Http3\QPackDecoderTest.cs (1)
18public class QPackDecoderTests : IDisposable
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
25internal unsafe class NativeRequestContext : IDisposable
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
17internal sealed class QPackDecoder : IDisposable
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (1)
2024private sealed class Subscription : IDisposable
Internal\InvocationRequest.cs (1)
15internal abstract partial class InvocationRequest : IDisposable
src\SignalR\common\Shared\MessageBuffer.cs (1)
19internal sealed class MessageBuffer : IDisposable
src\SignalR\common\Shared\TimerAwaitable.cs (1)
13internal sealed class TimerAwaitable : IDisposable, ICriticalNotifyCompletion
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubClientProxyGeneratorTests.cs (1)
62private class Disposable : IDisposable
Microsoft.AspNetCore.SignalR.Core (2)
Hub.cs (1)
11public abstract class Hub : IDisposable
src\SignalR\common\Shared\MessageBuffer.cs (1)
19internal sealed class MessageBuffer : IDisposable
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
23class TestClient : ITransferFormatFeature, IConnectionHeartbeatFeature, IDisposable
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (1)
9internal sealed class AckHandler : IDisposable
RedisHubLifetimeManager.cs (1)
24public class RedisHubLifetimeManager<THub> : HubLifetimeManager<THub>, IDisposable where THub : Hub
Microsoft.AspNetCore.SignalR.Tests (3)
CancellationDisposable.cs (1)
9internal class CancellationDisposable : IDisposable
NativeAotTests.cs (1)
428private sealed class DummyDisposable : IDisposable
TestFilters.cs (1)
186public class DisposableFilter : IHubFilter, IDisposable
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
ServerLogScope.cs (1)
9public class ServerLogScope : IDisposable
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
12public class VerifyNoErrorsScope : IDisposable
TestClient.cs (1)
23class TestClient : ITransferFormatFeature, IConnectionHeartbeatFeature, IDisposable
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
13internal sealed class SpaProxyLaunchManager : IDisposable
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (1)
17internal sealed class NodeScriptRunner : IDisposable
Util\EventedStreamStringReader.cs (1)
12internal sealed class EventedStreamStringReader : IDisposable
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (1)
721class NoopDispoasble : IDisposable
HttpContextBuilderTests.cs (1)
357class NoopDispoasble : IDisposable
TestClientTests.cs (2)
155private class TestDisposable : IDisposable 746class NoopDispoasble : IDisposable
Microsoft.AspNetCore.Testing.Tests (1)
FakeCertificateHttpClientHandlerTests.cs (1)
14public class FakeCertificateHttpClientHandlerTests : IDisposable
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2884public class RandomConfigurationProvider : ConfigurationProvider, IDisposable 2969private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object>>, IDisposable
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
13public class AutobahnTester : IDisposable
Microsoft.AspNetCore.WebUtilities (2)
FormReader.cs (1)
14public class FormReader : IDisposable
PagedByteBuffer.cs (1)
9internal sealed class PagedByteBuffer : IDisposable
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingWriteStreamTests.cs (1)
10public class FileBufferingWriteStreamTests : IDisposable
Microsoft.Build (25)
BackEnd\BuildManager\BuildManager.cs (1)
51public class BuildManager : INodePacketHandler, IBuildComponentHost, IDisposable
BackEnd\Client\MSBuildClientPacketPump.cs (1)
19internal sealed class MSBuildClientPacketPump : INodePacketHandler, INodePacketFactory, IDisposable
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (1)
15internal class RegisteredTaskObjectCache : RegisteredTaskObjectCacheBase, IBuildComponent, IRegisteredTaskObjectCache, IDisposable
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
25internal class NodeProviderInProc : INodeProvider, INodePacketFactory, IDisposable
BackEnd\Components\FileAccesses\FileAccessManager.cs (1)
172internal readonly struct HandlerRegistration : IDisposable
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (2)
18internal sealed class AssemblyLoadsTracker : MarshalByRefObject, IDisposable 176private class EmptyDisposable : IDisposable
BackEnd\Components\RequestBuilder\FullTracking.cs (1)
19internal class FullTracking : IDisposable
BackEnd\Node\ServerNamedMutex.cs (1)
9internal sealed class ServerNamedMutex : IDisposable
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
59internal class TaskExecutionHost : IDisposable
BuildCheck\API\Check.cs (1)
14public abstract class Check : IDisposable
Definition\ProjectCollection.cs (1)
83public class ProjectCollection : IToolsetProvider, IBuildComponent, IDisposable
Evaluation\Expander.cs (1)
147private struct SpanBasedConcatenator : IDisposable
Evaluation\Profiler\EvaluationProfiler.cs (1)
97private sealed class EvaluationFrame : IDisposable
Evaluation\ProjectRootElementCache.cs (1)
95private struct ReentrancyGuard : IDisposable
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
26public class BuildEventArgsReader : IBuildEventArgsReaderNotifications, IDisposable 1819internal class StringStorage : IDisposable
Logging\BinaryLogger\Postprocessing\ArchiveFile.cs (1)
14public abstract class ArchiveData : IDisposable
Logging\BinaryLogger\Postprocessing\CleanupScope.cs (1)
8internal readonly struct CleanupScope : IDisposable
PrintLineDebugger.cs (1)
23internal sealed class PrintLineDebugger : IDisposable
TempFileUtilities.cs (1)
220public sealed class TempWorkingDirectory : IDisposable
Utilities\ReaderWriterLockSlimExtensions.cs (2)
25internal readonly struct DisposableReadLock : IDisposable 34internal readonly struct DisposableWriteLock : IDisposable
Utilities\RegistryKeyWrapper.cs (1)
20internal class RegistryKeyWrapper : IDisposable
Xml\XmlReaderExtension.cs (1)
17internal class XmlReaderExtension : IDisposable
Microsoft.Build.BuildCheck.UnitTests (4)
EndToEndTests.cs (1)
21public class EndToEndTests : IDisposable
TaskInvocationAnalysisDataTests.cs (1)
21public class TaskInvocationCheckDataTests : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
Microsoft.Build.CommandLine.UnitTests (4)
MSBuildServer_Tests.cs (1)
59public class MSBuildServer_Tests : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
XMake_Tests.cs (1)
31public class XMakeAppTests : IDisposable
Microsoft.Build.Engine.OM.UnitTests (13)
Construction\ProjectFormatting_Tests.cs (1)
20public class ProjectFormatting_Tests : IDisposable
Definition\Project_Tests.cs (1)
36public class Project_Tests : IDisposable
Definition\ProjectCollection_Tests.cs (1)
26public class ProjectCollection_Tests : IDisposable
Definition\ProjectItem_Tests.cs (1)
27public class ProjectItem_Tests : IDisposable
Definition\ProtectImports_Tests.cs (1)
19public class ProtectImports_Tests : IDisposable
Instance\ProjectItemInstance_Tests.cs (1)
22public class ProjectItemInstance_Tests : IDisposable
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (1)
13public class TestCollectionGroup : IDisposable
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (1)
11internal sealed class LinkedObjectsMap<KeyType> : IDisposable
PrintLineDebugger.cs (1)
23internal sealed class PrintLineDebugger : IDisposable
TempFileUtilities.cs (1)
220public sealed class TempWorkingDirectory : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
TransientIO.cs (1)
13public class TransientIO : IDisposable
Microsoft.Build.Engine.UnitTests (43)
BackEnd\BuildManager_Logging_Tests.cs (1)
24public class BuildManager_Logging_Tests : IDisposable
BackEnd\BuildManager_Tests.cs (1)
37public class BuildManager_Tests : IDisposable
BackEnd\BuildRequestConfiguration_Tests.cs (1)
25public class BuildRequestConfiguration_Tests : IDisposable
BackEnd\BuildRequestEngine_Tests.cs (1)
23public class BuildRequestEngine_Tests : IDisposable
BackEnd\MockRunningObjectTable.cs (1)
38private sealed class MockRegisterHandle : IDisposable
BackEnd\MSBuild_Tests.cs (1)
20public sealed class MSBuildTask_Tests : IDisposable
BackEnd\RequestBuilder_Tests.cs (1)
25public class RequestBuilder_Tests : IDisposable
BackEnd\Scheduler_Tests.cs (1)
28public class Scheduler_Tests : IDisposable
BackEnd\SdkResultOutOfProc_Tests.cs (1)
26public class SdkResultOutOfProc_Tests : IDisposable
BackEnd\TargetBuilder_Tests.cs (1)
33public class TargetBuilder_Tests : IRequestBuilderCallback, IDisposable
BackEnd\TargetEntry_Tests.cs (1)
30public class TargetEntry_Tests : ITargetBuilderCallback, IDisposable
BackEnd\TargetUpToDateChecker_Tests.cs (1)
24public class TargetUpToDateChecker_Tests : IDisposable
BackEnd\TaskExecutionHost_Tests.cs (1)
33public class TaskExecutionHost_Tests : ITestTaskHost, IBuildEngine2, IDisposable
BinaryLogger_Tests.cs (1)
27public class BinaryLoggerTests : IDisposable
BuildEnvironmentHelper_Tests.cs (1)
497private class EmptyStandaloneEnviroment : IDisposable
Construction\SolutionFilter_Tests.cs (1)
27public class SolutionFilter_Tests : IDisposable
Construction\SolutionProjectGenerator_Tests.cs (1)
33public class SolutionProjectGenerator_Tests : IDisposable
Definition\ProjectEvaluationContext_Tests.cs (1)
28public class ProjectEvaluationContext_Tests : IDisposable
Definition\ToolsetConfigurationReader_Tests.cs (1)
20public class ToolsetConfigurationReaderTests : IDisposable
EscapingInProjects_Tests.cs (1)
65public class SimpleScenarios : IDisposable
Evaluation\EvaluationLogging_Tests.cs (1)
21public class EvaluationLogging_Tests : IDisposable
Evaluation\Evaluator_Tests.cs (1)
33public class Evaluator_Tests : IDisposable
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
21public class ImportFromMSBuildExtensionsPathTests : IDisposable
Evaluation\ItemEvaluation_Tests.cs (1)
23public class ItemEvaluation_Tests : IDisposable
Evaluation\Preprocessor_Tests.cs (1)
23public class Preprocessor_Tests : IDisposable
Evaluation\ProjectRootElementCache_Tests.cs (1)
21public class ProjectRootElementCache_Tests : IDisposable
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
31public class ProjectSdkImplicitImport_Tests : IDisposable
Evaluation\SdkResultEvaluation_Tests.cs (1)
23public class SdkResultEvaluation_Tests : IDisposable
Evaluation\SimpleProjectRootElementCache_Tests.cs (1)
15public class SimpleProjectRootElementCache_Tests : IDisposable
EvaluationProfiler_Tests.cs (1)
25public class EvaluationProfiler_Tests : IDisposable
ExpressionTreeExpression_Tests.cs (1)
21public class ExpressionTest : IDisposable
FileMatcher_Tests.cs (1)
22public class FileMatcherTest : IDisposable
Graph\GraphLoadedFromSolution_tests.cs (1)
24public class GraphLoadedFromSolutionTests : IDisposable
Graph\IsolateProjects_Tests.cs (1)
22public class IsolateProjectsTests : IDisposable
Graph\ProjectGraph_Tests.cs (1)
28public class ProjectGraphTests : IDisposable
Graph\ResultCacheBasedBuilds_Tests.cs (1)
27public class ResultCacheBasedBuilds_Tests : IDisposable
NodeStatus_SizeChange_Tests.cs (1)
18public class NodeStatus_SizeChange_Tests : IDisposable
ProjectCache\ProjectCacheTests.cs (1)
30public class ProjectCacheTests : IDisposable
Telemetry\OpenTelemetryManager_Tests.cs (1)
18public class OpenTelemetryManagerTests : IDisposable
TerminalLogger_Tests.cs (1)
24public class TerminalLogger_Tests : IEventSource, IDisposable
TerminalLoggerConfiguration_Tests.cs (1)
21public class TerminalLoggerConfiguration_Tests : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
Microsoft.Build.Framework (1)
ReuseableStringBuilder.cs (1)
22internal sealed class ReuseableStringBuilder : IDisposable
Microsoft.Build.Framework.UnitTests (3)
CustomEventArgSerialization_Tests.cs (1)
17public class CustomEventArgSerialization_Tests : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
Microsoft.Build.Tasks.CodeAnalysis (2)
RCWForCurrentContext.cs (1)
19internal class RCWForCurrentContext<T> : IDisposable where T : class
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
97internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
CopyRefAssemblyTests.cs (1)
18public sealed class CopyRefAssemblyTests : IDisposable
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\DisposableBase.cs (1)
13internal abstract class DisposableBase : IDisposable
BuildCacheDisposeWrapper.cs (1)
13internal class BuildCacheDisposeWrapper : IDisposable
ManifestUtil\MetadataReader.cs (1)
22internal class MetadataReader : IDisposable
PrintLineDebugger.cs (1)
23internal sealed class PrintLineDebugger : IDisposable
TempFileUtilities.cs (1)
220public sealed class TempWorkingDirectory : IDisposable
Microsoft.Build.Tasks.UnitTests (21)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
18public class ResolveAssemblyReferenceCacheSerialization : IDisposable
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
26public class ResolveAssemblyReferenceTestFixture : IDisposable
CallTarget_Tests.cs (1)
17public sealed class CallTarget_Tests : IDisposable
Copy_Tests.cs (1)
29public class Copy_Tests : IDisposable
CreateItem_Tests.cs (1)
20public sealed class CreateItem_Tests : IDisposable
CreateProperty_Tests.cs (1)
12public sealed class CreateProperty_Tests : IDisposable
DirectoryBuildProjectImportTestBase.cs (1)
16public abstract class DirectoryBuildProjectImportTestBase : IDisposable
GenerateBindingRedirects_Tests.cs (1)
20public class GenerateBindingRedirectsTests : IDisposable
GetInstalledSDKLocations_Tests.cs (1)
18public class FakeSDKStructure : IDisposable
GetSDKReference_Tests.cs (2)
20public class FakeSdkStructure : IDisposable 181public class GetSDKReferenceFilesTestFixture : IDisposable, IClassFixture<FakeSdkStructure>
HintPathResolver_Tests.cs (1)
16public class HintPathResolver_Tests : IDisposable
MSBuild_Tests.cs (1)
22public sealed class MSBuildTask_Tests : IDisposable
NuGetPropsImportTests.cs (1)
16public sealed class NuGetPropsImportTests : IDisposable
OutputPathTests.cs (1)
20public sealed class OutputPathTests : IDisposable
ProjectExtensionsImportTestBase.cs (1)
16public abstract class ProjectExtensionsImportTestBase : IDisposable
ResolveCodeAnalysisRuleSet_Tests.cs (2)
16private sealed class TemporaryFile : IDisposable 33private sealed class TemporaryDirectory : IDisposable
ResourceHandling\GenerateResource_Tests.cs (1)
23public sealed class RequiredTransformations : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
Microsoft.Build.UnitTests.Shared (5)
DummyMappedDrive.cs (1)
14public class DummyMappedDrive : IDisposable
ObjectModelHelpers.cs (1)
2060public sealed class BuildManagerSession : IDisposable
ProjectFromString.cs (2)
15public class ProjectFromString : IDisposable 48public class ProjectRootElementFromString : IDisposable
TestEnvironment.cs (1)
26public partial class TestEnvironment : IDisposable
Microsoft.Build.Utilities.Core (2)
PrintLineDebugger.cs (1)
23internal sealed class PrintLineDebugger : IDisposable
TempFileUtilities.cs (1)
220public sealed class TempWorkingDirectory : IDisposable
Microsoft.Build.Utilities.UnitTests (5)
PlatformManifest_Tests.cs (1)
308private sealed class TemporaryPlatformManifest : IDisposable
TestAssemblyInfo.cs (2)
30public class MSBuildTestAssemblyFixture : IDisposable 153public class MSBuildTestEnvironmentFixture : IDisposable
ToolLocationHelper_Tests.cs (1)
2917public class GetPlatformExtensionSDKLocationsTestFixture : IDisposable
ToolTask_Tests.cs (1)
29private class MyTool : ToolTask, IDisposable
Microsoft.Cci.Extensions (6)
Experimental\APIEmitter.cs (1)
187internal class CodeBlock : IDisposable
src\Common\Internal\DisposeAction.cs (1)
7internal class DisposeAction : IDisposable
SRMetadataPEReaderCache.cs (1)
15public class SRMetadataPEReaderCache : IDisposable
Writers\CSharp\CSDeclarationWriter.cs (1)
15public partial class CSDeclarationWriter : ICciDeclarationWriter, IDisposable
Writers\CSharp\CSharpWriter.cs (1)
16public class CSharpWriter : SimpleTypeMemberTraverser, ICciWriter, IDisposable
Writers\Syntax\ISyntaxWriter.cs (1)
108private class Block : IDisposable
Microsoft.CodeAnalysis (23)
CommandLine\NoThrowStreamDisposer.cs (1)
17internal class NoThrowStreamDisposer : IDisposable
CommandLine\SarifErrorLogger.cs (1)
22internal abstract class SarifErrorLogger : ErrorLogger, IDisposable
CommandLine\SarifV1ErrorLogger.cs (1)
28internal sealed class SarifV1ErrorLogger : SarifErrorLogger, IDisposable
CommandLine\SarifV2ErrorLogger.cs (1)
24internal sealed class SarifV2ErrorLogger : SarifErrorLogger, IDisposable
DiagnosticAnalyzer\AnalyzerDriver.CompilationData.cs (1)
9internal abstract partial class AnalyzerDriver : IDisposable
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
29internal abstract partial class AnalyzerDriver : IDisposable
DiaSymReader\Writer\SymUnmanagedWriter.cs (1)
17internal abstract class SymUnmanagedWriter : IDisposable
InternalUtilities\JsonWriter.cs (1)
25internal sealed class JsonWriter : IDisposable
InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
InternalUtilities\SemaphoreSlimExtensions.cs (1)
28internal struct SemaphoreDisposer : IDisposable
MetadataReader\PEModule.cs (1)
32internal sealed class PEModule : IDisposable
MetadataReference\Metadata.cs (1)
28public abstract class Metadata : IDisposable
NativePdbWriter\PdbWriter.cs (1)
25internal sealed class PdbWriter : IDisposable
PEWriter\PooledBlobBuilder.cs (1)
15internal sealed class PooledBlobBuilder : BlobBuilder, IDisposable
SourceGeneration\GeneratorTimerExtensions.cs (1)
45internal readonly struct RunTimer : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
Syntax\SyntaxNode.Iterators.cs (4)
45private struct ChildSyntaxListEnumeratorStack : IDisposable 131private struct TriviaListEnumeratorStack : IDisposable 187private struct TwoEnumeratorListStack : IDisposable 278private struct ThreeEnumeratorListStack : IDisposable
Microsoft.CodeAnalysis.Analyzers (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\TrackedEntitiesBuilder.cs (1)
16internal sealed class TrackedEntitiesBuilder : IDisposable
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractAnalysisData.cs (1)
9public abstract class AbstractAnalysisData : IDisposable
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
18internal sealed class DataFlowAnalysisResultBuilder<TAnalysisData> : IDisposable
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PerEntityPredicatedAnalysisData.cs (1)
18protected sealed class PerEntityPredicatedAnalysisData : IDisposable
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.CodeStyle (24)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
22TAnalyzer> : IDisposable
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
31TAnalyzer>, IDisposable
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
28internal struct SemaphoreDisposer : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
src\Dependencies\Threading\CancellationSeries.cs (1)
24internal sealed class CancellationSeries : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
20internal sealed partial class ObjectWriter : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
56internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
583private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 635private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
Microsoft.CodeAnalysis.Collections.Package (2)
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
Microsoft.CodeAnalysis.CSharp (6)
Compiler\MethodCompiler.cs (1)
2406private struct ChangeSuppression : IDisposable
Parser\AbstractLexer.cs (1)
14internal class AbstractLexer : IDisposable
Parser\LanguageParser.cs (1)
4169private readonly ref struct FieldKeywordContext : IDisposable
Parser\SlidingTextWindow.cs (1)
25internal sealed class SlidingTextWindow : IDisposable
Parser\SyntaxParser.cs (1)
19internal abstract partial class SyntaxParser : IDisposable
Syntax\SyntaxTokenParser.cs (1)
25public sealed class SyntaxTokenParser : IDisposable
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
123private sealed class RemoveDiscardHelper : IDisposable
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.cs (1)
24internal sealed class EncapsulateFieldTestState : IDisposable
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
17internal sealed class TypeSyntaxSimplifierWalker : CSharpSyntaxWalker, IDisposable
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
123private sealed class RemoveDiscardHelper : IDisposable
Microsoft.CodeAnalysis.EditorFeatures (21)
Adornments\GraphicsResult.cs (1)
11internal sealed class GraphicsResult : IDisposable
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
28public sealed class Tagger : IAccurateTagger<IClassificationTag>, IDisposable
Classification\Syntactic\SyntacticClassificationTaggerProvider.Tagger.cs (1)
15private sealed class Tagger : EfficientTagger<IClassificationTag>, IDisposable
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
656private readonly struct SelectionTracking : IDisposable
InlineRename\Taggers\AbstractRenameTagger.cs (1)
17internal abstract class AbstractRenameTagger<T> : ITagger<T>, IDisposable where T : ITag
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
31internal class RenameFlyoutViewModel : INotifyPropertyChanged, IDisposable
InlineRename\UI\InlineRenameAdornment.cs (1)
14internal class InlineRenameAdornment : UserControl, IDisposable
InlineRename\UI\InlineRenameAdornmentManager.cs (1)
22internal sealed class InlineRenameAdornmentManager : IDisposable
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
28internal sealed partial class SmartRenameViewModel : INotifyPropertyChanged, IDisposable
Interactive\InteractiveSession.cs (1)
32internal sealed class InteractiveSession : IDisposable
Lightup\ISmartRenameSessionWrapper.cs (1)
18internal readonly struct ISmartRenameSessionWrapper : INotifyPropertyChanged, IDisposable
NavigationBar\NavigationBarController.cs (1)
36internal sealed partial class NavigationBarController : IDisposable
QuickInfo\DisposableToolTip.cs (1)
14internal sealed class DisposableToolTip : IDisposable
RenameTracking\RenameTrackingTaggerProvider.Tagger.cs (1)
15private sealed class Tagger : ITagger<RenameTrackingTag>, ITagger<IErrorTag>, IDisposable
Shared\Utilities\CaretPreservingEditTransaction.cs (1)
11internal sealed class CaretPreservingEditTransaction : IDisposable
Shared\Utilities\ThreadingContext.cs (1)
26internal sealed class ThreadingContext : IThreadingContext, IDisposable
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
17internal sealed class CaretPositionRestorer : IDisposable
Suggestions\SuggestedActionsSource.State.cs (1)
16private sealed class State : IDisposable
Tagging\AbstractAsynchronousTaggerProvider.Tagger.cs (1)
19private sealed partial class Tagger : EfficientTagger<TTag>, IDisposable
Tagging\EfficientTagger.cs (1)
20internal abstract class EfficientTagger<TTag> : ITagger<TTag>, IDisposable where TTag : ITag
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
133protected sealed class VisibleTrackerData : IDisposable
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
AbstractCommandHandlerTestState.cs (1)
26internal abstract class AbstractCommandHandlerTestState : IDisposable
Async\AsynchronousOperationBlocker.cs (1)
13public sealed class AsynchronousOperationBlocker : IDisposable
ExtractInterface\ExtractInterfaceTestState.cs (1)
21internal sealed class ExtractInterfaceTestState : IDisposable
TextEditorFactoryExtensions.cs (1)
42public class DisposableTextView : IDisposable
Threading\StaTaskScheduler.cs (1)
15public sealed class StaTaskScheduler : IDisposable
Workspaces\TestWorkspaceFixture.cs (1)
16public abstract class TestWorkspaceFixture : IDisposable
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeGeneration\CodeGenerationTests.cs (1)
856internal sealed class TestContext : IDisposable
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
31internal sealed class TestContext : IDisposable
RenameTracking\RenameTrackingTestState.cs (1)
37internal sealed class RenameTrackingTestState : IDisposable
Utilities\AsynchronousOperationListenerTests.cs (1)
24private sealed class SleepHelper : IDisposable
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Module.cs (1)
12internal sealed class Module : IDisposable
Process.cs (1)
12internal sealed class Process : IDisposable
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeWalker.cs (1)
27internal struct TypeEnumerator : IDisposable
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmMetadataImportHolder.cs (1)
17public readonly struct DkmMetadataImportHolder : IDisposable
ReflectionUtilities.cs (1)
61internal sealed class AssemblyLoadContext : IDisposable
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeWalker.cs (1)
27internal struct TypeEnumerator : IDisposable
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Remote\RazorRemoteServiceConnectionWrapper.cs (1)
12internal readonly struct RazorRemoteServiceConnectionWrapper<TService> : IDisposable
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorAnalyzerAssemblyResolverTests.cs (1)
22public sealed class RazorAnalyzerAssemblyResolverTests : IDisposable
Microsoft.CodeAnalysis.Features (10)
Debugging\DebugInformationReaderProvider.cs (1)
26internal abstract class DebugInformationReaderProvider : IDisposable
EditAndContinue\DebuggingSession.cs (1)
31internal sealed class DebuggingSession : IDisposable
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (1)
193private sealed class LocalConnection : IDisposable
EditAndContinue\RudeEditDiagnosticsBuilder.cs (1)
12internal readonly struct RudeEditDiagnosticsBuilder : IDisposable
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
79private readonly struct UnitTestingProgressStatusRAII : IDisposable
MetadataAsSource\TelemetryMessage.cs (1)
12internal sealed class TelemetryMessage : IDisposable
PdbSourceDocument\DocumentDebugInfoReader.cs (1)
19internal sealed class DocumentDebugInfoReader : IDisposable
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
103private struct TextElementBuilder : IDisposable
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
22TAnalyzer> : IDisposable
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
31TAnalyzer>, IDisposable
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
34public abstract class EditAndContinueWorkspaceTestBase : TestBase, IDisposable
Microsoft.CodeAnalysis.InteractiveHost (6)
Interactive\Core\InteractiveHost.cs (1)
25internal sealed partial class InteractiveHost : IDisposable
Interactive\Core\InteractiveHost.Service.cs (2)
29internal sealed class Service : IDisposable 46private sealed class ServiceState : IDisposable
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
28internal struct SemaphoreDisposer : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\Threading\CancellationSeries.cs (1)
24internal sealed class CancellationSeries : IDisposable
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
201private sealed class LspFileWatchRegistration : IDisposable
HostWorkspace\LoadedProject.cs (1)
21internal sealed class LoadedProject : IDisposable
HostWorkspace\ProjectInitializationHandler.cs (1)
20internal sealed class ProjectInitializationHandler : IDisposable
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\AbstractRefreshQueue.cs (1)
22IDisposable
Handler\BufferedProgress.cs (1)
18internal readonly struct BufferedProgress<T> : IProgress<T>, IDisposable
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
18: AbstractPullDiagnosticHandler<TDiagnosticsParams, TReport, TReturn>, IDisposable
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
20IDisposable
Handler\Telemetry\RequestTelemetryLogger.cs (1)
15internal class RequestTelemetryLogger : IDisposable, ILspService
Workspaces\LspWorkspaceRegistrationService.cs (1)
12internal abstract class LspWorkspaceRegistrationService : IDisposable
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
LanguageServerTargetTests.cs (2)
158internal sealed class StatefulLspService : ILspService, IDisposable 168internal sealed class StatelessLspService : ILspService, IDisposable
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
src\Workspaces\CoreTestUtilities\Logging\TestOutputLoggerProvider.cs (1)
38private sealed class NoOpDisposable : IDisposable
Utilities\AbstractLanguageServerHostTests.cs (1)
17public abstract class AbstractLanguageServerHostTests : IDisposable
Microsoft.CodeAnalysis.PooledObjects.Package (1)
PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RoundTripUtil.cs (1)
63private record EmitInfo(ImmutableArray<byte> PEBytes, PEReader PEReader, ImmutableArray<byte> PdbBytes, MetadataReader PdbReader) : IDisposable
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\BrokeredServiceBase.cs (1)
23internal abstract partial class BrokeredServiceBase : IDisposable
src\VisualStudio\Core\Def\Telemetry\AbstractWorkspaceTelemetryService.cs (1)
16internal abstract class AbstractWorkspaceTelemetryService : IWorkspaceTelemetryService, IDisposable
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
16internal sealed class TimedTelemetryLogBlock : IDisposable
Microsoft.CodeAnalysis.Remote.Workspaces (3)
BrokeredServiceConnection.cs (1)
23private readonly struct Rental : IDisposable
ExternalAccess\Pythia\Api\PythiaRemoteServiceConnectionWrapper.cs (1)
12internal readonly struct PythiaRemoteServiceConnectionWrapper<TService> : IDisposable
ExternalAccess\UnitTesting\Api\UnitTestingRemoteServiceConnectionWrapper.cs (1)
12internal readonly struct UnitTestingRemoteServiceConnectionWrapper<TService> : IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
26public sealed partial class InteractiveAssemblyLoader : IDisposable
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
21public sealed class MetadataShadowCopyProvider : IDisposable
Microsoft.CodeAnalysis.Test.Utilities (14)
AssemblyLoadTestFixture.cs (1)
18public sealed class AssemblyLoadTestFixture : MarshalByRefObject, IDisposable
Assert\ArtifactUploadUtil.cs (1)
24public sealed class ArtifactUploadUtil : IDisposable
CultureContext.cs (1)
13public class CultureContext : IDisposable
FX\EnsureEnglishUICulture.cs (1)
13public class EnsureEnglishUICulture : IDisposable
FX\EnsureInvariantCulture.cs (1)
13public class EnsureInvariantCulture : IDisposable
FX\EventWaiter.cs (1)
15public sealed class EventWaiter : IDisposable
FX\PinnedBlob.cs (1)
13internal class PinnedBlob : IDisposable
FX\PinnedMetadata.cs (1)
13internal sealed class PinnedMetadata : PinnedBlob, IDisposable
PDB\TestMetadataReferenceInfo.cs (1)
19internal class TestMetadataReferenceInfo : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
TempFiles\DisposableDirectory.cs (1)
12public sealed class DisposableDirectory : TempDirectory, IDisposable
TempFiles\DisposableFile.cs (1)
15public sealed class DisposableFile : TempFile, IDisposable
TempFiles\TempRoot.cs (1)
14public sealed class TempRoot : IDisposable
TestBase.cs (1)
26public abstract class TestBase : IDisposable
Microsoft.CodeAnalysis.Threading.Package (3)
CancellationSeries.cs (1)
24internal sealed class CancellationSeries : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
Microsoft.CodeAnalysis.UnitTests (3)
CompilerResolverTests.cs (1)
16public sealed class CompilerResolverTests : IDisposable
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
24internal sealed class FusionAssemblyPortabilityPolicy : IDisposable
ShadowCopyAnalyzerPathResolverTests.cs (1)
17public sealed class ShadowCopyAnalyzerPathResolverTests : IDisposable
Microsoft.CodeAnalysis.Workspaces (36)
ExternalAccess\UnitTesting\Api\UnitTestingWorkspaceExtensions.cs (1)
17private sealed class EventHandlerWrapper : IDisposable
FindSymbols\SearchQuery.cs (1)
10internal struct SearchQuery : IDisposable
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
21internal sealed partial class SymbolTreeInfoCacheService : ISymbolTreeInfoCacheService, IDisposable
Log\RoslynEventSource.LogBlock.cs (1)
39internal struct LogBlock : IDisposable
PatternMatching\PatternMatcher.cs (1)
24internal abstract partial class PatternMatcher : IDisposable
PatternMatching\PatternMatcher.TextChunk.cs (1)
22private struct TextChunk : IDisposable
Remote\IRemoteKeepAliveService.cs (1)
24internal sealed class RemoteKeepAliveSession : IDisposable
Remote\RemoteHostClient.cs (1)
18internal abstract class RemoteHostClient : IDisposable
Remote\RemoteServiceConnection.cs (1)
15internal abstract class RemoteServiceConnection<TService> : IDisposable
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
18TAccessorDeclarationSyntax> : ISemanticModelReuseLanguageService, IDisposable
Shared\Extensions\SafeHandleLease.cs (1)
15internal readonly struct SafeHandleLease : IDisposable
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
28internal struct SemaphoreDisposer : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
src\Dependencies\Threading\CancellationSeries.cs (1)
24internal sealed class CancellationSeries : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\DataFlowAnalyzer.cs (1)
14internal abstract class DataFlowAnalyzer<TBlockAnalysisData> : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
24private abstract class AnalysisData : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
19private sealed class BasicBlockAnalysisData : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (1)
15internal sealed class NodeOperations : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\EmptyLogBlock.cs (1)
12internal sealed class EmptyLogBlock : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
19internal sealed partial class ObjectReader : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
16private readonly struct ReaderReferenceMap : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
20internal sealed partial class ObjectWriter : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
22private abstract class Reader<TStringResult> : IDisposable where TStringResult : class
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
53private sealed class SymbolKeyWriter : SymbolVisitor, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
56internal sealed class ReferenceCountedDisposable<T> : IReferenceCountedDisposable<T>, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
10internal struct WordSimilarityChecker : IDisposable
Workspace\Host\HostLanguageServices.cs (1)
22public abstract class HostLanguageServices : IDisposable
Workspace\Host\HostWorkspaceServices.cs (1)
45public abstract class HostWorkspaceServices : IDisposable
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
542public sealed class BatchScope : IDisposable, IAsyncDisposable
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
15internal class ProjectSystemProjectOptionsProcessor : IDisposable
Workspace\Workspace.cs (1)
37public abstract partial class Workspace : IDisposable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
src\Compilers\Core\Portable\InternalUtilities\JsonWriter.cs (1)
25internal sealed class JsonWriter : IDisposable
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (3)
19internal readonly struct ReadLockExiter : IDisposable 41internal readonly struct UpgradeableReadLockExiter : IDisposable 73internal readonly struct WriteLockExiter : IDisposable
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (1)
28internal struct SemaphoreDisposer : IDisposable
src\Dependencies\Collections\TemporaryArray`1.cs (1)
30internal struct TemporaryArray<T> : IDisposable
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
330public readonly struct Releaser : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
17internal struct PooledObject<T> : IDisposable where T : class
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Logging\TestOutputLoggerProvider.cs (1)
38private sealed class NoOpDisposable : IDisposable
Remote\InProcRemostHostClient.cs (1)
152private sealed class InProcRemoteServices : IDisposable
Remote\InProcRemoteHostClientProvider.cs (1)
22internal sealed class InProcRemoteHostClientProvider : IRemoteHostClientProvider, IDisposable
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceServiceTests\ReferenceCountedDisposableTests.cs (1)
186private sealed class DisposableObject : IDisposable
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
119internal class TextFieldParser : IDisposable
Microsoft.Data.Analysis.Tests (2)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
119internal class TextFieldParser : IDisposable
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
21public class BaseTestClass : IDisposable
Microsoft.DotNet.Arcade.Sdk.Tests (2)
Utilities\TestApp.cs (1)
16public class TestApp : IDisposable
Utilities\TestProjectFixture.cs (1)
19public class TestProjectFixture : IDisposable
Microsoft.DotNet.AsmDiff (3)
AssemblySet.cs (1)
15public sealed class AssemblySet : IEnumerable<IAssembly>, IDisposable
Csv\CsvWriter.cs (1)
9public abstract class CsvWriter : IDisposable
src\Common\Internal\DisposeAction.cs (1)
7internal class DisposeAction : IDisposable
Microsoft.DotNet.Build.Tasks.Feed (3)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
20public class AzureDevOpsNugetFeedAssetPublisher : IAssetPublisher, IDisposable
src\MSBuildLogger.cs (1)
60internal class NullScope : IDisposable
src\SemaphoreLock.cs (1)
10public readonly struct SemaphoreLock : IDisposable
Microsoft.DotNet.Build.Tasks.Installers (1)
src\ArWriter.cs (1)
13internal sealed class ArWriter : IDisposable
Microsoft.DotNet.Helix.Sdk (2)
CommandPayload.cs (1)
11internal class CommandPayload : IDisposable
LoggerExtensions.cs (1)
64public struct FailureCategoryScope : IDisposable
Microsoft.DotNet.Internal.SymbolHelper (1)
ScopedTracer.cs (1)
44private sealed class TokenScope : IDisposable
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiTestBase.cs (1)
14public class OpenApiTestBase : IDisposable
ProcessEx.cs (1)
15internal class ProcessEx : IDisposable
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
12public class TemporaryDirectory : IDisposable
Microsoft.DotNet.RemoteExecutor (2)
RemoteExecutor.cs (1)
567private class FileDeleter : IDisposable
RemoteInvokeHandle.cs (1)
19public sealed class RemoteInvokeHandle : IDisposable
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
23public class SignToolTests : IDisposable
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\Disposable.cs (1)
8public class Disposable : IDisposable
Microsoft.DotNet.XUnitAssert.Tests (1)
TypeAssertsTests.cs (1)
477 class DisposableClass : IDisposable
Microsoft.Extensions.AI.Integration.Tests (3)
ChatClientIntegrationTests.cs (1)
28public abstract class ChatClientIntegrationTests : IDisposable
EmbeddingGeneratorIntegrationTests.cs (1)
25public abstract class EmbeddingGeneratorIntegrationTests : IDisposable
SpeechToTextClientIntegrationTests.cs (1)
16public abstract class SpeechToTextClientIntegrationTests : IDisposable
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\ServerSentEvents\ArrayBuffer.cs (1)
29internal struct ArrayBuffer : IDisposable
src\Shared\ServerSentEvents\PooledByteBufferWriter.cs (1)
11internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TemplateExecutionTestBase.cs (1)
15public abstract class TemplateExecutionTestBase<TConfiguration> : IClassFixture<TemplateExecutionTestBase<TConfiguration>.TemplateExecutionTestFixture>, IDisposable
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
828private class DisposableService : IDisposable 849private class DisposableAndAsyncDisposableService : IDisposable, IAsyncDisposable
Microsoft.Extensions.ApiDescription.Client.Tests (3)
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
12public class TemporaryDirectory : IDisposable
TargetTest.cs (1)
16public class TargetTest : IDisposable
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
12public class TemporaryDirectory : IDisposable
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
15internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.Extensions.Caching.Hybrid.Tests (1)
RedisFixture.cs (1)
8public sealed class RedisFixture : IDisposable
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
16public class DistributedCacheBenchmarks : IDisposable
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
24public partial class RedisCache : IBufferDistributedCache, IDisposable
Microsoft.Extensions.Configuration (6)
ChainedConfigurationProvider.cs (1)
13public class ChainedConfigurationProvider : IConfigurationProvider, IDisposable
ConfigurationManager.cs (1)
25public sealed class ConfigurationManager : IConfigurationManager, IConfigurationRoot, IDisposable
ConfigurationRoot.cs (1)
17public class ConfigurationRoot : IConfigurationRoot, IDisposable
ReferenceCountedProviders.cs (1)
12internal abstract class ReferenceCountedProviders : IDisposable
ReferenceCountedProvidersManager.cs (1)
12internal sealed class ReferenceCountedProviderManager : IDisposable
src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
18public abstract class FileConfigurationProvider : ConfigurationProvider, IDisposable
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
15public class KeyPerFileConfigurationProvider : ConfigurationProvider, IDisposable
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
476class MockDisposable : IDisposable
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
20public sealed class ServiceProvider : IServiceProvider, IKeyedServiceProvider, IDisposable, IAsyncDisposable
Microsoft.Extensions.Diagnostics (3)
Metrics\DebugConsoleMetricListener.cs (1)
13internal sealed class DebugConsoleMetricListener : IMetricsListener, IDisposable
Metrics\ListenerSubscription.cs (1)
11internal sealed class ListenerSubscription : IObservableInstrumentsSource, IDisposable
Metrics\MetricsSubscriptionManager.cs (1)
12internal sealed class MetricsSubscriptionManager : IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
MockHostApplicationLifetime.cs (1)
10internal class MockHostApplicationLifetime : IHostApplicationLifetime, IDisposable
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
DefaultHealthCheckServiceTest.cs (2)
740private class SynchronousDisposable : IDisposable 769private class SyncOrAsyncDisposable : IDisposable, IAsyncDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\TestResources.cs (1)
11internal sealed class TestResources : IDisposable
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
21public sealed class MetricCollector<T> : IDisposable
Microsoft.Extensions.FileProviders.Abstractions (1)
src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.FileProviders.Physical (3)
PhysicalFileProvider.cs (1)
23public class PhysicalFileProvider : IFileProvider, IDisposable
PhysicalFilesWatcher.cs (1)
23public class PhysicalFilesWatcher : IDisposable
src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.Hosting (1)
Internal\ConsoleLifetime.cs (1)
21public partial class ConsoleLifetime : IHostLifetime, IDisposable
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
13public abstract class BackgroundService : IHostedService, IDisposable
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
20public partial class SystemdLifetime : IHostLifetime, IDisposable
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Telemetry\DownstreamDependencyMetadataManagerTests.cs (1)
12public class DownstreamDependencyMetadataManagerTests : IDisposable
Microsoft.Extensions.Http.Resilience (2)
Internal\RequestMessageSnapshot.cs (1)
13internal sealed class RequestMessageSnapshot : IResettable, IDisposable
Routing\Internal\RequestRoutingStrategy.cs (1)
15internal abstract class RequestRoutingStrategy : IResettable, IDisposable
Microsoft.Extensions.Http.Resilience.Tests (2)
Hedging\HedgingTests.cs (1)
27public abstract class HedgingTests<TBuilder> : IDisposable
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
23public sealed partial class HttpClientBuilderExtensionsTests : IDisposable
Microsoft.Extensions.Identity.Core (2)
RoleManager.cs (1)
21public class RoleManager<TRole> : IDisposable where TRole : class
UserManager.cs (1)
26public class UserManager<TUser> : IDisposable where TUser : class
Microsoft.Extensions.Logging (3)
Logger.cs (1)
273private sealed class Scope : IDisposable
LoggerFactoryScopeProvider.cs (1)
100private sealed class Scope : IDisposable
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.Abstractions (2)
LoggerExternalScopeProvider.cs (1)
47private sealed class Scope : IDisposable
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.Console (8)
ConsoleLoggerExtensions.Obsolete.cs (1)
165private sealed class NullChangeToken : IChangeToken, IDisposable
ConsoleLoggerProcessor.cs (1)
15internal class ConsoleLoggerProcessor : IDisposable
JsonConsoleFormatter.cs (1)
18internal sealed class JsonConsoleFormatter : ConsoleFormatter, IDisposable
SimpleConsoleFormatter.cs (1)
13internal sealed class SimpleConsoleFormatter : ConsoleFormatter, IDisposable
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
SystemdConsoleFormatter.cs (1)
13internal sealed class SystemdConsoleFormatter : ConsoleFormatter, IDisposable
Microsoft.Extensions.Logging.Debug (1)
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.EventLog (1)
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
196private sealed class ActivityScope : IDisposable
src\libraries\Common\src\Extensions\Logging\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceScope.cs (1)
12internal sealed class TraceSourceScope : IDisposable
Microsoft.Extensions.ML (3)
ModelLoaders\FileModelLoader.cs (1)
16internal class FileModelLoader : ModelLoader, IDisposable
ModelLoaders\UriModelLoader.cs (1)
18internal class UriModelLoader : ModelLoader, IDisposable
PoolLoader.cs (1)
18internal class PoolLoader<TData, TPrediction> : IDisposable
Microsoft.Extensions.ObjectPool (2)
DisposableObjectPool.cs (1)
9internal sealed class DisposableObjectPool<T> : DefaultObjectPool<T>, IDisposable where T : class
LeakTrackingObjectPool.cs (1)
58private sealed class Tracker : IDisposable
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
TestResources\Pooled.cs (1)
8public sealed class Pooled<TService> : IDisposable
TestResources\TestClass.cs (1)
9public sealed class TestClass : IResettable, IDisposable, ITestClass
Microsoft.Extensions.ObjectPool.Tests (2)
DefaultObjectPoolProviderTest.cs (1)
37private class DisposableObject : IDisposable
DisposableObjectPoolTest.cs (1)
138private class DisposableObject : IDisposable
Microsoft.Extensions.Options (2)
OptionsMonitor.cs (2)
17IDisposable 130internal sealed class ChangeTrackerDisposable : IDisposable
Microsoft.Extensions.Primitives (3)
ChangeToken.cs (2)
55private sealed class ChangeTokenRegistration<TState> : IDisposable 150private sealed class NoopDisposable : IDisposable
src\libraries\Common\src\Extensions\EmptyDisposable.cs (1)
8internal sealed class EmptyDisposable : IDisposable
Microsoft.Extensions.SecretManager.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
12public class TemporaryDirectory : IDisposable
TemporaryFileProvider.cs (1)
10internal class TemporaryFileProvider : IDisposable
UserSecretsTestFixture.cs (1)
11public class UserSecretsTestFixture : IDisposable
Microsoft.Extensions.Telemetry (5)
Buffering\GlobalBuffer.cs (1)
18internal sealed class GlobalBuffer : IDisposable
Logging\ExtendedLogger.Scope.cs (1)
10private sealed class Scope : IDisposable
Logging\Import\LoggerFactoryScopeProvider.cs (1)
119private sealed class Scope : IDisposable
Logging\Import\NullScope.cs (1)
17internal sealed class NullScope : IDisposable
Sampling\RandomProbabilisticSampler.cs (1)
21internal sealed class RandomProbabilisticSampler : LoggingSampler, IDisposable
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
15private sealed class Disposable : IDisposable
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
38public class TestLogger : ILogger, IDisposable
Microsoft.Gen.Metrics.Generated.Tests (1)
MetricTests.cs (1)
15public partial class MetricTests : IDisposable
Microsoft.JSInterop (4)
DotNetObjectReferenceOfT.cs (1)
19IDotNetObjectReference, IDisposable where TValue : class
DotNetStreamReference.cs (1)
9public sealed class DotNetStreamReference : IDisposable
JSRuntime.cs (1)
16public abstract partial class JSRuntime : IJSRuntime, IDisposable
src\Components\Shared\src\ArrayBuilder.cs (1)
30internal class ArrayBuilder<T> : IDisposable
Microsoft.Maui (5)
Animations\Animation.cs (1)
12 public class Animation : IDisposable, IEnumerable
Animations\AnimationManager.cs (1)
7 public class AnimationManager : IAnimationManager, IDisposable
Hosting\MauiApp.cs (1)
11 public sealed class MauiApp : IDisposable, IAsyncDisposable
Hosting\MauiAppBuilder.cs (1)
192 private sealed class NullLogger<T> : ILogger<T>, IDisposable
Platform\ActionDisposable.cs (1)
8 class ActionDisposable : IDisposable
Microsoft.Maui.Controls (6)
AnimationExtensions.cs (1)
402 sealed class BatchObject : IDisposable
Performance.cs (1)
63 class DisposablePerformanceReference : IDisposable
Platform\GestureManager\GesturePlatformManager.Standard.cs (1)
5 class GesturePlatformManager : IDisposable
Profiler.cs (1)
13 public struct Profile : IDisposable
TemplatedItemsList.cs (2)
19 public sealed class TemplatedItemsList<TView, [DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers | BindableProperty.ReturnTypeMembers)] TItem> : BindableObject, ITemplatedItemsList<TItem>, IList, IDisposable 1226 class ShortNamesProxy : IReadOnlyList<string>, INotifyCollectionChanged, IDisposable
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingCodeWriter.cs (1)
156 public sealed class BindingInterceptorCodeBuilder : IDisposable
Microsoft.Maui.Graphics (6)
AbstractCanvas.cs (1)
9 public abstract class AbstractCanvas<TState> : ICanvas, IDisposable where TState : CanvasState
BitmapExportContext.cs (1)
6 public abstract class BitmapExportContext : IDisposable
CanvasState.cs (1)
6 public class CanvasState : IDisposable
PathF.cs (1)
8 public class PathF : IDisposable
PdfExportContext.cs (1)
7 internal abstract class PdfExportContext : IDisposable
PictureCanvas.cs (1)
9 public class PictureCanvas : ICanvas, IDisposable
Microsoft.Maui.Graphics.Skia (2)
SkiaCanvasStateService.cs (1)
6 public class SkiaCanvasStateService : IDisposable, ICanvasStateService<SkiaCanvasState>
SkiaTextLayout.cs (1)
7 public class SkiaTextLayout : IDisposable
Microsoft.Maui.Resizetizer (3)
SkiaSharpImaginaryTools.cs (1)
6 internal class SkiaSharpImaginaryTools : SkiaSharpTools, IDisposable
SkiaSharpRasterTools.cs (1)
7 internal class SkiaSharpRasterTools : SkiaSharpTools, IDisposable
SkiaSharpSvgTools.cs (1)
8 internal class SkiaSharpSvgTools : SkiaSharpTools, IDisposable
Microsoft.ML.Core (11)
ComponentModel\AssemblyLoadingUtils.cs (1)
262private sealed class AssemblyRegistrar : IDisposable
Data\ModelLoadContext.cs (1)
20internal sealed partial class ModelLoadContext : IDisposable
Data\ModelLoading.cs (1)
20internal sealed partial class ModelLoadContext : IDisposable
Data\ModelSaveContext.cs (1)
21public sealed partial class ModelSaveContext : IDisposable
Data\ModelSaving.cs (1)
12public sealed partial class ModelSaveContext : IDisposable
Data\Repository.cs (2)
43internal abstract class Repository : IDisposable 45public sealed class Entry : IDisposable
Data\ServerChannel.cs (1)
21internal sealed class ServerChannel : ServerChannel.IPendingBundleNotification, IDisposable
Environment\ConsoleEnvironment.cs (1)
435private sealed class OutputRedirector : IDisposable
Utilities\IndentedTextWriterExtensions.cs (1)
13public struct Scope : IDisposable
Utilities\ThreadUtils.cs (1)
177internal sealed class ExceptionMarshaller : IDisposable
Microsoft.ML.Data (19)
Data\SlotCursor.cs (1)
15internal abstract class SlotCursor : IDisposable
DataLoadSave\Binary\BinaryLoader.cs (1)
39internal sealed class BinaryLoader : ILegacyDataLoader, IDisposable
DataLoadSave\Binary\Codecs.cs (2)
21private abstract class ValueWriterBase<T> : IValueWriter<T>, IDisposable 65private abstract class ValueReaderBase<T> : IValueReader<T>, IDisposable
DataLoadSave\CompositeDataLoader.cs (1)
19public sealed class CompositeDataLoader<TSource, TLastTransformer> : IDataLoader<TSource>, IDisposable
DataLoadSave\Text\BlockingQueue.cs (1)
32internal sealed class BlockingQueue<T> : IDisposable
DataLoadSave\Text\TextLoaderCursor.cs (1)
861private sealed class ParallelState : IDisposable
DataLoadSave\TransformerChain.cs (1)
53public sealed class TransformerChain<TLastTransformer> : ITransformer, IEnumerable<ITransformer>, ITransformerChainAccessor, IDisposable
DataView\CompositeRowToRowMapper.cs (1)
17internal sealed class CompositeRowToRowMapper : IRowToRowMapper, IDisposable
DataView\Transposer.cs (1)
24internal sealed class Transposer : ITransposeDataView, IDisposable
Prediction\PredictionEngine.cs (1)
89public abstract class PredictionEngineBase<TSrc, TDst> : IDisposable
Scorers\MulticlassClassificationScorer.cs (1)
68IBindableCanSaveOnnx, IDisposable
Scorers\PredictedLabelScorerBase.cs (1)
20internal abstract class PredictedLabelScorerBase : RowToRowScorerBase, ITransformCanSavePfa, ITransformCanSaveOnnx, IDisposable
Scorers\PredictionTransformer.cs (1)
43public abstract class PredictionTransformerBase<TModel> : IPredictionTransformer<TModel>, IDisposable
Scorers\SchemaBindablePredictorWrapper.cs (2)
35IBindableCanSavePfa, IBindableCanSaveOnnx, IDisposable 197protected sealed class SingleValueRowMapper : ISchemaBoundRowMapper, IDisposable
Training\TrainerUtils.cs (1)
491internal abstract class TrainingCursorBase : IDisposable
Transforms\MetadataDispatcher.cs (1)
378public sealed class Builder : IDisposable
Utilities\TimerScope.cs (1)
16internal sealed class TimerScope : IDisposable
Microsoft.ML.DataView (1)
IDataView.cs (1)
89public abstract class DataViewRow : IDisposable
Microsoft.ML.FastTree (1)
Utils\Timer.cs (1)
225public sealed class TimedEvent : IDisposable
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
20public sealed class MLImage : IDisposable
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
17public class IntegrationTestBaseClass : IDisposable
Microsoft.ML.LightGbm (2)
WrappedLightGbmBooster.cs (1)
17internal sealed class Booster : IDisposable
WrappedLightGbmDataset.cs (1)
14internal sealed class Dataset : IDisposable
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
331private sealed class ArrayManager<T> : IDisposable 528private sealed class InputDataManager : IDisposable
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (2)
42public sealed class OnnxTransformer : RowToRowTransformerBase, IDisposable 662private sealed class OnnxRuntimeOutputCacher : IDisposable
OnnxUtils.cs (1)
26internal sealed class OnnxModel : IDisposable
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
34internal sealed class ParquetLoader : ILegacyDataLoader, IDisposable
Microsoft.ML.Recommender (1)
SafeTrainingAndModelBuffer.cs (1)
18internal sealed class SafeTrainingAndModelBuffer : IDisposable
Microsoft.ML.Sweeper (2)
AsyncSweeper.cs (2)
69public partial class SimpleAsyncSweeper : IAsyncSweeper, IDisposable 151public sealed class DeterministicSweeperAsync : IAsyncSweeper, IDisposable
Microsoft.ML.TensorFlow (4)
TensorFlowModel.cs (1)
17public sealed class TensorFlowModel : IDisposable
TensorflowTransform.cs (2)
41public sealed class TensorFlowTransformer : RowToRowTransformerBase, IDisposable 676private class OutputCache : IDisposable
TensorflowUtils.cs (1)
517public class Runner : IDisposable
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
28internal sealed class TensorFlowScenariosTestsFixture : IDisposable
Microsoft.ML.TestFramework (1)
BaseTestClass.cs (1)
21public class BaseTestClass : IDisposable
Microsoft.ML.TestFrameworkCommon (1)
Utility\NativeLibrary.cs (1)
11public class NativeLibrary : IDisposable
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
500public class ObjectDetectionTransformer : RowToRowTransformerBase, IDisposable 933private protected class TensorCacher : IDisposable
Roberta\QATrainer.cs (2)
557public class QATransformer : RowToRowTransformerBase, IDisposable 881private protected class TensorCacher : IDisposable
TorchSharpBaseTrainer.cs (2)
369public abstract class TorchSharpBaseTransformer : RowToRowTransformerBase, IDisposable 516private protected abstract class TensorCacher : IDisposable
Microsoft.ML.Transforms (5)
Expression\CodeGen.cs (1)
21internal sealed partial class LambdaCompiler : IDisposable
Expression\MethodGenerator.cs (2)
16internal sealed class MethodGenerator : IDisposable 68public struct Temporary : IDisposable
Text\LdaSingleBox.cs (1)
95internal sealed class LdaSingleBox : IDisposable
Text\LdaTransform.cs (1)
227private sealed class LdaState : IDisposable
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
41internal sealed class DnnRetrainTransformer : RowToRowTransformerBase, IDisposable
ImageClassificationTrainer.cs (1)
1349public sealed class ImageClassificationModelParameters : ModelParametersBase<VBuffer<float>>, IValueMapper, IDisposable
Microsoft.NET.StringTools (4)
SpanBasedStringBuilder.cs (1)
18public class SpanBasedStringBuilder : IDisposable
WeakStringCache.Concurrent.cs (1)
14internal sealed partial class WeakStringCache : IDisposable
WeakStringCache.cs (1)
17internal sealed partial class WeakStringCache : IDisposable
WeakStringCacheInterner.cs (1)
15internal class WeakStringCacheInterner : IDisposable
Microsoft.NET.StringTools.net35 (4)
SpanBasedStringBuilder.Simple.cs (1)
12public class SpanBasedStringBuilder : IDisposable
WeakStringCache.cs (1)
17internal sealed partial class WeakStringCache : IDisposable
WeakStringCache.Locking.cs (1)
12internal sealed partial class WeakStringCache : IDisposable
WeakStringCacheInterner.cs (1)
15internal class WeakStringCacheInterner : IDisposable
Microsoft.NET.StringTools.net35.UnitTests (1)
WeakStringCache_Tests.cs (1)
24public class WeakStringCache_Tests : IDisposable
Microsoft.NET.StringTools.UnitTests (1)
WeakStringCache_Tests.cs (1)
24public class WeakStringCache_Tests : IDisposable
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
29Implements IDisposable
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
23Implements IDisposable
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (1)
16Implements IDisposable
Microsoft.VisualStudio.LanguageServices (28)
CodeMarkers\ManagedCodeMarkers.cs (2)
502internal struct CodeMarkerStartEnd : IDisposable 528internal struct CodeMarkerExStartEnd : IDisposable
DebuggerIntelliSense\AbstractDebuggerIntelliSenseContext.cs (1)
21internal abstract class AbstractDebuggerIntelliSenseContext : IDisposable
DebuggerIntelliSense\DebuggerIntellisenseFilter.cs (1)
22internal sealed class DebuggerIntelliSenseFilter : AbstractVsTextViewFilter, IDisposable, IFeatureController
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
233private sealed class StatusBarUpdater : IDisposable
DocumentOutline\DocumentOutlineView.xaml.cs (1)
35internal sealed partial class DocumentOutlineView : UserControl, IOleCommandTarget, IDisposable, IVsWindowSearch
DocumentOutline\DocumentOutlineViewModel.cs (1)
38internal sealed partial class DocumentOutlineViewModel : INotifyPropertyChanged, IDisposable
EditorConfigSettings\Common\RemoveSinkWhenDisposed.cs (1)
11internal sealed class RemoveSinkWhenDisposed : IDisposable
Implementation\VisualStudioUIContextActivationService.cs (2)
33private sealed class EmptyDisposable : IDisposable 42private sealed class WhenActivatedHandler : IDisposable
InheritanceMargin\InheritanceGlyphManager.cs (1)
30internal sealed partial class InheritanceGlyphManager : IDisposable
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (1)
29internal abstract class AbstractCreateServicesOnTextViewConnection : IWpfTextViewConnectionListener, IDisposable
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
30internal abstract partial class AbstractObjectBrowserLibraryManager : AbstractLibraryManager, IDisposable
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (1)
23internal sealed class PdbSourceDocumentOutputWindowLogger : IPdbSourceDocumentLogger, IDisposable
PreviewPane\PreviewPane.xaml.cs (1)
28internal partial class PreviewPane : UserControl, IDisposable, IOleCommandTarget
ProjectSystem\FileChangeTracker.cs (1)
20internal sealed class FileChangeTracker : IVsFreeThreadedFileChangeEvents2, IDisposable
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
38internal sealed partial class VisualStudioMetadataReferenceManager : IWorkspaceService, IDisposable
ProjectSystem\OpenTextBufferProvider.cs (1)
32internal sealed class OpenTextBufferProvider : IVsRunningDocTableEvents3, IDisposable
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
19private sealed class RuleSetFile : IRuleSetFile, IDisposable
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
404private sealed class HierarchyEventSink : IVsHierarchyEvents, IDisposable
SolutionEventMonitor.cs (1)
17internal sealed class SolutionEventMonitor : IDisposable
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (1)
19internal sealed class StackTraceExplorerCommandHandler : IVsBroadcastMessageEvents, IDisposable
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
38internal sealed class ExternalErrorDiagnosticUpdateSource : IDisposable
Telemetry\AbstractWorkspaceTelemetryService.cs (1)
16internal abstract class AbstractWorkspaceTelemetryService : IWorkspaceTelemetryService, IDisposable
Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
16internal sealed class TimedTelemetryLogBlock : IDisposable
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
71internal sealed class SinkManager : IDisposable
Utilities\VsCodeWindowViewTracker.cs (1)
27internal sealed class VsCodeWindowViewTracker : IDisposable, IVsCodeWindowEvents
Workspace\SourceGeneratedFileManager.cs (1)
232private sealed class OpenSourceGeneratedFile : IDisposable
Microsoft.VisualStudio.LanguageServices.CodeLens (2)
ReferenceCodeLensProvider.cs (2)
37internal sealed class ReferenceCodeLensProvider : IAsyncCodeLensDataPointProvider, IDisposable 152private sealed class DataPoint : IAsyncCodeLensDataPoint, IDisposable
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
CodeModel\AbstractFileCodeElementTests.cs (1)
22public abstract class AbstractFileCodeElementTests : IDisposable
Interactive\InteractiveWindowTestHost.cs (1)
12public sealed class InteractiveWindowTestHost : IDisposable
PersistentStorage\AbstractPersistentStorageTests.cs (1)
25public abstract class AbstractPersistentStorageTests : IDisposable
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
16internal sealed class TimedTelemetryLogBlock : IDisposable
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Client\RemoteLanguageServiceWorkspace.cs (1)
39internal sealed class RemoteLanguageServiceWorkspace : CodeAnalysis.Workspace, IDisposable, IOpenTextBufferEventListener
Client\RemoteLanguageServiceWorkspaceHost.cs (1)
161private sealed class RemoteLanguageServiceSession : ICollaborationService, IDisposable
Client\RoslynLSPClientService.cs (1)
96protected abstract class RoslynLSPClientLifeTimeService : ICollaborationService, IDisposable
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\XamlEditAndContinueSolutionProvider.cs (1)
18internal sealed class XamlEditAndContinueSolutionProvider : IXamlEditAndContinueSolutionProvider, IDisposable
Implementation\XamlProjectService.cs (1)
30internal sealed partial class XamlProjectService : IDisposable
Microsoft.Win32.Registry (1)
artifacts\obj\Microsoft.Win32.Registry\Debug\net10.0\Microsoft.Win32.Registry.notsupported.cs (1)
30public sealed partial class RegistryKey : System.MarshalByRefObject, System.IDisposable
MSBuild (3)
AutomaticEncodingRestorer.cs (1)
17public class AutomaticEncodingRestorer : IDisposable
PrintLineDebugger.cs (1)
23internal sealed class PrintLineDebugger : IDisposable
TempFileUtilities.cs (1)
220public sealed class TempWorkingDirectory : IDisposable
Mvc.Api.Analyzers.Test (4)
TestFiles\MvcFactsTest\IsControllerActionTests.cs (4)
20public class TestIsControllerAction : TestIsControllerActionBase, IDisposable 55public class ExplicitIDisposable : ControllerBase, IDisposable 65public class NotDisposableWithExplicitImplementation : IDisposable 72public class NotDisposableWithDisposeThatIsNotInterfaceContract : IDisposable
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\StreamGeometryContext.cs (1)
39internal abstract class StreamGeometryContext : IDisposable
PresentationCore (39)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessScope.cs (1)
19internal class DpiAwarenessScope : IDisposable
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
21internal sealed class NativeRecognizer : IDisposable
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
34internal class ByteRangeDownloader : IDisposable
MS\Internal\MediaTrace.cs (1)
8internal class MediaTrace : IDisposable
MS\Internal\TextFormatting\DrawingState.cs (1)
21internal sealed class DrawingState : IDisposable
MS\Internal\TextFormatting\TextPenaltyModule.cs (1)
14internal sealed class TextPenaltyModule : IDisposable
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
23internal class InputPane : IDisposable
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
12internal class UISettings : IDisposable
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
55internal struct CompositionEngineLock : IDisposable
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
38internal sealed class EventSourceActivity : IDisposable
System\Windows\Documents\DocumentPage.cs (1)
18public class DocumentPage : IDisposable
System\Windows\FreezableCollection.cs (1)
1094private class SimpleMonitor : IDisposable
System\Windows\Ink\GestureRecognizer.cs (1)
19public sealed class GestureRecognizer : DependencyObject, IDisposable
System\Windows\Input\Cursor.cs (1)
17public sealed class Cursor : IDisposable
System\Windows\Input\InputLanguageSource.cs (1)
27internal sealed class InputLanguageSource : IInputLanguageSource, IDisposable
System\Windows\Input\InputProviderSite.cs (1)
10internal class InputProviderSite : IDisposable
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
133internal class DynamicRendererThreadManager : IWeakEventListener, IDisposable
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
19internal abstract class StylusDeviceBase : DispatcherObject, IDisposable
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
16internal abstract class TabletDeviceBase : DispatcherObject, IDisposable
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
15internal class PointerInteractionEngine : IDisposable
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
12internal sealed class HwndAppCommandInputProvider : DispatcherObject, IInputProvider, IDisposable
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
14internal sealed class HwndKeyboardInputProvider : DispatcherObject, IKeyboardInputProvider, IDisposable
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
17internal sealed class HwndMouseInputProvider : DispatcherObject, IMouseInputProvider, IDisposable
System\Windows\InterOp\HwndSource.cs (1)
20public class HwndSource : PresentationSource, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\InterOp\HwndTarget.cs (1)
2509private class NotificationWindowHelper : IDisposable
System\Windows\Media\CompositionTarget.cs (1)
11public abstract class CompositionTarget : DispatcherObject, IDisposable, ICompositionTarget
System\Windows\Media\DrawingContext.cs (1)
17public abstract partial class DrawingContext : DispatcherObject, IDisposable
System\Windows\Media\FactoryMaker.cs (1)
16internal class FactoryMaker: IDisposable
System\Windows\Media\FormattedText.cs (1)
858private struct LineEnumerator : IEnumerator, IDisposable
System\Windows\Media\Generated\DrawingContext.cs (1)
23public abstract partial class DrawingContext : DispatcherObject, IDisposable
System\Windows\Media\MediaContext.cs (1)
24internal partial class MediaContext : DispatcherObject, IDisposable, IClock
System\Windows\Media\MediaContextNotificationWindow.cs (1)
22internal class MediaContextNotificationWindow : IDisposable
System\Windows\Media\RenderDataDrawingContext.cs (1)
19internal partial class RenderDataDrawingContext : DrawingContext, IDisposable
System\Windows\Media\StreamGeometryContext.cs (1)
37public abstract class StreamGeometryContext : DispatcherObject, IDisposable
System\Windows\Media\textformatting\TextBreakpoint.cs (1)
29internal abstract class TextBreakpoint : ITextMetrics, IDisposable
System\Windows\Media\textformatting\TextFormatter.cs (1)
33public abstract class TextFormatter : IDisposable
System\Windows\Media\textformatting\TextLine.cs (1)
21public abstract class TextLine : ITextMetrics, IDisposable
System\Windows\Media\textformatting\TextLineBreak.cs (1)
16public sealed class TextLineBreak : IDisposable
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
23internal sealed class TextParagraphCache : IDisposable
PresentationFramework (54)
Microsoft\Win32\CommonItemDialog.cs (1)
687private protected sealed class VistaDialogEvents : IFileDialogEvents, IDisposable
MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (1)
52public class AutoLocker : IDisposable
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
831private class EmptyGroupRemover : IDisposable
MS\Internal\Data\CompositeCollectionView.cs (1)
1485private class FlatteningEnumerator : IEnumerator, IDisposable
MS\Internal\Data\EnumerableCollectionView.cs (1)
657private class IgnoreViewEventsHelper : IDisposable
MS\Internal\Data\IndexedEnumerable.cs (1)
709private class FilteredEnumerator : IEnumerator, IDisposable
MS\Internal\Data\PropertyPathWorker.cs (1)
1754private class ContextHelper : IDisposable
MS\Internal\Documents\DocumentGridPage.cs (1)
22internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\TextBoxLine.cs (1)
21internal class TextBoxLine : TextSource, IDisposable
MS\Internal\Documents\UIElementIsland.cs (1)
17internal class UIElementIsland : ContainerVisual, IContentHost, IDisposable
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
23private sealed class PrintDlgExMarshaler : IDisposable
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
24internal sealed class FlowDocumentPage : DocumentPage, IServiceProvider, IDisposable, IContentHost
MS\Internal\PtsHost\PageBreakRecord.cs (1)
16internal sealed class PageBreakRecord : IDisposable
MS\Internal\PtsHost\PtsContext.cs (1)
24internal sealed class PtsContext : DispatcherObject, IDisposable
MS\Internal\PtsHost\PtsPage.cs (1)
23internal class PtsPage : IDisposable
MS\Internal\PtsHost\StructuralCache.cs (3)
669internal class DocumentFormatContext : DocumentOperationContext, IDisposable 787internal class DocumentArrangeContext : DocumentOperationContext, IDisposable 864internal class DocumentVisualValidationContext : DocumentOperationContext, IDisposable
MS\Internal\PtsHost\UnmanagedHandle.cs (1)
17internal class UnmanagedHandle : IDisposable
MS\Internal\Text\Line.cs (1)
19internal abstract class Line : TextSource, IDisposable
MS\Internal\Utility\MonitorWrapper.cs (1)
44private class MonitorHelper : IDisposable
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
13internal abstract class IObjectReference : IDisposable
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (1)
38internal sealed class EventSourceActivity : IDisposable
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
17public abstract class AnnotationStore : IDisposable
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
526private class UpdateChildrenHelper : IDisposable 731internal class RecyclableWrapper : IDisposable
System\Windows\Controls\DataGrid.cs (1)
5257private class ChangingSelectedCellsHelper : IDisposable
System\Windows\Controls\DataGridColumnHeaderCollection.cs (2)
15internal class DataGridColumnHeaderCollection : IEnumerable, INotifyCollectionChanged, IDisposable 79private class ColumnHeaderCollectionEnumerator : IEnumerator, IDisposable
System\Windows\Controls\ItemCollection.cs (1)
2493private class DeferHelper : IDisposable
System\Windows\Controls\ItemContainerGenerator.cs (2)
1311private class Generator : IDisposable 1575private class BatchGenerator : IDisposable
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
23public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\Selector.cs (1)
2902private class BatchRemoveHelper : IDisposable
System\Windows\Controls\SelectedItemCollection.cs (1)
159private class Changer : IDisposable
System\Windows\Controls\SoundPlayerAction.cs (1)
25public class SoundPlayerAction : TriggerAction, IDisposable
System\Windows\Controls\TextAdaptor.cs (1)
26internal class TextAdaptor : ITextProvider, IDisposable
System\Windows\Data\BindingExpression.cs (1)
2653private class ChangingValueHelper : IDisposable
System\Windows\Data\BindingOperations.cs (1)
576internal class ExceptionLogger : IDisposable
System\Windows\Data\CollectionView.cs (2)
2059private class DeferHelper : IDisposable 2082private class SimpleMonitor : IDisposable
System\Windows\Data\CollectionViewSource.cs (1)
1199private class DeferHelper : IDisposable
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
39internal partial class SpellChecker : IDisposable
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
23internal class NaturalLanguageHyphenator : TextLexicalService, IDisposable
System\Windows\Documents\NLGSpellerInterop.cs (2)
553private class SpellerSegment : ISpellerSegment, IDisposable 815private class SpellerSentence : ISpellerSentence, IDisposable
System\Windows\Documents\SpellerInteropBase.cs (1)
10internal abstract class SpellerInteropBase: IDisposable
System\Windows\Documents\TextRange.cs (1)
1838private class ChangeBlock : IDisposable
System\Windows\Documents\TextStore.cs (1)
4234private class MouseSink : IDisposable, IComparer
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
44internal class SpellerCOMActionTraceLogger : IDisposable
System\Windows\Documents\WinEventHandler.cs (1)
15internal class WinEventHandler : IDisposable
System\Windows\Interop\HwndHost.cs (1)
22public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
21public sealed class MarkupWriter : IDisposable
System\Windows\Window.cs (1)
7668internal class HwndStyleManager : IDisposable
PresentationUI (6)
MS\Internal\Documents\Application\Document.cs (1)
50internal abstract class Document : IChainOfDependenciesNode<Document>, IDisposable
MS\Internal\Documents\Application\DocumentStream.cs (1)
30internal sealed class DocumentStream : StreamProxy, IDisposable
MS\Internal\Documents\Application\RightsController.cs (1)
25internal class RightsController : IDocumentController, IDisposable
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
40internal class TransactionalPackage : Package, IDisposable
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
300private class DsObjectNamesWrapper : IDisposable
MS\Internal\Documents\RightsManagementProvider.cs (1)
26internal class RightsManagementProvider : IRightsManagementProvider, IDisposable
ReachFramework (13)
Packaging\PartEditor.cs (1)
27internal class PartEditor : IDisposable
Packaging\XpsDocument.cs (1)
37public class XpsDocument : XpsPartBase, INode, IDisposable
Packaging\XpsFixedDocumentReaderWriter.cs (1)
232IDisposable
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
171IDisposable
Packaging\XpsFixedPageReaderWriter.cs (1)
413IDisposable
Packaging\XpsManager.cs (1)
34internal class XpsManager : IDisposable
Packaging\XpsResource.cs (1)
25public class XpsResource : XpsPartBase, INode, IDisposable
PrintConfig\PTConverter.cs (1)
51public sealed class PrintTicketConverter : IDisposable
PrintConfig\PTManager.cs (1)
185internal class PrintTicketManager : IDisposable
PrintConfig\PTProviderBase.cs (1)
30internal abstract class PTProviderBase : IDisposable
Serialization\Manager\MetroSerializationManager.cs (1)
34IDisposable
Serialization\Manager\ReachSerializer.cs (1)
20IDisposable
Serialization\Manager\XpsPackagingPolicy.cs (1)
196IDisposable
Replay (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
97internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
Roslyn.Diagnostics.Analyzers (7)
AbstractDoNotCopyValue.cs (1)
205private readonly struct VisitReleaser<T> : IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
Roslyn.Test.PdbUtilities (3)
EditAndContinue\EditAndContinueTest.GenerationInfo.cs (1)
13internal partial class EditAndContinueTest<TSelf> : IDisposable
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
20internal partial class EditAndContinueTest<TSelf> : IDisposable
Shared\DummyMetadataImport.cs (1)
18internal sealed class DummyMetadataImport : IMetadataImport, IDisposable
Roslyn.VisualStudio.DiagnosticsWindow (2)
Panels\TelemetryPanel.xaml.cs (1)
142private sealed class RAII : IDisposable
VenusMargin\ProjectionSpanTagger.cs (1)
37internal sealed class Tagger : ITagger<TextMarkerTag>, IDisposable
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
1169public class ClientReceiver : IPushCallback, IDisposable
Shared (3)
BufferWriterPool\ReturnableBufferWriter.cs (1)
18internal readonly struct ReturnableBufferWriter<T> : IDisposable
ServerSentEvents\ArrayBuffer.cs (1)
29internal struct ArrayBuffer : IDisposable
ServerSentEvents\PooledByteBufferWriter.cs (1)
11internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
16public abstract class StreamBackedTestConnection : IDisposable
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
16public abstract class StreamBackedTestConnection : IDisposable
src\Shared\NullScope.cs (1)
11internal sealed class NullScope : IDisposable
Stress.ApiService (1)
TestMetrics.cs (1)
9public class TestMetrics : IDisposable
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (1)
45public class BlockingCollection<T> : IEnumerable<T>, ICollection, IDisposable, IReadOnlyCollection<T>
System\Collections\Concurrent\OrderablePartitioner.cs (1)
215private sealed class EnumerableDropIndices : IEnumerable<TSource>, IDisposable
System\Collections\Concurrent\PartitionerStatic.cs (1)
539private sealed class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>, IDisposable
System.Collections.Immutable (4)
System\Collections\Immutable\DisposableEnumeratorAdapter_2.cs (1)
14internal struct DisposableEnumeratorAdapter<T, TEnumerator> : IDisposable
System\Collections\Immutable\ImmutableDictionary_2.Enumerator.cs (1)
16public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (1)
336internal struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (1)
251internal struct Enumerator : IEnumerator<T>, IDisposable
System.ComponentModel.Composition (23)
Microsoft\Internal\Lock.Reader.cs (1)
9internal struct ReadLock : IDisposable
Microsoft\Internal\Lock.ReaderWriter.cs (1)
9internal sealed class ReadWriteLock : IDisposable
Microsoft\Internal\Lock.Writer.cs (1)
9internal struct WriteLock : IDisposable
System\ComponentModel\Composition\ExportLifetimeContextOfT.cs (1)
6public sealed class ExportLifetimeContext<T> : IDisposable
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (2)
10private sealed class DisposableLazy<T, TMetadataView> : Lazy<T, TMetadataView>, IDisposable 28private sealed class DisposableLazy<T> : Lazy<T>, IDisposable
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
14public class AggregateExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
35public class AtomicComposition : IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
11public partial class CatalogExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
119private sealed class NonSharedCatalogExport : CatalogExport, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
19public partial class CatalogExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (1)
88private sealed class FactoryExportPart : ComposablePart, IDisposable
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeFactoryExport.cs (1)
29private sealed class ScopeCatalogExport : Export, IDisposable
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
20internal sealed class ComposablePartCatalogCollection : ICollection<ComposablePartCatalog>, INotifyComposablePartCatalogChanged, IDisposable
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
15public class ComposablePartExportProvider : ExportProvider, IDisposable
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (1)
14public partial class CompositionContainer : ExportProvider, ICompositionService, IDisposable
System\ComponentModel\Composition\Hosting\CompositionLock.cs (3)
22internal sealed class CompositionLock : IDisposable 117public sealed class CompositionLockHolder : IDisposable 139private sealed class EmptyLockHolder : IDisposable
System\ComponentModel\Composition\Hosting\CompositionService.cs (1)
15public class CompositionService : ICompositionService, IDisposable
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
18public partial class ImportEngine : ICompositionService, IDisposable
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
22public abstract class ComposablePartCatalog : IEnumerable<ComposablePartDefinition>, IDisposable
System\ComponentModel\Composition\ReflectionModel\DisposableReflectionComposablePart.cs (1)
8internal sealed class DisposableReflectionComposablePart : ReflectionComposablePart, IDisposable
System.ComponentModel.Composition.Registration (3)
System\Threading\ReadLock.cs (1)
6internal struct ReadLock : IDisposable
System\Threading\ReadWriteLock.cs (1)
6internal sealed class ReadWriteLock : IDisposable
System\Threading\WriteLock.cs (1)
6internal struct WriteLock : IDisposable
System.ComponentModel.Primitives (1)
System\ComponentModel\EventHandlerList.cs (1)
9public sealed class EventHandlerList : IDisposable
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerTransaction.cs (1)
11public abstract class DesignerTransaction : IDisposable
System\ComponentModel\Design\Serialization\SerializationStore.cs (1)
20public abstract class SerializationStore : IDisposable
System\ComponentModel\Design\ServiceContainer.cs (1)
12public class ServiceContainer : IServiceContainer, IDisposable
System\ComponentModel\License.cs (1)
10public abstract class License : IDisposable
System.Composition.Hosting (3)
System\Composition\Hosting\CompositionHost.cs (1)
19public sealed class CompositionHost : CompositionContext, IDisposable
System\Composition\Hosting\Core\CompositionOperation.cs (1)
14public sealed class CompositionOperation : IDisposable
System\Composition\Hosting\Core\LifetimeContext.cs (1)
27public sealed class LifetimeContext : CompositionContext, IDisposable
System.Composition.Runtime (1)
System\Composition\ExportOfT.cs (1)
11public sealed class Export<T> : IDisposable
System.Configuration.ConfigurationManager (4)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System\Configuration\EmptyImpersonationContext.cs (1)
7internal sealed class EmptyImpersonationContext : IDisposable
System\Configuration\Internal\DummyDisposable.cs (1)
9internal sealed class DummyDisposable : IDisposable
System\Configuration\XmlUtil.cs (1)
23internal sealed class XmlUtil : IDisposable, IConfigErrorInfo
System.Data.Common (3)
System\Data\Common\DbBatch.cs (1)
9public abstract class DbBatch : IDisposable, IAsyncDisposable
System\Data\Common\DbDataSource.cs (1)
11public abstract class DbDataSource : IDisposable, IAsyncDisposable
System\Data\TypeLimiter.cs (1)
125private sealed class Scope : IDisposable
System.Data.OleDb (2)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (2)
11public sealed partial class OleDbCommand : System.Data.Common.DbCommand, System.Data.IDbCommand, System.ICloneable, System.IDisposable 84public sealed partial class OleDbConnection : System.Data.Common.DbConnection, System.Data.IDbConnection, System.ICloneable, System.IDisposable
System.Diagnostics.DiagnosticSource (11)
System\Diagnostics\Activity.cs (1)
56public partial class Activity : IDisposable
System\Diagnostics\ActivityListener.cs (1)
21public sealed class ActivityListener : IDisposable
System\Diagnostics\ActivitySource.cs (1)
11public sealed class ActivitySource : IDisposable
System\Diagnostics\DiagnosticListener.cs (3)
29public partial class DiagnosticListener : DiagnosticSource, IObservable<KeyValuePair<string, object?>>, IDisposable 263private sealed class DiagnosticSubscription : IDisposable 402internal sealed class AllListenerSubscription : IDisposable
System\Diagnostics\DsesActivitySourceListener.cs (1)
10internal sealed class DsesActivitySourceListener : IDisposable
System\Diagnostics\DsesFilterAndTransform.cs (2)
26internal sealed class DsesFilterAndTransform : IDisposable 559private sealed class ParsedFilterAndPayloadSpecs : IDisposable
System\Diagnostics\Metrics\Meter.cs (1)
16public class Meter : IDisposable
System\Diagnostics\Metrics\MeterListener.cs (1)
17public sealed class MeterListener : IDisposable
System.Diagnostics.EventLog (7)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (7)
200public partial class EventLogConfiguration : System.IDisposable 297public partial class EventLogPropertySelector : System.IDisposable 322public partial class EventLogReader : System.IDisposable 385public partial class EventLogSession : System.IDisposable 417public partial class EventLogWatcher : System.IDisposable 453public abstract partial class EventRecord : System.IDisposable 505public partial class ProviderMetadata : System.IDisposable
System.Diagnostics.PerformanceCounter (3)
artifacts\obj\System.Diagnostics.PerformanceCounter\Debug\net10.0\System.Diagnostics.PerformanceCounter.notsupported.cs (3)
219public partial class CounterSet : System.IDisposable 229public sealed partial class CounterSetInstance : System.IDisposable 236public sealed partial class CounterSetInstanceCounterDataSet : System.IDisposable
System.Diagnostics.Process (6)
System\Diagnostics\AsyncStreamReader.cs (1)
23internal sealed class AsyncStreamReader : IDisposable
System\Diagnostics\Process.Linux.cs (1)
16public partial class Process : IDisposable
System\Diagnostics\Process.NonUap.cs (1)
10public partial class Process : IDisposable
System\Diagnostics\Process.Unix.cs (1)
17public partial class Process : IDisposable
System\Diagnostics\ProcessWaitState.Unix.cs (2)
44internal sealed class ProcessWaitState : IDisposable 53internal sealed class Holder : IDisposable
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
13internal sealed class StackTraceSymbols : IDisposable
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListener.cs (1)
18public abstract class TraceListener : MarshalByRefObject, IDisposable
System.DirectoryServices (12)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (12)
472public partial class SearchResultCollection : System.MarshalByRefObject, System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable 524public partial class ActiveDirectoryInterSiteTransport : System.IDisposable 588public abstract partial class ActiveDirectoryPartition : System.IDisposable 652public partial class ActiveDirectorySchemaClass : System.IDisposable 696public partial class ActiveDirectorySchemaProperty : System.IDisposable 764public partial class ActiveDirectorySite : System.IDisposable 808public partial class ActiveDirectorySiteLink : System.IDisposable 831public partial class ActiveDirectorySiteLinkBridge : System.IDisposable 881public partial class ActiveDirectorySubnet : System.IDisposable 1090public abstract partial class DirectoryServer : System.IDisposable 1254public partial class Forest : System.IDisposable 1518public partial class ReplicationConnection : System.IDisposable
System.DirectoryServices.AccountManagement (4)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (4)
184public abstract partial class Principal : System.IDisposable 257public partial class PrincipalContext : System.IDisposable 315public partial class PrincipalSearcher : System.IDisposable 327public partial class PrincipalSearchResult<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable, System.IDisposable
System.DirectoryServices.Protocols (1)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (1)
320public partial class LdapConnection : System.DirectoryServices.Protocols.DirectoryConnection, System.IDisposable
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
39public class GraphicsTest : IDisposable 353private class BitmapAndGraphics : IDisposable
System.Formats.Tar (3)
System\Formats\Tar\TarReader.cs (1)
16public sealed class TarReader : IDisposable, IAsyncDisposable
System\Formats\Tar\TarWriter.cs (1)
15public sealed partial class TarWriter : IDisposable, IAsyncDisposable
System\Formats\Tar\TarWriter.Unix.cs (1)
13public sealed partial class TarWriter : IDisposable
System.IO.Compression (4)
System\IO\Compression\DeflateZLib\Deflater.cs (1)
16internal sealed class Deflater : IDisposable
System\IO\Compression\DeflateZLib\Inflater.cs (1)
15internal sealed class Inflater : IDisposable
System\IO\Compression\ZipArchive.Async.cs (1)
12public partial class ZipArchive : IDisposable, IAsyncDisposable
System\IO\Compression\ZipArchive.cs (1)
16public partial class ZipArchive : IDisposable, IAsyncDisposable
System.IO.Compression.Brotli (2)
System\IO\Compression\dec\BrotliDecoder.cs (1)
12public struct BrotliDecoder : IDisposable
System\IO\Compression\enc\BrotliEncoder.cs (1)
12public partial struct BrotliEncoder : IDisposable
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
12public sealed partial class IsolatedStorageFile : IsolatedStorage, IDisposable
System\IO\IsolatedStorage\IsolatedStorageFile.NonMobile.cs (1)
8public sealed partial class IsolatedStorageFile : IsolatedStorage, IDisposable
System.IO.MemoryMappedFiles (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
10public partial class MemoryMappedFile : IDisposable
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
9internal sealed partial class MemoryMappedView : IDisposable
System.IO.Packaging (2)
System\IO\Packaging\Package.cs (1)
18public abstract class Package : IDisposable
System\IO\Packaging\PackageProperties.cs (1)
32public abstract class PackageProperties : IDisposable
System.Linq.Parallel (2)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (1)
23internal sealed class AsynchronousChannel<T> : IDisposable
System\Linq\Parallel\Utils\Sorting.cs (1)
35internal sealed class SortHelper<TInputOutput, TKey> : SortHelper<TInputOutput>, IDisposable
System.Management (2)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (2)
332public partial class ManagementObjectCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable 344public partial class ManagementObjectEnumerator : System.Collections.IEnumerator, System.IDisposable
System.Memory (1)
System\Buffers\MemoryPool.cs (1)
9public abstract class MemoryPool<T> : IDisposable
System.Net.Http (19)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
17internal sealed class QPackDecoder : IDisposable
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
23internal struct MultiArrayBuffer : IDisposable
System\Net\Http\HttpContent.cs (1)
16public abstract class HttpContent : IDisposable
System\Net\Http\HttpMessageHandler.cs (1)
12public abstract class HttpMessageHandler : IDisposable
System\Net\Http\HttpMessageInvoker.cs (1)
10public class HttpMessageInvoker : IDisposable
System\Net\Http\HttpRequestMessage.cs (1)
13public class HttpRequestMessage : IDisposable
System\Net\Http\HttpResponseMessage.cs (1)
11public class HttpResponseMessage : IDisposable
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (1)
10internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
10internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
24internal sealed partial class HttpConnectionPool : IDisposable
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
11internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (1)
10internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
23internal sealed class Http3RequestStream : IHttpStreamHeadersHandler, IAsyncDisposable, IDisposable
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
18internal abstract class HttpConnectionBase : IDisposable, IHttpTrace
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
32internal sealed class HttpConnectionPoolManager : IDisposable 203private sealed class NetworkChangeCleanup : IDisposable
System\Net\Http\SocketsHttpHandler\HttpContentWriteStream.cs (1)
11internal sealed partial class HttpConnection : IDisposable
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
12internal sealed partial class HttpConnection : IDisposable
System.Net.HttpListener (3)
System\Net\HttpListener.cs (1)
14public sealed unsafe partial class HttpListener : IDisposable
System\Net\HttpListenerResponse.cs (1)
11public sealed unsafe partial class HttpListenerResponse : IDisposable
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
38public sealed partial class HttpListenerResponse : IDisposable
System.Net.Mail (7)
System\Net\Mail\AlternateViewCollection.cs (1)
8public sealed class AlternateViewCollection : Collection<AlternateView>, IDisposable
System\Net\Mail\Attachment.cs (1)
11public abstract class AttachmentBase : IDisposable
System\Net\Mail\AttachmentCollection.cs (1)
12public sealed class AttachmentCollection : Collection<Attachment>, IDisposable
System\Net\Mail\LinkedResourceCollection.cs (1)
9public sealed class LinkedResourceCollection : Collection<LinkedResource>, IDisposable
System\Net\Mail\MailMessage.cs (1)
23public class MailMessage : IDisposable
System\Net\Mail\SmtpClient.cs (1)
36public class SmtpClient : IDisposable
System\Net\Mime\MimePart.cs (1)
17internal sealed class MimePart : MimeBasePart, IDisposable
System.Net.Quic (5)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
23internal struct MultiArrayBuffer : IDisposable
src\libraries\Common\src\System\Net\StreamBuffer.cs (1)
13internal sealed class StreamBuffer : IDisposable
System\Net\Quic\Internal\MsQuicBuffers.cs (1)
16internal unsafe struct MsQuicBuffers : IDisposable
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
13internal sealed class MsQuicTlsSecret : IDisposable
System.Net.Requests (3)
System\Net\FtpWebResponse.cs (1)
11public class FtpWebResponse : WebResponse, IDisposable
System\Net\TimerThread.cs (1)
43internal abstract class Timer : IDisposable
System\Net\WebResponse.cs (1)
16public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable
System.Net.Security (6)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
14internal struct GssBuffer : IDisposable
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\libraries\Common\src\System\Net\Security\RC4.cs (1)
38internal sealed class RC4 : IDisposable
src\libraries\Common\src\System\Net\Security\SafeCredentialReference.cs (1)
11internal sealed class SafeCredentialReference : CriticalFinalizerObject, IDisposable
System\Net\NegotiateAuthenticationPal.cs (1)
11internal abstract partial class NegotiateAuthenticationPal : IDisposable
System\Net\Security\NegotiateAuthentication.cs (1)
17public sealed class NegotiateAuthentication : IDisposable
System.Net.ServerSentEvents (2)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
System\Net\ServerSentEvents\PooledByteBufferWriter.cs (1)
9internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
System.Net.Sockets (7)
System\Net\Sockets\Socket.cs (1)
21public partial class Socket : IDisposable
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
710private readonly struct LockToken : IDisposable
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
14public partial class SocketAsyncEventArgs : EventArgs, IDisposable
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
11public partial class SocketAsyncEventArgs : EventArgs, IDisposable
System\Net\Sockets\TCPClient.cs (1)
15public class TcpClient : IDisposable
System\Net\Sockets\TCPListener.cs (1)
14public class TcpListener : IDisposable
System\Net\Sockets\UDPClient.cs (1)
14public partial class UdpClient : IDisposable
System.Net.WebSockets (3)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
13internal sealed class WebSocketDeflater : IDisposable
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
13internal sealed class WebSocketInflater : IDisposable
System\Net\WebSockets\WebSocket.cs (1)
13public abstract class WebSocket : IDisposable
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2631internal ref struct RentedBuffer<T> : IDisposable
System.ObjectModel (1)
System\Collections\ObjectModel\ObservableCollection.cs (1)
298private sealed class SimpleMonitor : IDisposable
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (2)
70internal abstract class SZGenericArrayEnumeratorBase : IDisposable 133internal abstract class GenericEmptyEnumeratorBase : IDisposable, IEnumerator
src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryHandle.cs (1)
11public unsafe struct MemoryHandle : IDisposable
src\libraries\System.Private.CoreLib\src\System\CharEnumerator.cs (1)
10public sealed class CharEnumerator : IEnumerator, IEnumerator<char>, IDisposable, ICloneable
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
18public abstract class DiagnosticCounter : IDisposable
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
49internal class EventProvider : IDisposable
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
225public partial class EventSource : IDisposable 4106public abstract class EventListener : IDisposable
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
15public class BinaryReader : IDisposable
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
16public class BinaryWriter : IDisposable, IAsyncDisposable
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
14public abstract partial class Stream : MarshalByRefObject, IDisposable, IAsyncDisposable 1083private sealed class SyncStream : Stream, IDisposable
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (1)
20public abstract partial class TextReader : MarshalByRefObject, IDisposable
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
21public abstract partial class TextWriter : MarshalByRefObject, IDisposable, IAsyncDisposable 769internal sealed class SyncTextWriter : TextWriter, IDisposable
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (1)
16public class UnmanagedMemoryAccessor : IDisposable
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
106private sealed class ForceAllowDynamicCodeScope : IDisposable
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
19public class ResourceSet : IDisposable, IEnumerable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CriticalHandle.cs (1)
119public abstract partial class CriticalHandle : CriticalFinalizerObject, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
23public struct GCHandle<T> : IEquatable<GCHandle<T>>, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
13public struct ComVariant : IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (1)
24public struct PinnedGCHandle<T> : IEquatable<PinnedGCHandle<T>>, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.cs (1)
10public sealed partial class PosixSignalRegistration : IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
15public abstract partial class SafeHandle : CriticalFinalizerObject, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (1)
23public struct WeakGCHandle<T> : IEquatable<WeakGCHandle<T>>, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
579public struct ContextualReflectionScope : IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
70public sealed partial class MemoryFailPoint : CriticalFinalizerObject, IDisposable
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\DeserializationToken.cs (1)
7public readonly struct DeserializationToken : IDisposable
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
10public sealed partial class SecureString : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenRegistration.cs (1)
15public readonly struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable, IAsyncDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
26public class CancellationTokenSource : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (2)
20public sealed class ExecutionContext : IDisposable, ISerializable 550public struct AsyncFlowControl : IEquatable<AsyncFlowControl>, IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
14internal sealed partial class LowLevelLifoSemaphore : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLock.cs (1)
14internal sealed class LowLevelLock : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
34public class ManualResetEventSlim : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
18public sealed class PeriodicTimer : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\PreAllocatedOverlapped.Portable.cs (1)
10public sealed partial class PreAllocatedOverlapped : IDisposable, IDeferredDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\PreAllocatedOverlapped.Unix.cs (1)
12public sealed partial class PreAllocatedOverlapped : IDisposable, IDeferredDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
53public class ReaderWriterLockSlim : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
27public class SemaphoreSlim : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
114public class Task : IAsyncResult, IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
28public class ThreadLocal<T> : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Portable.cs (1)
17public sealed partial class ThreadPoolBoundHandle : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (1)
17public sealed partial class ThreadPoolBoundHandle : IDisposable
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
825public sealed class Timer : MarshalByRefObject, IDisposable, IAsyncDisposable, ITimer
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
11public abstract partial class WaitHandle : MarshalByRefObject, IDisposable
src\System\Runtime\DependentHandle.cs (1)
30public partial struct DependentHandle : IDisposable
src\System\Threading\LowLevelLifoSemaphore.Unix.cs (1)
14internal sealed partial class LowLevelLifoSemaphore : IDisposable
System.Private.Windows.Core (22)
System\DisposableBase.cs (1)
9internal abstract class DisposableBase : IDisposable
System\Private\Windows\Ole\DragDropFormat.cs (1)
14internal class DragDropFormat : IDisposable
Windows\Win32\Foundation\BSTR.cs (1)
9internal readonly unsafe partial struct BSTR : IDisposable
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (1)
18internal class BeginPaintScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (1)
17internal class CreateBitmapScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
19internal class CreateBrushScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (1)
17internal class CreateDcScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
18internal class CreatePenScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\HBITMAP.cs (1)
6internal readonly partial struct HBITMAP : IDisposable
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
10internal sealed class HdcHandle : IDisposable, IHandle<HDC>
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
16internal class ObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
18internal unsafe class RegionScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (1)
17internal class SelectObjectScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (1)
16internal class SelectPaletteScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (1)
17internal class SetBkModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (1)
17internal class SetMapModeScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (1)
17internal class SetRop2Scope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (1)
17internal class SetTextAlignmentScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (1)
17internal class SetTextColorScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\System\Com\AgileComPointer.cs (1)
27IDisposable
Windows\Win32\System\Variant\VARIANT.cs (1)
13internal unsafe partial struct VARIANT : IDisposable
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (1)
6internal unsafe partial struct ICONINFO : IDisposable
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (1)
10public abstract class BinaryFormatUtilitesTestsBase : IDisposable
System\Private\Windows\Ole\ClipboardBinaryFormatterFullCompatScope.cs (1)
6public readonly ref struct ClipboardBinaryFormatterFullCompatScope : IDisposable
System\Private\Windows\Ole\DataObjectProxy.cs (1)
15internal unsafe class DataObjectProxy : IDataObject.Interface, IDisposable
System.Private.Windows.Core.TestUtilities (4)
FileCleanupTestBase.cs (1)
9public abstract class FileCleanupTestBase : IDisposable
NoAssertContext.cs (1)
11public sealed class NoAssertContext : IDisposable
TempFile.cs (1)
18public sealed class TempFile : IDisposable
ThreadCultureChange.cs (1)
11public sealed class ThreadCultureChange : IDisposable
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
24internal class DeviceContextHdcScope : DisposalTracking.Tracker, IDisposable
System.Private.Xml (5)
System\Xml\Core\XmlReader.cs (1)
15public abstract partial class XmlReader : IDisposable
System\Xml\Core\XmlReaderAsync.cs (1)
15public abstract partial class XmlReader : IDisposable
System\Xml\Core\XmlWriter.cs (1)
40public abstract partial class XmlWriter : IDisposable
System\Xml\Core\XmlWriterAsync.cs (1)
13public abstract partial class XmlWriter : IDisposable, IAsyncDisposable
System\Xml\Dom\XmlNodeList.cs (1)
9public abstract class XmlNodeList : IEnumerable, IDisposable
System.Reflection.Metadata (6)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
13internal abstract class AbstractMemoryBlock : IDisposable
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (1)
10internal abstract class MemoryBlockProvider : IDisposable
System\Reflection\Internal\Utilities\CriticalDisposableObject.cs (1)
7internal abstract class CriticalDisposableObject : CriticalFinalizerObject, IDisposable
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
22public sealed class MetadataReaderProvider : IDisposable
System\Reflection\PortableExecutable\PEReader.cs (1)
24public sealed partial class PEReader : IDisposable
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
22public sealed partial class PEReader : IDisposable
System.Reflection.MetadataLoadContext (1)
System\Reflection\MetadataLoadContext.Apis.cs (1)
97public sealed partial class MetadataLoadContext : IDisposable
System.Runtime.Caching (6)
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
16internal sealed class CacheMemoryMonitor : MemoryMonitor, IDisposable
System\Runtime\Caching\ChangeMonitor.cs (1)
80public abstract class ChangeMonitor : IDisposable
System\Runtime\Caching\MemoryCache.cs (1)
20public class MemoryCache : ObjectCache, IEnumerable, IDisposable
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
17internal sealed class MemoryCacheStatistics : IDisposable
System\Runtime\Caching\MemoryCacheStore.cs (1)
15internal sealed class MemoryCacheStore : IDisposable
System\Runtime\Caching\SRef.cs (1)
28internal sealed class GCHandleRef<T> : IDisposable
System.Runtime.InteropServices.JavaScript (1)
artifacts\obj\System.Runtime.InteropServices.JavaScript\Debug\net10.0\System.Runtime.InteropServices.JavaScript.notsupported.cs (1)
112public class JSObject : IDisposable
System.Security.Cryptography (36)
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
13public sealed partial class AesGcm : IDisposable
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (1)
9internal sealed partial class ECOpenSsl : IDisposable
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
29public abstract partial class MLDsa : IDisposable
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
30public abstract class MLKem : IDisposable
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
23public abstract partial class SlhDsa : IDisposable
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
28public sealed partial class SP800108HmacCounterKdf : IDisposable
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationBase.cs (1)
6internal abstract class SP800108HmacCounterKdfImplementationBase : IDisposable
System\Security\Cryptography\AesCcm.cs (1)
12public sealed partial class AesCcm : IDisposable
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
9public abstract class AsymmetricAlgorithm : IDisposable
System\Security\Cryptography\BasicSymmetricCipher.cs (1)
21internal abstract class BasicSymmetricCipher : IDisposable
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
14public sealed partial class ChaCha20Poly1305 : IDisposable
System\Security\Cryptography\Cng.NotSupported.cs (1)
101public sealed partial class CngKey : System.IDisposable
System\Security\Cryptography\CryptoStream.cs (1)
14public class CryptoStream : Stream, IDisposable
System\Security\Cryptography\DeriveBytes.cs (1)
6public abstract class DeriveBytes : IDisposable
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
9public abstract partial class ECDiffieHellmanPublicKey : IDisposable
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (1)
11public abstract partial class ECDiffieHellmanPublicKey : IDisposable
System\Security\Cryptography\HashAlgorithm.cs (1)
12public abstract class HashAlgorithm : IDisposable, ICryptoTransform
System\Security\Cryptography\HashProvider.cs (1)
12internal abstract class HashProvider : IDisposable
System\Security\Cryptography\IncrementalHash.cs (1)
13public sealed class IncrementalHash : IDisposable
System\Security\Cryptography\Kmac128.cs (1)
20public sealed class Kmac128 : IDisposable
System\Security\Cryptography\Kmac256.cs (1)
20public sealed class Kmac256 : IDisposable
System\Security\Cryptography\KmacXof128.cs (1)
20public sealed class KmacXof128 : IDisposable
System\Security\Cryptography\KmacXof256.cs (1)
20public sealed class KmacXof256 : IDisposable
System\Security\Cryptography\PinAndClear.cs (1)
8internal struct PinAndClear : IDisposable
System\Security\Cryptography\RandomNumberGenerator.cs (1)
12public abstract class RandomNumberGenerator : IDisposable
System\Security\Cryptography\Shake128.cs (1)
20public sealed partial class Shake128 : IDisposable
System\Security\Cryptography\Shake128.NonWindows.cs (1)
6public sealed partial class Shake128 : IDisposable
System\Security\Cryptography\Shake256.cs (1)
20public sealed partial class Shake256 : IDisposable
System\Security\Cryptography\Shake256.NonWindows.cs (1)
6public sealed partial class Shake256 : IDisposable
System\Security\Cryptography\SP800108HmacCounterKdf.OpenSsl.cs (1)
6public sealed partial class SP800108HmacCounterKdf : IDisposable
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
10public abstract class SymmetricAlgorithm : IDisposable
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
1322private sealed class WorkingChain : IDisposable
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
16public partial class X509Certificate : IDisposable, IDeserializationCallback, ISerializable
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (1)
622internal abstract class Pkcs12Key : IDisposable
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
11public class X509Chain : IDisposable
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
8public sealed class X509Store : IDisposable
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\DecryptorPal.cs (1)
13internal abstract class DecryptorPal : IDisposable
System.Security.Permissions (1)
System\Security\SecurityContext.cs (1)
11public sealed partial class SecurityContext : System.IDisposable
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
234public partial class WindowsIdentity : System.Security.Claims.ClaimsIdentity, System.IDisposable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
246internal unsafe class PipeSharedMemory : IDisposable
System.Speech (4)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (4)
252public partial class RecognizerInfo : System.IDisposable 330public partial class SpeechRecognitionEngine : System.IDisposable 402public partial class SpeechRecognizer : System.IDisposable 805public sealed partial class SpeechSynthesizer : System.IDisposable
System.Text.Json (7)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
22internal struct ArrayBuffer : IDisposable
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13internal sealed class PooledByteBufferWriter : PipeWriter, IDisposable
System\Text\Json\Document\JsonDocument.cs (1)
22public sealed partial class JsonDocument : IDisposable
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
86private struct MetadataDb : IDisposable
System\Text\Json\Document\JsonDocument.StackRowStack.cs (1)
16private struct StackRowStack : IDisposable
System\Text\Json\Serialization\ReadBufferState.cs (1)
14internal struct ReadBufferState : IDisposable
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
33public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
365private struct RentedLocalBuilder : IDisposable
System.Threading (3)
System\Threading\Barrier.cs (1)
95public class Barrier : IDisposable
System\Threading\CountdownEvent.cs (1)
26public class CountdownEvent : IDisposable
System\Threading\HostExecutionContext.cs (1)
6public class HostExecutionContext : IDisposable
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
463public struct Disposer : IDisposable
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
501public struct Disposer : IDisposable
System\Threading\RateLimiting\PartitionedRateLimiter.T.cs (1)
12public abstract class PartitionedRateLimiter<TResource> : IAsyncDisposable, IDisposable
System\Threading\RateLimiting\RateLimiter.cs (1)
11public abstract class RateLimiter : IAsyncDisposable, IDisposable
System\Threading\RateLimiting\RateLimitLease.cs (1)
13public abstract class RateLimitLease : IDisposable
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
514public struct Disposer : IDisposable
System\Threading\RateLimiting\TimerAwaitable.cs (1)
13internal sealed class TimerAwaitable : IDisposable, ICriticalNotifyCompletion
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
515public struct Disposer : IDisposable
System.Threading.Tasks.Dataflow (3)
Internal\ActionOnDispose.cs (3)
54private sealed class NopDisposable : IDisposable 61private sealed class Disposable<T1, T2> : IDisposable 99private sealed class Disposable<T1, T2, T3> : IDisposable
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.ForEachAsync.cs (2)
686private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 730private sealed class ForAsyncState<T> : ForEachAsyncState<T>, IDisposable
System.Transactions.Local (4)
System\Transactions\InternalTransaction.cs (2)
16internal sealed class InternalTransaction : IDisposable 398internal sealed class FinalizedObject : IDisposable
System\Transactions\Transaction.cs (1)
55public class Transaction : IDisposable, ISerializable
System\Transactions\TransactionScope.cs (1)
37public sealed class TransactionScope : IDisposable
System.Windows.Forms (33)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
28IDisposable,
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
22public class State : ISerializable, IDisposable
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
105private sealed unsafe partial class ActiveXImpl : MarshalByRefObject, IWindowTarget, IDisposable
System\Windows\Forms\ApplicationContext.cs (1)
15public class ApplicationContext : IDisposable
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
13internal sealed class FontHandleWrapper : IDisposable
System\Windows\Forms\Control.MetafileDCWrapper.cs (1)
21private class MetafileDCWrapper : IDisposable
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
12public class DataGridViewBand : DataGridViewElement, ICloneable, IDisposable
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
17public abstract partial class DataGridViewCell : DataGridViewElement, ICloneable, IDisposable, IKeyboardToolTip
System\Windows\Forms\Controls\ImageList\ImageList.NativeImageList.cs (1)
11internal sealed class NativeImageList : IDisposable, IHandle<HIMAGELIST>
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (1)
12public sealed class ImageListStreamer : ISerializable, IDisposable
System\Windows\Forms\Controls\ListView\LisstView.DisposingContext.cs (1)
8private class DisposingContext : IDisposable
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryCollection.cs (1)
6internal sealed class GridEntryCollection : NonNullCollection<GridEntry>, IDisposable
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (1)
8internal class CachedItemHdcInfo : IDisposable, IHandle<HDC>
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
13private partial class FeedbackRectangle : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
9public sealed unsafe class HtmlHistory : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
17internal abstract class HtmlShim : IDisposable
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (1)
15internal sealed class HtmlShimManager : IDisposable
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
30IDisposable
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
30public class TaskDialogIcon : IDisposable
System\Windows\Forms\Input\Cursor.cs (1)
20public sealed class Cursor : IDisposable, ISerializable, IHandle<HICON>, IHandle<HANDLE>, IHandle<HCURSOR>
System\Windows\Forms\Input\MouseHoverTimer.cs (1)
6internal class MouseHoverTimer : IDisposable
System\Windows\Forms\Layout\LayoutTransaction.cs (1)
24internal sealed class LayoutTransaction : IDisposable
System\Windows\Forms\Layout\NullLayoutTransaction.cs (1)
6internal struct NullLayoutTransaction : IDisposable
System\Windows\Forms\Rendering\DCMapping.cs (1)
24internal readonly struct DCMapping : IDisposable
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
14public class DrawItemEventArgs : EventArgs, IDisposable, IDeviceContext, IGraphicsHdcProvider, IHdcContext
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
10internal struct Data : IDisposable
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (1)
15internal class ScreenGraphicsScope : DisposalTracking.Tracker, IDisposable
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
18public partial class PaintEventArgs : EventArgs, IDisposable, IDeviceContext, IGraphicsHdcProvider, IHdcContext
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
25internal sealed partial class ScreenDcCache : IDisposable
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (1)
12internal class ScreenDcScope : DisposalTracking.Tracker, IDisposable
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
872private class ThemeHandle : IDisposable, IHandle<HTHEME>
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (1)
11public sealed class WindowsFormsSynchronizationContext : SynchronizationContext, IDisposable
System\Windows\Forms\WindowSubclassHandler.cs (1)
24internal class WindowSubclassHandler : IDisposable
System.Windows.Forms.Design (20)
System\ComponentModel\Design\DesignerActionService.cs (1)
15public class DesignerActionService : IDisposable
System\ComponentModel\Design\DesignerActionUI.cs (1)
22internal partial class DesignerActionUI : IDisposable
System\ComponentModel\Design\DesignerActionUIService.cs (1)
8public sealed class DesignerActionUIService : IDisposable
System\ComponentModel\Design\DesignSurface.cs (1)
13public class DesignSurface : IDisposable, IServiceProvider
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
10public class DesignSurfaceManager : IServiceProvider, IDisposable
System\ComponentModel\Design\InheritanceService.cs (1)
14public class InheritanceService : IInheritanceService, IDisposable
System\ComponentModel\Design\MenuCommandService.cs (1)
16public class MenuCommandService : IMenuCommandService, IDisposable
System\ComponentModel\Design\ReferenceService.cs (1)
9internal sealed class ReferenceService : IReferenceService, IDisposable
System\ComponentModel\Design\SelectionService.cs (1)
18internal sealed class SelectionService : ISelectionService, IDisposable
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
16public sealed partial class CodeDomLocalizationProvider : IDisposable, IDesignerSerializationProvider
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
11internal sealed partial class ComponentCache : IDisposable
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
954private sealed class SerializationSession : IDisposable
System\ComponentModel\Design\UndoEngine.cs (1)
18public abstract partial class UndoEngine : IDisposable
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
30public sealed partial class BehaviorService : IDisposable
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
16internal sealed class SelectionManager : IDisposable
System\Windows\Forms\Design\CommandSet.cs (1)
24internal partial class CommandSet : IDisposable
System\Windows\Forms\Design\ControlDesigner.DesignerWindowTarget.cs (1)
8private class DesignerWindowTarget : IWindowTarget, IDesignerTarget, IDisposable
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
14internal partial class DesignBindingValueUIHandler : IDisposable
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
15internal sealed class ToolStripAdornerWindowService : IDisposable
System\Windows\Forms\Design\ToolStripInSituService.cs (1)
15internal class ToolStripInSituService : ISupportInSituService, IDisposable
System.Windows.Forms.Design.Tests (50)
ControlDesignerTests.cs (1)
12public class ControlDesignerTests : IDisposable
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (1)
10public sealed class ContextMenuStripActionListTests : IDisposable
System\Windows\Forms\Design\ControlCodeDomSerializerTests.cs (1)
12public class ControlCodeDomSerializerTests : IDisposable
System\Windows\Forms\Design\ControlCommandSetTests.cs (1)
11public class ControlCommandSetTests : IDisposable
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
9public class ControlDesignerDesignerControlCollectionTests : IDisposable 168private class MockSite : ISite, IDisposable
System\Windows\Forms\Design\ControlDesigner.TransparentBehaviorTests.cs (1)
8public class ControlDesignerTransparentBehaviorTests : IDisposable
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (1)
10public class ControlDesignerAccessibleObjectTests : IDisposable
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
6public class CustomMenuItemCollectionTests : IDisposable
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
13public sealed class DataGridViewAddColumnDialogTests : IDisposable
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
10public class DataGridViewColumnTypePickerTests : IDisposable
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (1)
10public class DataGridViewDesignerTests : IDisposable
System\Windows\Forms\Design\DataSourceDescriptorCollectionTests.cs (1)
104private class MockDataSourceDescriptor : DataSourceDescriptor, IDisposable
System\Windows\Forms\Design\DesignerUtilsTests.cs (1)
12public class DesignerUtilsTests :IDisposable
System\Windows\Forms\Design\EditorServiceContextTests.cs (1)
11public class EditorServiceContextTests : IDisposable
System\Windows\Forms\Design\FlowLayoutPanelDesignerTests.cs (1)
12public class FlowLayoutPanelDesignerTests : IDisposable
System\Windows\Forms\Design\FormatControlTests.cs (1)
5public class FormatControlTests : IDisposable
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
9public class FormatStringDialogTests : IDisposable
System\Windows\Forms\Design\ImageListActionListTests.cs (1)
9public sealed class ImageListActionListTests : IDisposable
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
8public class ImageListDesignerOriginalImageCollectionTests : IDisposable
System\Windows\Forms\Design\InheritanceUITests.cs (1)
13public sealed class InheritanceUITests : IDisposable
System\Windows\Forms\Design\ItemTypeToolStripMenuItemTests.cs (1)
9public class ItemTypeToolStripMenuItemTests : IDisposable
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUITests.cs (1)
9public class LinkAreaEditorLinkAreaUITests : IDisposable
System\Windows\Forms\Design\ListControlUnboundActionListTests.cs (1)
10public sealed class ListControlUnboundActionListTests : IDisposable
System\Windows\Forms\Design\ListViewActionListTests.cs (1)
8public sealed class ListViewActionListTests : IDisposable
System\Windows\Forms\Design\ListViewDesignerTests.cs (1)
9public class ListViewDesignerTests : IDisposable
System\Windows\Forms\Design\MaskDescriptorTests.cs (1)
8public class MaskDescriptorTests : IDisposable
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (1)
9public sealed class MaskDesignerDialogTests : IDisposable
System\Windows\Forms\Design\MaskedTextBoxDesignerActionListTests.cs (1)
10public class MaskedTextBoxDesignerActionListTests : IDisposable
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (1)
11public sealed class MaskedTextBoxDesignerTests : IDisposable
System\Windows\Forms\Design\NotifyIconDesignerActionListTests.cs (1)
8public sealed class NotifyIconActionListTests : IDisposable
System\Windows\Forms\Design\OleDragDropHandlerTests.cs (1)
11public class OleDragDropHandlerTests : IDisposable
System\Windows\Forms\Design\ParentControlDesignerTests.cs (1)
13public class ParentControlDesignerTests : IDisposable
System\Windows\Forms\Design\RichTextBoxDesignerTests.cs (1)
6public sealed class RichTextBoxDesignerTests : IDisposable
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (1)
12public class SelectionUIHandlerTests : IDisposable
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (1)
10public class StandardCommandToolStripMenuItemTests : IDisposable
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
12public class TableLayoutPanelDesignerTests : IDisposable
System\Windows\Forms\Design\TabOrderTests.cs (1)
12public class TabOrderTests : IDisposable
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
11public class TextBoxBaseDesignerTests : IDisposable
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
10public sealed class ToolStripActionListTests : IDisposable
System\Windows\Forms\Design\ToolStripAdornerWindowServiceTests.cs (1)
11public class ToolStripAdornerWindowServiceTests : IDisposable
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (1)
10public sealed class ToolStripContainerActionListTests : IDisposable
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
11public class ToolStripContainerDesignerTests : IDisposable
System\Windows\Forms\Design\ToolStripContentPanelDesignerTests.cs (1)
8public sealed class ToolStripContentPanelDesignerTests : IDisposable
System\Windows\Forms\Design\ToolStripCustomTypeDescriptorTests.cs (1)
8public class ToolStripCustomTypeDescriptorTests : IDisposable
System\Windows\Forms\Design\ToolStripDesignerUtilsTests.cs (1)
11public class ToolStripDesignerUtilsTests : IDisposable
System\Windows\Forms\Design\ToolStripEditorManagerTests.cs (1)
14public sealed class ToolStripEditorManagerTests : IDisposable
System\Windows\Forms\Design\ToolStripInSituServiceTests.cs (1)
10public sealed class ToolStripInSituServiceTests : IDisposable
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (1)
11public class ToolStripPanelDesignerTests : IDisposable
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
11public class UpDownBaseDesignerTests : IDisposable
System.Windows.Forms.Primitives (8)
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (1)
10internal unsafe class NativeAdapter : Interface, IDisposable
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
15private class DpiAwarenessScope : IDisposable
System\Windows\Forms\ObjectCache.cs (1)
9internal abstract class ObjectCache<T> : IDisposable where T : class
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
12public abstract class CacheEntry : IDisposable
System\Windows\Forms\RefCountedCache.cs (1)
22internal abstract partial class RefCountedCache<TObject, TCacheEntryData, TKey> : IDisposable
System\Windows\Forms\RefCountedCache.Scope.cs (1)
12internal class Scope : DisposalTracking.Tracker, IDisposable
Windows\Win32\PInvoke.OpenThemeDataScope.cs (1)
18internal class OpenThemeDataScope : DisposalTracking.Tracker, IDisposable
Windows\Win32\System\Com\StandardDispatch.cs (1)
19internal abstract unsafe class StandardDispatch<T> : IDispatch.Interface, IDispatchEx.Interface, IDisposable
System.Windows.Forms.Primitives.Tests (2)
Interop\Mocks\MockCursor.cs (1)
10public class MockCursor : IDisposable
System\Windows\Forms\RefCacheTests.cs (1)
95public class DisposalCounter : IDisposable
System.Windows.Forms.Primitives.TestUtilities (3)
Metafiles\EmfScope.cs (1)
17IDisposable
Win32\Window.cs (1)
8internal class Window : IDisposable, IHandle<HWND>
Windows\Win32\System\Com\ComClassFactory.cs (1)
12internal unsafe class ComClassFactory : IDisposable
System.Windows.Forms.Tests (33)
LinkLabelTests.cs (1)
8public class LinkLabelTests : IDisposable
MaskedTextBoxTests.cs (1)
13public class MaskedTextBoxTests : IDisposable
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (1)
11public class ErrorProviderAccessibleObjectTests : IDisposable
System\Windows\Forms\AxSystemMonitorTests.cs (1)
11public class AxSystemMonitorTests : IDisposable
System\Windows\Forms\AxWebBrowserTests.cs (1)
12public class AxWebBrowserTests : IDisposable
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (1)
10public class CheckedListBox_CheckedIndexCollectionTests : IDisposable
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (1)
10public class CheckedListBox_CheckedItemCollectionTests : IDisposable
System\Windows\Forms\CursorTests.cs (1)
23public class CursorTestsFixture : IDisposable
System\Windows\Forms\DataGridViewButtonColumnTests.cs (1)
8public class DataGridViewButtonColumnTests : IDisposable
System\Windows\Forms\DataGridViewColumnConverterTests.cs (1)
9public class DataGridViewColumnConverterTests : IDisposable
System\Windows\Forms\DataGridViewComboBoxCell.ObjectCollectionTests.cs (1)
6public class DataGridViewComboBoxCell_ObjectCollectionTests : IDisposable
System\Windows\Forms\DataGridViewLinkColumnTests.cs (1)
8public class DataGridViewLinkColumnTests : IDisposable
System\Windows\Forms\DataGridViewSortCompareEventArgsTests.cs (1)
6public class DataGridViewSortCompareEventArgsTests : IDisposable
System\Windows\Forms\DataGridViewTests.cs (1)
13public partial class DataGridViewTests : IDisposable
System\Windows\Forms\DataGridViewTextBoxColumnTests.cs (1)
6public class DataGridViewTextBoxColumnTests : IDisposable
System\Windows\Forms\DateTimePickerTests.cs (1)
14public class DateTimePickerTests : IDisposable
System\Windows\Forms\DomainUpDownTests.cs (1)
12public class DomainUpDownTests : IDisposable
System\Windows\Forms\FocusableLabelTests.cs (1)
6public class FocusableLabelTests : IDisposable
System\Windows\Forms\LinkCollectionTests.cs (1)
11public class LinkLabel_LinkCollectionTests : IDisposable
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (1)
8public class ListBoxSelectedObjectCollectionTests : IDisposable
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
65public class TestPropertyTab : PropertyTab, IDisposable
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
8public class ToolStripComboBox_ToolStripComboBoxFlatComboAdapterTests : IDisposable
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
8public class ToolStripComboBoxTests : IDisposable
System\Windows\Forms\ToolStripLabelTests.cs (1)
8public class ToolStripLabelTests : IDisposable
System\Windows\Forms\ToolStripPanel.ToolStripPanelControlCollection.XYComparerTests.cs (1)
8public class ToolStripPanel_ToolStripPanelControlCollection_XYComparerTests : IDisposable
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (1)
8public class ToolStripPanel_ToolStripPanelRowCollectionTests : IDisposable
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
8public class ToolStripSplitButtonTests : IDisposable
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
8public class ToolStripSplitStackDragDropHandlerTests : IDisposable
System\Windows\Forms\ToolStripStatusLabelTests.cs (1)
9public class ToolStripStatusLabelTests : IDisposable
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
10public partial class ToolStripTextBoxTests : IDisposable
System\Windows\Forms\TrackBarRendererTests.cs (1)
9public class TrackBarRendererTests : IDisposable
System\Windows\Forms\UserConfigDisposableFixture.cs (1)
10public class UserConfigDisposableFixture : IDisposable
ToolStripContainerTests.cs (1)
11public class ToolStripContainerTests : IDisposable
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ControlTestBase.cs (1)
17public abstract class ControlTestBase : IAsyncLifetime, IDisposable
Infra\ScreenRecordService.cs (1)
14internal class ScreenRecordService : IDisposable
PropertyGridTests.cs (1)
14public class PropertyGridTests : IDisposable
System.Xaml (2)
System\Xaml\XamlReader.cs (1)
12public abstract class XamlReader: IDisposable
System\Xaml\XamlWriter.cs (1)
8public abstract class XamlWriter : IDisposable
Templates.Blazor.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
21public class AspNetProcess : IDisposable
src\ProjectTemplates\Shared\Project.cs (1)
18public class Project : IDisposable
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
15public class ProjectFactoryFixture : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Templates.Blazor.WebAssembly.Auth.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
21public class AspNetProcess : IDisposable
src\ProjectTemplates\Shared\Project.cs (1)
18public class Project : IDisposable
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
15public class ProjectFactoryFixture : IDisposable
src\Shared\E2ETesting\SauceConnectServer.cs (1)
23public class SauceConnectServer : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Templates.Blazor.WebAssembly.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
21public class AspNetProcess : IDisposable
src\ProjectTemplates\Shared\Project.cs (1)
18public class Project : IDisposable
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
15public class ProjectFactoryFixture : IDisposable
src\Shared\E2ETesting\SauceConnectServer.cs (1)
23public class SauceConnectServer : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Templates.Mvc.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
21public class AspNetProcess : IDisposable
src\ProjectTemplates\Shared\Project.cs (1)
18public class Project : IDisposable
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
15public class ProjectFactoryFixture : IDisposable
src\Shared\E2ETesting\SauceConnectServer.cs (1)
23public class SauceConnectServer : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Templates.Tests (5)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
21public class AspNetProcess : IDisposable
src\ProjectTemplates\Shared\Project.cs (1)
18public class Project : IDisposable
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
15public class ProjectFactoryFixture : IDisposable
src\Shared\E2ETesting\SauceConnectServer.cs (1)
23public class SauceConnectServer : IDisposable
src\Shared\Process\ProcessEx.cs (1)
19internal sealed class ProcessEx : IDisposable
Test.Utilities (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
TestProject.AppHost (1)
TestProgram.cs (1)
11public class TestProgram : IDisposable
Text.Analyzers (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyList<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
18internal sealed class PooledConcurrentDictionary<K, V> : ConcurrentDictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentSet.cs (1)
19internal sealed class PooledConcurrentSet<T> : ICollection<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
18internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
17internal sealed class PooledHashSet<T> : HashSet<T>, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
19internal sealed class PooledSortedSet<T> : SortedSet<T>, IDisposable
UIAutomationClient (1)
System\Windows\Automation\CacheRequest.cs (1)
540internal class CacheRequestActivation : IDisposable
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
10internal class ThemePart: IDisposable
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
14public sealed class CreateFrameworkTypes : IDisposable
vbc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
97internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
VBCSCompiler (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
97internal sealed class CompilerServerLogger : ICompilerServerLogger, IDisposable
VBCSCompiler.UnitTests (5)
BuildServerConnectionTests.cs (1)
18public sealed class BuildServerConnectionTests : IDisposable
BuildServerControllerTests.cs (1)
14public sealed class BuildServerControllerTests : IDisposable
NamedPipeClientConnectionHostTests.cs (1)
17public class NamedPipeClientConnectionHostTests : IDisposable
ServerUtil.cs (1)
58internal sealed class ServerData : IDisposable
VBCSCompilerServerTests.cs (1)
25public class VBCSCompilerServerTests : IDisposable
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
1465internal class AvalonAdapter : SWC.DockPanel, IDisposable, IKeyboardInputSite, IAvalonAdapter
System\Windows\Integration\WindowsFormsHost.cs (1)
455private class DummyNativeWindow : NativeWindow, IDisposable
xunit.assert (1)
Sdk\CollectionTracker.cs (1)
51 abstract class CollectionTracker : IDisposable
xunit.console (1)
common\AssemblyResolution\AssemblyHelper.cs (1)
16class AssemblyHelper : AssemblyLoadContext, IDisposable
1816 references to IDisposable
Aspire.Cli.Tests (1)
Utils\TemporaryRepo.cs (1)
9internal sealed class TemporaryWorkspace(ITestOutputHelper outputHelper, DirectoryInfo repoDirectory) : IDisposable
Aspire.Dashboard (15)
Components\Controls\Chart\ChartContainer.razor.cs (1)
21private IDisposable? _themeChangedSubscription;
Components\Dialogs\SettingsDialog.razor.cs (1)
20private IDisposable? _themeChangedSubscription;
Components\Layout\MainLayout.razor.cs (2)
21private IDisposable? _themeChangedSubscription; 22private IDisposable? _locationChangingRegistration;
Components\Pages\ConsoleLogs.razor.cs (1)
121private IDisposable? _consoleLogsFiltersChangedSubscription;
Components\Pages\TraceDetail.razor.cs (1)
25private readonly List<IDisposable> _peerChangesSubscriptions = new();
Model\BrowserLinkOutgoingPeerResolver.cs (1)
10public IDisposable OnPeerChanges(Func<Task> callback)
Model\ConsoleLogsManager.cs (1)
54public IDisposable OnFiltersChanged(Func<Task> callback)
Model\IOutgoingPeerResolver.cs (1)
9IDisposable OnPeerChanges(Func<Task> callback);
Model\ModelSubscription.cs (1)
6public sealed class ModelSubscription(Func<Task> callback, Action<ModelSubscription> onDispose) : IDisposable
Model\ResourceOutgoingPeerResolver.cs (1)
171public IDisposable OnPeerChanges(Func<Task> callback)
Model\ThemeManager.cs (1)
114public IDisposable OnThemeChanged(Func<Task> callback)
Otlp\Storage\TelemetryRepository.cs (2)
53private readonly List<IDisposable> _peerResolverSubscriptions = new(); 1327foreach (var subscription in _peerResolverSubscriptions)
ShortcutManager.cs (1)
10public sealed class ShortcutManager(ILoggerFactory loggerFactory) : IDisposable
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Dashboard.Tests (7)
Integration\OtlpGrpcServiceTests.cs (1)
200using var monitorRegistration = app.DashboardOptionsMonitor.OnChange((o, n) =>
OtlpApiKeyAuthenticationHandlerTests.cs (2)
112public IDisposable OnChange(Action<T, string> listener) => throw new NotImplementedException(); 114public IDisposable OnChange(Action<T> listener) => throw new NotImplementedException();
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
24public IDisposable OnPeerChanges(Func<Task> callback)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Hosting (9)
ApplicationModel\ResourceLoggerService.cs (7)
73public IDisposable? BeginScope<TState>(TState state) where TState : notnull 75var scopes = new List<IDisposable>(); 98private sealed class CompositeDisposable(List<IDisposable> disposables) : IDisposable 100private readonly List<IDisposable> _disposables = disposables; 104foreach (var disposable in _disposables) 573IDisposable? ILogger.BeginScope<TState>(TState state) => null;
Dcp\KubernetesService.cs (1)
61internal sealed class KubernetesService(ILogger<KubernetesService> logger, IOptions<DcpOptions> dcpOptions, Locations locations) : IKubernetesService, IDisposable
IDistributedApplicationBuilder.cs (1)
221/// type implements <see cref="IDisposable" /> and should be disposed of when it is no longer needed. Note that in
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
280public readonly struct BicepTemplateFile(string path, bool deleteFileOnDispose) : IDisposable
Aspire.Hosting.Docker (2)
src\Shared\Yaml\YamlIEnumerableSkipEmptyObjectGraphVisitor.cs (2)
57using var _ = enumerator as IDisposable;
Aspire.Hosting.Kubernetes (2)
src\Shared\Yaml\YamlIEnumerableSkipEmptyObjectGraphVisitor.cs (2)
57using var _ = enumerator as IDisposable;
Aspire.Hosting.Testing (5)
DistributedApplicationEntryPointInvoker.cs (4)
74using var subscription = DiagnosticListener.AllListeners.Subscribe(this); 160private IDisposable? _disposable; 213private IDisposable? _hostingListener; 225using var subscription = DiagnosticListener.AllListeners.Subscribe(observer);
DistributedApplicationFactory.cs (1)
21public class DistributedApplicationFactory(Type entryPoint, string[] args) : IDisposable, IAsyncDisposable
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Hosting.Tests (5)
Dashboard\DashboardResourceTests.cs (1)
550public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
PublishAsDockerfileTests.cs (1)
275readonly struct DisposableTempDirectory(DirectoryInfo directory) : IDisposable
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Microsoft.Data.SqlClient (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (5)
13private readonly List<IDisposable> listenerSubscriptions; 19private IDisposable allSourcesSubscription; 37this.listenerSubscriptions = new List<IDisposable>(); 59var subscription = this.isEnabledFilter == null ? 94foreach (var listenerSubscription in this.listenerSubscriptions)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (5)
13private readonly List<IDisposable> listenerSubscriptions; 19private IDisposable allSourcesSubscription; 37this.listenerSubscriptions = new List<IDisposable>(); 59var subscription = this.isEnabledFilter == null ? 94foreach (var listenerSubscription in this.listenerSubscriptions)
Aspire.Playground.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
244public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.RabbitMQ.Client.v7.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
244public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.StackExchange.Redis (4)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (4)
29/// <returns><see cref="IDisposable"/> to cancel the registration.</returns> 30public IDisposable AddConnection(IConnectionMultiplexer connection) 38/// <returns><see cref="IDisposable"/> to cancel the registration.</returns> 39public IDisposable AddConnection(string name, IConnectionMultiplexer connection)
BasicTestApp (1)
PrependMessageLoggerProvider.cs (1)
52public IDisposable BeginScope<TState>(TState state)
BuildValidator (8)
CompilationDiff.cs (1)
144using var diagsScope = logger.BeginScope($"Diagnostics");
DemoLogger.cs (2)
34public IDisposable BeginScope<TState>(TState state) where TState : notnull 69public IDisposable BeginScope<TState>(TState state) where TState : notnull => this;
LocalReferenceResolver.cs (2)
69using var _ = logger.BeginScope("Assembly Location Cache Population"); 159using var _ = _logger.BeginScope($"Populating {fileName}");
Program.cs (3)
259using var summary = logger.BeginScope("Summary"); 329using var _ = logger.BeginScope($"Verifying {originalBinary.FullName} with pdb {pdbPath ?? "[embedded]"}"); 364using var _ = logger.BeginScope("Source Links");
Client.ClientBase.IntegrationTests (3)
ChannelBaseTests.4.0.0.cs (1)
241((IDisposable)client).Dispose();
ClientBaseTests.4.0.0.cs (1)
509((IDisposable)client).Dispose();
SessionTests.cs (1)
502private static IDisposable DuplexTestSetupHelper()
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
318IDisposable? npcs = null;
Diagnostics.EFCore.FunctionalTests (1)
Helpers\TestLoggerProvider.cs (1)
56public IDisposable BeginScope<TState>(TState state)
dotnet-svcutil-lib (40)
CodeDomFixup\CodeDomVisitors\NameScope.cs (1)
14void IDisposable.Dispose()
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
68void IDisposable.Dispose()
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
244((IDisposable)writer).Dispose();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWrappingWriter.cs (1)
248((IDisposable)writer).Dispose();
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeList.cs (1)
28void IDisposable.Dispose()
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCountingReader.cs (2)
335IDisposable disposableReader = _innerReader as IDisposable;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
478if (value is IDisposable) 480((IDisposable)value).Dispose();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
147SecurityUtils.DisposeIfNecessary(_issuer as IDisposable);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
196SecurityUtils.DisposeIfNecessary(_primaryIdentity as IDisposable);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
364public static void DisposeIfNecessary(IDisposable obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
169void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (1)
121((IDisposable)_channelBinding).Dispose();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelBindingUtility.cs (2)
63IDisposable disposable = (IDisposable)channelBinding;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
227void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (3)
15void IDisposable.Dispose() 100IDisposable disposable = _properties[i].Value as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (2)
880IDisposable disposable = _value as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContext.cs (1)
24void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
297void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
1591void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
661void IDisposable.Dispose()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (2)
337private static IDisposable CreateProcessActionActivity() 388IDisposable activity = ClientDuplexConnectionReader.CreateProcessActionActivity();
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
188void IDisposable.Dispose() 756void IDisposable.Dispose() 758((IDisposable)_channel).Dispose();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
959return ((!type.IsSealed()) || typeof(IDisposable).IsAssignableFrom(type));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (4)
352IDisposable disposableParameter = this.ReturnParameter as IDisposable; 374IDisposable disposableParameter = null; 379disposableParameter = obj as IDisposable;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
111IDisposable boundActivity = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
170IDisposable boundActivity = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
728else if (obj is IDisposable) 730((IDisposable)obj).Dispose();
GetDocument.Insider (2)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
204private IDisposable? _disposable; 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
IIS.Common.TestLib (1)
DisposableList.cs (1)
9public class DisposableList<T> : List<T>, IDisposable where T : IDisposable
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
15public static IDisposable Disable(ServerType serverType, int code)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
173public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
illink (2)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (1)
60 void IDisposable.Dispose () { }
InMemory.FunctionalTests (7)
BadHttpRequestTests.cs (1)
291private IDisposable _subscription;
Http2\Http2EndToEndTests.cs (1)
116public IDisposable BeginScope<TState>(TState state)
HttpsTests.cs (2)
839public IDisposable BeginScope<TState>(TState state) 876public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\DisposableStack.cs (1)
10where T : IDisposable
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
15public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
199public IDisposable BeginScope<TState>(TState state)
Metrics (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Metrics.Legacy (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Microsoft.AspNetCore (1)
WebApplication.cs (1)
200void IDisposable.Dispose() => _host.Dispose();
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\MvcDetector.cs (1)
31var members = disposable.GetMembers(nameof(IDisposable.Dispose));
Microsoft.AspNetCore.Authentication.Negotiate (2)
NegotiateHandler.cs (2)
411private void RegisterForConnectionDispose(IDisposable authState) 420((IDisposable)state).Dispose();
Microsoft.AspNetCore.Authorization.Policy (1)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
1167public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Components (8)
NavigationManager.cs (2)
518/// <returns>An <see cref="IDisposable"/> that can be disposed to unregister the location changing handler.</returns> 519public IDisposable RegisterLocationChangingHandler(Func<LocationChangingContext, ValueTask> locationChangingHandler)
OwningComponentBase.cs (1)
47void IDisposable.Dispose()
Rendering\ComponentState.cs (3)
298(Component as IDisposable)?.Dispose(); 305((IDisposable)_nextRenderTree).Dispose(); 306((IDisposable)CurrentRenderTree).Dispose();
RenderTree\Renderer.cs (1)
1154/// <param name="disposing"><see langword="true"/> if this method is being invoked by <see cref="IDisposable.Dispose"/>, otherwise <see langword="false"/>.</param>
Routing\SupplyParameterFromQueryValueProvider.cs (1)
10internal sealed class SupplyParameterFromQueryValueProvider(NavigationManager navigationManager) : ICascadingValueSupplier, IDisposable
Microsoft.AspNetCore.Components.Endpoints (4)
Builder\RazorComponentEndpointDataSource.cs (3)
33private IDisposable? _disposableChangeToken; // THREADING: protected by _lock 35public Func<IDisposable, IDisposable> SetDisposableChangeTokenAction = disposableChangeToken => disposableChangeToken;
FormMapping\FormDataReader.cs (1)
315void IDisposable.Dispose() => _enumerator.Dispose();
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Builder\TestFileProvider\TestFileChangeToken.cs (1)
19public IDisposable RegisterChangeCallback(Action<object> callback, object state)
HotReloadServiceTests.cs (3)
154private readonly IDisposable _innerDisposable; 156public WrappedChangeTokenDisposable(IDisposable innerDisposable) 178endpointDataSource.SetDisposableChangeTokenAction = (IDisposable disposableChangeToken) => {
Microsoft.AspNetCore.Components.Forms (4)
DataAnnotationsValidator.cs (2)
11private IDisposable? _subscriptions; 49void IDisposable.Dispose()
EditContextDataAnnotationsExtensions.cs (2)
37public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext) 47public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext, IServiceProvider serviceProvider)
Microsoft.AspNetCore.Components.Forms.Tests (1)
EditContextDataAnnotationsExtensionsTest.cs (1)
171var subscription = editContext.EnableDataAnnotationsValidation(_serviceProvider);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
109void IDisposable.Dispose()
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (1)
137((IDisposable)provider).Dispose();
Microsoft.AspNetCore.Components.Tests (8)
NavigationManagerTest.cs (2)
567var locationChangingRegistration = navigationManager.RegisterLocationChangingHandler(HandleLocationChanging); 612var locationChangingRegistrations = new IDisposable[initialHandlerCount];
OwningComponentBaseTest.cs (2)
27((IDisposable)component1).Dispose(); 48void IDisposable.Dispose() => Counter.DisposedCount++;
RendererTest.cs (1)
5222void IDisposable.Dispose() => Disposed = true;
RenderTreeDiffBuilderTest.cs (3)
25void IDisposable.Dispose() 28((IDisposable)oldTree).Dispose(); 29((IDisposable)newTree).Dispose();
Microsoft.AspNetCore.Components.Web (10)
Forms\InputBase.cs (1)
369void IDisposable.Dispose()
Forms\InputFile.cs (1)
99void IDisposable.Dispose()
Forms\InputFile\InputFileJsCallbacksRelay.cs (1)
13public IDisposable DotNetReference { get; }
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
12public static IDisposable EnableFormMappingContextExtensions(this EditContext context, FormMappingContext mappingContext)
Forms\Mapping\FormMappingValidator.cs (2)
11private IDisposable? _subscriptions; 53void IDisposable.Dispose()
Forms\ValidationMessage.cs (2)
84/// <param name="disposing"><see langword="true"/> if called within <see cref="IDisposable.Dispose"/>.</param> 89void IDisposable.Dispose()
Forms\ValidationSummary.cs (1)
98void IDisposable.Dispose()
Routing\NavigationLock.cs (1)
17private IDisposable? _locationChangingRegistration;
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\InputBaseTest.cs (2)
358(inputComponent as IDisposable).Dispose(); 417((IDisposable)component).Dispose();
Microsoft.AspNetCore.Components.WebAssembly (6)
Hosting\WebAssemblyHost.cs (1)
94else if (_services is IDisposable disposableServices)
Hosting\WebAssemblyHostConfiguration.cs (4)
21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 181foreach (var registration in _changeTokenRegistrations) 189(provider as IDisposable)?.Dispose();
Services\WebAssemblyConsoleLogger.cs (1)
34public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.AspNetCore.Cryptography.Internal (1)
WeakReferenceHelpers.cs (1)
13where T : class, IDisposable
Microsoft.AspNetCore.DataProtection (1)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorConfiguration.cs (1)
55(encryptor as IDisposable)?.Dispose();
Microsoft.AspNetCore.DataProtection.Tests (4)
ActivatorTests.cs (2)
63() => activator.CreateInstance<IDisposable>(typeof(ClassWithParameterlessCtor).AssemblyQualifiedName)); 64Assert.Equal(Resources.FormatTypeExtensions_BadCast(typeof(IDisposable).AssemblyQualifiedName, typeof(ClassWithParameterlessCtor).AssemblyQualifiedName), ex.Message);
Repositories\FileSystemXmlRepositoryTests.cs (1)
213IDisposable fileLock2 = null;
StringLoggerFactory.cs (1)
51public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
140using var registration = app.Configuration.GetReloadToken().RegisterChangeCallback(
Microsoft.AspNetCore.HostFiltering.Tests (1)
MiddlewareConfigurationManagerTests.cs (1)
105public IDisposable OnChange(Action<T, string> listener)
Microsoft.AspNetCore.Hosting (3)
Internal\HostingApplication.cs (1)
124public IDisposable? Scope { get; set; }
Internal\HostingApplicationDiagnostics.cs (1)
485public static IDisposable? RequestScope(ILogger logger, HttpContext httpContext)
Internal\WebHost.cs (1)
342case IDisposable disposable:
Microsoft.AspNetCore.Hosting.Tests (5)
HostingApplicationDiagnosticsTests.cs (2)
1128public IDisposable BeginScope<TState>(TState state) => null; 1145public IDisposable BeginScope<TState>(TState state)
WebHostTests.cs (3)
997var providerMock = new Mock<ConfigurationProvider>().As<IDisposable>(); 1021var providerMock = new Mock<ConfigurationProvider>().As<IDisposable>(); 1353public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Http (2)
Features\RequestServicesFeature.cs (1)
67case IDisposable disposable:
Internal\BufferingHelper.cs (1)
27public static MultipartSection EnableRewind(this MultipartSection section, Action<IDisposable> registerForDispose,
Microsoft.AspNetCore.Http.Abstractions (2)
HttpResponse.cs (2)
27else if (state is IDisposable disposable) 116public virtual void RegisterForDispose(IDisposable disposable) => OnCompleted(_disposeDelegate, disposable);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
284(identity as IDisposable)?.Dispose();
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
315void IDisposable.Dispose() => _enumerator.Dispose();
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ValidationsGenerator\ValidationsGeneratorTestBase.cs (2)
387private IDisposable _disposable; 404using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
RequestTimeoutsMiddlewareBenchmark.cs (1)
144public IDisposable OnChange(Action<RequestTimeoutOptions, string> listener)
Microsoft.AspNetCore.Http.Tests (1)
Timeouts\RequestTimeoutsMiddlewareTests.cs (1)
391public IDisposable OnChange(Action<RequestTimeoutOptions, string> listener)
Microsoft.AspNetCore.HttpLogging.Tests (1)
OptionsWrapperMonitor.cs (1)
17public IDisposable OnChange(Action<T, string> listener)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
636services.AddSingleton<IDisposable>(_ => dbConnection2);
Microsoft.AspNetCore.Identity.Specification.Tests (1)
TestLogger.cs (1)
35public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.InternalTesting (15)
AssemblyTestLog.cs (7)
59public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, [CallerMemberName] string testName = null) => 63public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, [CallerMemberName] string testName = null) => 66internal IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, out string resolvedTestName, out string logOutputDirectory, [CallerMemberName] string testName = null) 76var scope = logger.BeginScope("Test: {testName}", testName); 88(serviceProvider as IDisposable)?.Dispose(); 299void IDisposable.Dispose() 301(_serviceProvider as IDisposable)?.Dispose();
LoggedTest\LoggedTestBase.cs (3)
22private IDisposable _testLog; 49public IDisposable StartLog(out ILoggerFactory loggerFactory, [CallerMemberName] string testName = null) => StartLog(out loggerFactory, LogLevel.Debug, testName); 53public IDisposable StartLog(out ILoggerFactory loggerFactory, LogLevel minLogLevel, [CallerMemberName] string testName = null)
Logging\TestLogger.cs (1)
29public IDisposable BeginScope<TState>(TState state)
Logging\TestLoggerT.cs (1)
17public IDisposable BeginScope<TState>(TState state)
Logging\XunitLoggerProvider.cs (1)
119public IDisposable BeginScope<TState>(TState state)
xunit\AspNetTestAssemblyRunner.cs (2)
88foreach (var disposable in Fixtures.OfType<IDisposable>())
Microsoft.AspNetCore.InternalTesting.Tests (2)
AspNetTestAssemblyRunnerTest.cs (1)
186void IDisposable.Dispose()
AssemblyTestLogTests.cs (1)
107using var disposable = testAssemblyLog.StartTestLog(
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Helpers\JsonUtilities.cs (4)
29using var docA = TryGetJsonElement(a, serializerOptions, out var elementA); 30using var docB = TryGetJsonElement(b, serializerOptions, out var elementB); 35private static IDisposable TryGetJsonElement(object item, JsonSerializerOptions serializerOptions, out JsonElement element) 37IDisposable result = null;
Microsoft.AspNetCore.Mvc.Abstractions.Test (5)
ModelBinding\ModelMetadataTest.cs (5)
35[InlineData(typeof(IDisposable))] 149[InlineData(typeof(IDisposable), false)] 168[InlineData(typeof(IDisposable), true)] 187[InlineData(typeof(IDisposable), typeof(IDisposable))]
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
278var members = disposable?.GetMembers(nameof(IDisposable.Dispose));
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiControllerSymbolCache.cs (1)
98var members = disposable?.GetMembers(nameof(IDisposable.Dispose));
Microsoft.AspNetCore.Mvc.Core (15)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
692(typeof(IDisposable).IsAssignableFrom(declaringType) && 693declaringType.GetInterfaceMap(typeof(IDisposable)).TargetMethods[0] == baseMethodInfo);
Controllers\ControllerActivatorProvider.cs (3)
72if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(descriptor.ControllerTypeInfo)) 95if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(descriptor.ControllerTypeInfo)) 107((IDisposable)controller).Dispose();
Controllers\DefaultControllerActivator.cs (1)
58if (controller is IDisposable disposable)
Infrastructure\ResourceInvoker.cs (6)
65var scope = _logger.ActionScope(_actionContext.ActionDescriptor); 84static async Task Awaited(ResourceInvoker invoker, Task task, IDisposable? scope) 109var actionScope = logger.ActionScope(actionContext.ActionDescriptor); 142internal ValueTask ReleaseResourcesCore(IDisposable? scope) 161static async ValueTask HandleAsyncReleaseErrors(ValueTask releaseResult, IDisposable? scope) 176static ValueTask HandleReleaseErrors(IDisposable? scope, Exception? releaseException)
MvcCoreLoggerExtensions.cs (1)
20public static IDisposable? ActionScope(this ILogger logger, ActionDescriptor action)
Routing\ActionEndpointDataSourceBase.cs (1)
31private IDisposable? _disposable;
src\Http\Routing\src\DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\DefaultApplicationModelProviderTest.cs (5)
599typeInfo.GetRuntimeInterfaceMap(typeof(IDisposable)).TargetMethods[0]; 617typeInfo.GetRuntimeInterfaceMap(typeof(IDisposable)).TargetMethods[0]; 671typeInfo.GetRuntimeInterfaceMap(typeof(IDisposable)).TargetMethods[0]; 689typeInfo.GetRuntimeInterfaceMap(typeof(IDisposable)).TargetMethods[0]; 1434void IDisposable.Dispose()
ControllerBaseTest.cs (2)
1861mockHttpContext.Setup(x => x.Response.RegisterForDispose(It.IsAny<IDisposable>())); 1888mockHttpContext.Setup(x => x.Response.RegisterForDispose(It.IsAny<IDisposable>()));
Filters\MiddlewareFilterConfigurationProviderTest.cs (1)
17[InlineData(typeof(IDisposable))]
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
415[InlineData(typeof(IDisposable))]
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonInputFormatterTest.cs (3)
450IDisposable registerForDispose = null; 456httpContext.Setup(h => h.Response.RegisterForDispose(It.IsAny<IDisposable>())) 457.Callback((IDisposable disposable) => registerForDispose = disposable)
Microsoft.AspNetCore.Mvc.RazorPages (6)
Infrastructure\DefaultPageActivatorProvider.cs (3)
40if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.PageTypeInfo)) 57if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.PageTypeInfo)) 86((IDisposable)page).Dispose();
Infrastructure\DefaultPageModelActivatorProvider.cs (3)
40if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.ModelTypeInfo)) 57if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.ModelTypeInfo)) 70((IDisposable)page).Dispose();
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\DefaultPageFactoryProviderTest.cs (3)
397return (context, viewContext, instance) => (instance as IDisposable)?.Dispose(); 407IDisposable disposable => SyncDispose(disposable), 412ValueTask SyncDispose(IDisposable disposable)
Infrastructure\PageActionInvokerTest.cs (2)
1549(c, viewContext, page) => { (page as IDisposable)?.Dispose(); return default; }, 1551(c, model) => { (model as IDisposable)?.Dispose(); return default; },
PageModelTest.cs (1)
1444mockHttpContext.Setup(x => x.Response.RegisterForDispose(It.IsAny<IDisposable>()));
PageTest.cs (1)
1434mockHttpContext.Setup(x => x.Response.RegisterForDispose(It.IsAny<IDisposable>()));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
210using (view as IDisposable)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
PartialTagHelperTest.cs (1)
538var disposable = new Mock<IDisposable>();
TagHelperLogger.cs (1)
12public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Mvc.Testing (2)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
204private IDisposable? _disposable; 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
HtmlHelper.cs (1)
541using (view as IDisposable)
PartialViewResultExecutor.cs (1)
156using (view as IDisposable)
TempDataDictionary.cs (1)
311void IDisposable.Dispose()
TemplateRenderer.cs (1)
120using (view as IDisposable)
ViewComponents\DefaultViewComponentActivator.cs (1)
68if (viewComponent is IDisposable disposable)
ViewComponents\DefaultViewComponentInvoker.cs (1)
233public static IDisposable? ViewComponentScope(ILogger logger, ViewComponentContext context)
ViewComponents\ViewViewComponentResult.cs (1)
109using (view as IDisposable)
ViewResultExecutor.cs (1)
150using (view as IDisposable)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ControllerUnitTestabilityTests.cs (1)
159mockHttpContext.Setup(x => x.Response.RegisterForDispose(It.IsAny<IDisposable>()));
PartialViewResultTest.cs (1)
190.As<IDisposable>()
ViewComponents\DefaultViewComponentFactoryTest.cs (2)
47.Callback<ViewComponentContext, object>((c, o) => (o as IDisposable)?.Dispose()); 70.Callback<ViewComponentContext, object>((c, o) => (o as IDisposable)?.Dispose())
ViewResultTest.cs (1)
202.As<IDisposable>()
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileChangeToken.cs (1)
19public IDisposable RegisterChangeCallback(Action<object> callback, object state)
Microsoft.AspNetCore.OpenApi (3)
Transformers\TypeBasedOpenApiDocumentTransformer.cs (1)
37else if (transformer is IDisposable disposable)
Transformers\TypeBasedTransforrmerExtensions.cs (2)
9/// Supports disposing of factory-based transformers that implement <see cref="IDisposable"/> or <see cref="IAsyncDisposable"/> 22else if (transformer is IDisposable disposable)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (2)
SnapshotTestHelper.cs (2)
395private IDisposable _disposable; 412using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.AspNetCore.Routing (10)
CompositeEndpointDataSource.cs (8)
25private List<IDisposable>? _changeTokenRegistrations; 106List<IDisposable>? disposables = null; 119if (dataSource is IDisposable disposableDataSource) 121disposables ??= new List<IDisposable>(); 128disposables ??= new List<IDisposable>(); 137foreach (var disposable in disposables) 193List<IDisposable>? oldChangeTokenRegistrations = null; 231foreach (var registration in oldChangeTokenRegistrations)
DataSourceDependentCache.cs (1)
24private IDisposable? _disposable;
RouteGroupBuilder.cs (1)
84(dataSource as IDisposable)?.Dispose();
Microsoft.AspNetCore.Routing.Tests (1)
EndpointRoutingMiddlewareTest.cs (1)
69using var subscription = listener.Subscribe(new DelegateObserver(pair =>
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Listener\ResponseHeaderTests.cs (1)
22void IDisposable.Dispose()
OpaqueUpgradeTests.cs (2)
363((IDisposable)client).Dispose(); 401((IDisposable)client).Dispose();
RequestBodyTests.cs (1)
328((IDisposable)client).Dispose();
ServerTests.cs (1)
674((IDisposable)client).Dispose();
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
19using var _ = StartLog(out var loggerFactory);
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\CertificatePathWatcher.cs (7)
140var disposable = ChangeToken.OnChange( 270void IDisposable.Dispose() 289private sealed class DirectoryWatchMetadata(IFileProvider fileProvider) : IDisposable 294public void Dispose() => (FileProvider as IDisposable)?.Dispose(); 297private sealed class FileWatchMetadata(IDisposable disposable) : IDisposable 299public readonly IDisposable Disposable = disposable;
Internal\Http3\Http3Stream.cs (1)
725if (_context.StreamContext is IDisposable disposableStream)
Internal\Infrastructure\KestrelConnection.cs (1)
172protected IDisposable? BeginConnectionScope(BaseConnectionContext connectionContext)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Internal\KestrelServerImpl.cs (1)
34private IDisposable? _configChangedRegistration;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
CertificatePathWatcherTests.cs (3)
502IDisposable IChangeToken.RegisterChangeCallback(Action<object> callback, object state) => DummyDisposable.Instance; 508public static readonly IDisposable Instance = new DummyDisposable(); 514void IDisposable.Dispose()
Http1\Http1ConnectionTestsBase.cs (1)
66void IDisposable.Dispose()
KestrelServerTests.cs (1)
778return Mock.Of<IDisposable>();
LoggingStreamTests.cs (1)
59public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\DisposableStack.cs (1)
10where T : IDisposable
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
15public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
180(_namedPipeServerStreamPool as IDisposable)?.Dispose();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SignalR.Client.Core (46)
HubConnection.cs (3)
355public virtual IDisposable On(string methodName, Type[] parameterTypes, Func<object?[], object, Task<object?>> handler, object state) 388public virtual IDisposable On(string methodName, Type[] parameterTypes, Func<object?[], object, Task> handler, object state) 643(_serviceProvider as IDisposable)?.Dispose();
HubConnectionExtensions.cs (20)
15private static IDisposable On(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Action<object?[]> handler) 32public static IDisposable On(this HubConnection hubConnection, string methodName, Action handler) 47public static IDisposable On<T1>(this HubConnection hubConnection, string methodName, Action<T1> handler) 65public static IDisposable On<T1, T2>(this HubConnection hubConnection, string methodName, Action<T1, T2> handler) 84public static IDisposable On<T1, T2, T3>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3> handler) 104public static IDisposable On<T1, T2, T3, T4>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4> handler) 125public static IDisposable On<T1, T2, T3, T4, T5>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5> handler) 147public static IDisposable On<T1, T2, T3, T4, T5, T6>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6> handler) 170public static IDisposable On<T1, T2, T3, T4, T5, T6, T7>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6, T7> handler) 194public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8>(this HubConnection hubConnection, string methodName, Action<T1, T2, T3, T4, T5, T6, T7, T8> handler) 211public static IDisposable On(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], Task> handler) 227public static IDisposable On(this HubConnection hubConnection, string methodName, Func<Task> handler) 242public static IDisposable On<T1>(this HubConnection hubConnection, string methodName, Func<T1, Task> handler) 260public static IDisposable On<T1, T2>(this HubConnection hubConnection, string methodName, Func<T1, T2, Task> handler) 279public static IDisposable On<T1, T2, T3>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task> handler) 299public static IDisposable On<T1, T2, T3, T4>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, Task> handler) 320public static IDisposable On<T1, T2, T3, T4, T5>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task> handler) 342public static IDisposable On<T1, T2, T3, T4, T5, T6>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, Task> handler) 365public static IDisposable On<T1, T2, T3, T4, T5, T6, T7>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, Task> handler) 389public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, Task> handler)
HubConnectionExtensions.OnResult.cs (20)
18private static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], TResult> handler) 37public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[], Task<TResult>> handler) 55public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Func<Task<TResult>> handler) 71public static IDisposable On<TResult>(this HubConnection hubConnection, string methodName, Func<TResult> handler) 88public static IDisposable On<T1, TResult>(this HubConnection hubConnection, string methodName, Func<T1, TResult> handler) 108public static IDisposable On<T1, T2, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, TResult> handler) 129public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, TResult> handler) 151public static IDisposable On<T1, T2, T3, T4, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, TResult> handler) 174public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, TResult> handler) 198public static IDisposable On<T1, T2, T3, T4, T5, T6, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, TResult> handler) 223public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, TResult> handler) 249public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> handler) 268public static IDisposable On<T1, TResult>(this HubConnection hubConnection, string methodName, Func<T1, Task<TResult>> handler) 288public static IDisposable On<T1, T2, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, Task<TResult>> handler) 309public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task<TResult>> handler) 331public static IDisposable On<T1, T2, T3, T4, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, Task<TResult>> handler) 354public static IDisposable On<T1, T2, T3, T4, T5, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, Task<TResult>> handler) 378public static IDisposable On<T1, T2, T3, T4, T5, T6, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, Task<TResult>> handler) 403public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, Task<TResult>> handler) 429public static IDisposable On<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, Task<TResult>> handler)
src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
src\SignalR\common\Shared\MessageBuffer.cs (1)
307((IDisposable)_timer).Dispose();
src\SignalR\common\Shared\TimerAwaitable.cs (1)
109void IDisposable.Dispose()
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HubClientProxyGeneratorTests.cs (4)
21public static partial IDisposable SetHubClient<T>(this HubConnection conn, T p); 109var registration = conn.SetHubClient<IMyClient>(myClient); 158var registration = conn.SetHubClient<IMyClient>(myClient); 241var registration = conn.SetHubClient<IMyClient>(myClient);
HubConnectionTests.Protocol.cs (1)
510var subscription = hubConnection.On<int>("Foo", (val) =>
Microsoft.AspNetCore.SignalR.Core (6)
DefaultHubLifetimeManager.cs (1)
350using var _ = CancellationTokenUtils.CreateLinkedToken(cancellationToken,
Internal\AsyncDisposableExtensions.cs (1)
9public static ValueTask DisposeAsync(this IDisposable disposable)
Internal\HubFilterFactory.cs (1)
79if (filter is IDisposable disposable)
Internal\HubReflectionHelper.cs (1)
15var excludedInterfaceMethods = hubType.GetInterfaceMap(typeof(IDisposable)).TargetMethods;
src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
src\SignalR\common\Shared\MessageBuffer.cs (1)
307((IDisposable)_timer).Dispose();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (1)
390using var _ = CancellationTokenUtils.CreateLinkedToken(cancellationToken,
src\SignalR\common\Shared\CreateLinkedToken.cs (1)
14internal static IDisposable? CreateLinkedToken(CancellationToken token1, CancellationToken token2, out CancellationToken linkedToken)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisServerFixture.cs (1)
21private readonly IDisposable _logToken;
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
410public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SignalR.Tests.Utils (10)
ServerLogScope.cs (2)
13private readonly IDisposable _wrappedDisposable; 19public ServerLogScope(InProcessTestServer serverFixture, ILoggerFactory loggerFactory, IDisposable wrappedDisposable)
src\Shared\SignalR\InProcessTestServer.cs (4)
42private readonly IDisposable _logToken; 43private readonly IDisposable _extraDisposable; 61public static async Task<InProcessTestServer<TStartup>> StartServer(ILoggerFactory loggerFactory, Action<KestrelServerOptions> configureKestrelServerOptions = null, IDisposable disposable = null) 72private InProcessTestServer(ILoggerFactory loggerFactory, Action<KestrelServerOptions> configureKestrelServerOptions, IDisposable disposable)
src\Shared\SignalR\LogSinkProvider.cs (1)
61public IDisposable BeginScope<TState>(TState state)
src\Shared\SignalR\VerifyNoErrorScope.cs (2)
14private readonly IDisposable _wrappedDisposable; 22public VerifyNoErrorsScope(ILoggerFactory loggerFactory = null, IDisposable wrappedDisposable = null, Func<WriteContext, bool> expectedErrorsFilter = null)
src\Shared\SignalR\WrappingLoggerFactory.cs (1)
95public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
372void IDisposable.Dispose()
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
64applicationStoppingToken.Register(((IDisposable)this).Dispose); 145void IDisposable.Dispose()
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
ListLoggerFactory.cs (2)
96public IDisposable BeginScope(object state) => null; 98public IDisposable BeginScope<TState>(TState state) => null;
Microsoft.AspNetCore.TestHost (2)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
204private IDisposable? _disposable; 221using var subscription = DiagnosticListener.AllListeners.Subscribe(this);
Microsoft.AspNetCore.TestHost.Tests (3)
ClientHandlerTests.cs (1)
714public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
HttpContextBuilderTests.cs (1)
350public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
TestClientTests.cs (1)
739public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2973private readonly IDisposable _subscription0; 2974private IDisposable _subscription1;
Microsoft.Build (34)
BackEnd\Components\Communications\NodeManager.cs (4)
188if (_inProcNodeProvider != null && _inProcNodeProvider is IDisposable) 190((IDisposable)_inProcNodeProvider).Dispose(); 193if (_outOfProcNodeProvider != null && _outOfProcNodeProvider is IDisposable) 195((IDisposable)_outOfProcNodeProvider).Dispose();
BackEnd\Components\Logging\LoggingService.cs (1)
1781using var assemblyLoadTracker = AssemblyLoadsTracker.StartTracking(this, AssemblyLoadingContext.LoggerInitialization, UnwrapLoggerType(logger).GetType());
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (5)
43public static IDisposable StartTracking( 50public static IDisposable StartTracking( 57public static IDisposable StartTracking( 101private static IDisposable StartTracking( 178public static readonly IDisposable Instance = new EmptyDisposable();
BackEnd\Components\RequestBuilder\FullTracking.cs (2)
92internal static IDisposable Track(string targetName, string taskName, string projectRootDirectory, PropertyDictionary<ProjectPropertyInstance> projectProperties) 118internal static IDisposable Suspend()
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
214IDisposable disposable = _taskExecutionHost as IDisposable; 664using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(taskLoggingContext, AssemblyLoadingContext.TaskRun, _taskExecutionHost?.TaskInstance?.GetType());
BuildCheck\Infrastructure\CheckWrapper.cs (1)
200internal readonly struct CleanupScope(Action disposeAction) : IDisposable
Evaluation\Evaluator.cs (2)
637using var assemblyLoadsTracker = 1808using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(_evaluationLoggingContext, AssemblyLoadingContext.SdkResolution, _sdkResolverService.GetType());
Evaluation\Profiler\EvaluationProfiler.cs (6)
28/// If <param name="shouldTrackElements"/> is false, then requesting to track a given element has no effect and a null <see cref="IDisposable"/> is returned. 42public IDisposable TrackPass(EvaluationPass evaluationPass, string passDescription = null) 52public IDisposable TrackFile(string file) 59public IDisposable TrackGlob(string rootDirectory, string glob, ISet<string> excludePatterns) 70public IDisposable TrackElement(ProjectElement element) 77public IDisposable TrackCondition(IElementLocation location, string condition)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
276using var assemblyLoadsTracker = AssemblyLoadsTracker.StartTracking(targetLoggingContext, AssemblyLoadingContext.TaskRun, assemblyName);
Logging\BinaryLogger\BuildEventArgsWriter.cs (6)
155using var redirectionScope = RedirectWritesToOriginalWriter(); 266using var redirection = RedirectWritesToOriginalWriter(); 278private IDisposable RedirectWritesToOriginalWriter() 283private IDisposable RedirectWritesToDifferentWriter(BinaryWriter inScopeWriter, BinaryWriter afterScopeWriter) 1149using (var _ = RedirectWritesToDifferentWriter(nameValueListBw, binaryWriter)) 1273using var redirectionScope = RedirectWritesToOriginalWriter();
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
629(projectConfigurationDescription as IDisposable)?.Dispose();
RegisteredTaskObjectCacheBase.cs (2)
148IDisposable disposable = obj as IDisposable;
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildRequest_Tests.cs (1)
150using (var result = rot.Register(moniker, remoteHost))
BackEnd\MockRunningObjectTable.cs (1)
32public IDisposable Register(string itemName, object obj)
BackEnd\TaskExecutionHost_Tests.cs (1)
130((IDisposable)_host).Dispose();
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
266void IDisposable.Dispose()
Microsoft.Build.UnitTests.Shared (2)
ProjectFromString.cs (2)
44((IDisposable)_reader).Dispose(); 80((IDisposable)_reader).Dispose();
Microsoft.Cci.Extensions (24)
Experimental\APIEmitter.cs (1)
106public virtual IDisposable EmitBlock(bool ident)
Writers\CSharp\CSharpWriter.cs (2)
284IDisposable style = null; 321IDisposable dispose = null;
Writers\Syntax\HtmlSyntaxWriter.cs (4)
29public IDisposable StartStyle(SyntaxStyle style, object context) 31IDisposable disposeAction = null; 119private IDisposable WriteColor(string color, string extraStyle = "") 139private IDisposable WriteBackground(string color, object context)
Writers\Syntax\IStyleSyntaxWriter.cs (2)
10IDisposable StartStyle(SyntaxStyle style, object context); 15public static IDisposable StartStyle(this IStyleSyntaxWriter writer, SyntaxStyle style)
Writers\Syntax\ISyntaxWriter.cs (2)
81public static IDisposable StartBraceBlock(this ISyntaxWriter writer) 86public static IDisposable StartBraceBlock(this ISyntaxWriter writer, bool onNewLine)
Writers\Syntax\OpenXmlSyntaxWriter.cs (6)
16private IDisposable _document; 17private IDisposable _paragraph; 33public IDisposable StartStyle(SyntaxStyle style, object context) 35IDisposable disposeAction = null; 144private IDisposable StartParagraph() 154private IDisposable StartDocument()
Writers\Syntax\StyleHelper.cs (2)
13public IDisposable SetColor(string color) 22public IDisposable SetBgColor(string bgColor)
Writers\Syntax\TextSyntaxWriter.cs (3)
17public IDisposable StartStyle(SyntaxStyle style, object context) 19IDisposable disposeAction = null; 75private IDisposable WriteVersion(string version)
Writers\Syntax\UnifiedDiffSyntaxWriter.cs (2)
90private IDisposable DisableIndenting() 97public IDisposable StartStyle(SyntaxStyle style, object context)
Microsoft.CodeAnalysis (14)
Collections\SmallDictionary.cs (3)
591void IDisposable.Dispose() 708void IDisposable.Dispose() 814void IDisposable.Dispose()
MetadataReference\MetadataReference.cs (4)
110/// to create an <see cref="IDisposable"/> metadata object and 152/// to create an <see cref="IDisposable"/> metadata object and 194/// to create an <see cref="IDisposable"/> metadata object and 236/// to create an <see cref="IDisposable"/> metadata object and
MetadataReference\PortableExecutableReference.cs (1)
163/// contains. This copy does not need to be <see cref="IDisposable.Dispose"/>d.
PEWriter\PooledBlobBuilder.cs (1)
90void IDisposable.Dispose()
SpecialType.cs (1)
201/// Indicates that the type is <see cref="IDisposable"/>.
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
Syntax\SyntaxList`1.Enumerator.cs (1)
84void IDisposable.Dispose()
Syntax\SyntaxNodeOrTokenList.cs (1)
588void IDisposable.Dispose()
Text\TextLineCollection.cs (1)
149void IDisposable.Dispose()
Microsoft.CodeAnalysis.Analyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4110/// <see cref="INamedTypeSymbol"/> for <see cref="System.IDisposable"/>
Microsoft.CodeAnalysis.BannedApiAnalyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Microsoft.CodeAnalysis.CodeStyle (34)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
22HashCodeAnalyzer analyzer, IMethodSymbol method, ILocalSymbol? hashCodeVariable) : IDisposable
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
246=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
14bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (2)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken) 32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
14/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 34/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 48/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 57where T : class, IDisposable 84/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (2)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable 59private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
254foreach (var member in idisposable.GetMembers(nameof(IDisposable.Dispose)))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
202g.IdentifierName(nameof(IDisposable.Dispose)),
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
933CancellationToken cancellationToken) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
111: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 149.GetMembers(nameof(IDisposable.Dispose))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 59ImmutableArray<IDisposable> disposableServices; 68foreach (var service in disposableServices) 111if (checkAddDisposable && languageService is IDisposable disposable)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
Microsoft.CodeAnalysis.Collections.Package (3)
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
21CancellationToken cancellationToken) : CSharpSyntaxWalker(SyntaxWalkerDepth.StructuredTrivia), IDisposable
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
101g.IdentifierName(nameof(IDisposable.Dispose)),
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
170using var _ = waitContext.SuppressAutoCancel();
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
21CancellationToken cancellationToken) : CSharpSyntaxWalker(SyntaxWalkerDepth.StructuredTrivia), IDisposable
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
101g.IdentifierName(nameof(IDisposable.Dispose)),
Microsoft.CodeAnalysis.EditorFeatures (25)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
148using var blockLogger = Logger.LogBlock(FunctionId.CommandHandler_Paste_ImportsOnPaste, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (2)
300public IDisposable SuppressAutoCancel() 312bool originalCancelOnFocusLost) : IDisposable
BackgroundWorkIndicator\BackgroundWorkIndicatorScope.cs (1)
50void IDisposable.Dispose()
BackgroundWorkIndicator\IBackgroundWorkIndicatorContext.cs (1)
15IDisposable SuppressAutoCancel();
Extensibility\NavigationBar\INavigationBarControllerFactoryService.cs (1)
12IDisposable CreateController(INavigationBarPresenter presenter, ITextBuffer textBuffer);
ExtractMethod\ExtractMethodCommandHandler.cs (1)
204using var _ = waitContext.SuppressAutoCancel();
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
132using var _ = backgroundIndicator.SuppressAutoCancel();
InlineRename\InlineRenameSession.cs (1)
52private readonly IDisposable _inlineRenameSessionDurationLogBlock;
Interactive\InertClassifierProvider.cs (1)
57if (classifier is IDisposable disposable)
Lightup\ISmartRenameSessionWrapper.cs (1)
168=> ((IDisposable)_instance).Dispose();
NavigateTo\NavigateToItemProvider.cs (1)
83(_displayFactory as IDisposable)?.Dispose();
NavigationBar\NavigationBarController.cs (1)
177void IDisposable.Dispose()
NavigationBar\NavigationBarControllerFactoryService.cs (1)
30public IDisposable CreateController(INavigationBarPresenter presenter, ITextBuffer textBuffer)
Organizing\OrganizeDocumentCommandHandler.cs (1)
156using var _ = backgroundWorkContext.SuppressAutoCancel();
Preview\SolutionPreviewResult.cs (1)
83result.OfType<IDisposable>().Do(d => d.Dispose());
Suggestions\SuggestedActions\SuggestedAction.cs (2)
119using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Application_Summary, $"Total"); 247void IDisposable.Dispose()
Suggestions\SuggestedActionsSource.State.cs (1)
37void IDisposable.Dispose()
Suggestions\SuggestedActionsSource_Async.cs (4)
115using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total"); 122using var _3 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{(int)priority}"); 231using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetCodeFixesAsync)}"); 247using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetRefactoringsAsync)}");
Tagging\AggregateTagger.cs (2)
17internal abstract class AbstractAggregateTagger<TTag>(ImmutableArray<EfficientTagger<TTag>> taggers) : EfficientTagger<TTag>, IDisposable 23/// Disposes all the underlying taggers (if they themselves are <see cref="IDisposable"/>.
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
171internal sealed class Holder(EditorTestWorkspace workspace, IBraceCompletionSession session) : IDisposable
Preview\MockPreviewPaneService.cs (1)
31foreach (var content in contents.OfType<IDisposable>())
Utilities\TestFixtureHelper`1.cs (1)
11where TFixture : class, IDisposable, new()
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
ExpressionEvaluatorFatalError.cs (4)
30using var currentUserKey = (IDisposable)hKeyCurrentUserField.GetValue(null); 33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false });
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
201/// Indicates that the type is <see cref="IDisposable"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
Module.cs (1)
53void IDisposable.Dispose()
Process.cs (2)
45void IDisposable.Dispose() 49((IDisposable)module).Dispose();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (4)
30using var currentUserKey = (IDisposable)hKeyCurrentUserField.GetValue(null); 33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false });
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmMetadataImportHolder.cs (1)
33void IDisposable.Dispose()
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (4)
30using var currentUserKey = (IDisposable)hKeyCurrentUserField.GetValue(null); 33using var eeKey = (IDisposable?)openSubKeyMethod?.Invoke(currentUserKey, new object[] { RegistryKey, /*writable*/ false });
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (4)
Cohost\RazorSemanticTokensRefreshQueueWrapper.cs (1)
30internal class RazorSemanticTokensRefreshQueueWrapper(SemanticTokensRefreshQueue semanticTokensRefreshQueue) : IRazorSemanticTokensRefreshQueue, IDisposable
Cohost\RazorStartupServiceFactory.cs (2)
34Lazy<ICohostStartupService>? cohostStartupService) : ILspService, IOnInitialized, IDisposable 37private IDisposable? _activation;
RazorAsynchronousOperationListenerWrapper.cs (1)
20public IDisposable BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0)
Microsoft.CodeAnalysis.Features (36)
CodeFixes\Service\CodeFixService.cs (4)
101using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetMostSevereFixAsync)}"); 179using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}"); 296using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"{nameof(GetDocumentFixAllForIdInSpanAsync)}"); 545using var _ = TelemetryLogging.LogBlockTime(FunctionId.CodeFix_Delay, logMessage, CodeFixTelemetryDelay);
CodeLens\CodeLensFindReferenceProgress.cs (1)
28CancellationToken cancellationToken) : IFindReferencesProgress, IDisposable
Completion\CompletionService_GetCompletions.cs (1)
342private sealed class DisplayNameToItemsMap(CompletionService service) : IEnumerable<CompletionItem>, IDisposable
Completion\PatternMatchHelper.cs (1)
19internal sealed class PatternMatchHelper(string pattern) : IDisposable
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
146public sealed class Builder(SymbolKey assemblySymbolKey, Checksum checksum, string language, string genericTypeSuffix, EditorBrowsableInfo editorBrowsableInfo) : IDisposable
Copilot\CopilotChangeAnalysisUtilities.cs (1)
16public static IDisposable LogCopilotChangeAnalysis(
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
211using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSyntaxDiagnosticsAsync)}.{nameof(GetAnalysisResultAsync)}"); 247using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSemanticDiagnosticsAsync)}.{nameof(GetAnalysisResultAsync)}");
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (3)
104using var _4 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}"); 238using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.Incremental"); 248using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.Document");
EditAndContinue\AbstractEditAndContinueAnalyzer.ActiveMembersBuilder.cs (1)
21private readonly struct ActiveMembersBuilder(AbstractEditAndContinueAnalyzer analyzer, SemanticModel? oldModel, SemanticModel newModel, CancellationToken cancellationToken) : IDisposable
EditAndContinue\DebuggingSession.cs (4)
77private readonly Dictionary<Guid, (IDisposable metadata, IDisposable pdb)> _initialBaselineModuleReaders = []; 944public ImmutableArray<IDisposable> GetBaselineModuleReaders() 948return [.. instance._initialBaselineModuleReaders.Values.SelectMany(entry => new IDisposable[] { entry.metadata, entry.pdb })];
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (2)
17internal sealed class RemoteDebuggingSessionProxy(SolutionServices services, IDisposable? connection, DebuggingSessionId sessionId) : IActiveStatementSpanFactory, IDisposable
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
63public IDisposable GetEvaluatingScope()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
19private abstract class UnitTestingAsyncWorkItemQueue<TKey>(UnitTestingSolutionCrawlerProgressReporter progressReporter) : IDisposable
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
286private static void ClearQueueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, Func<TValue, IDisposable> disposerSelector)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
302if (syntaxFacts.GetIdentifierOfSimpleName(name).ValueText != nameof(IDisposable.Dispose))
MetadataAsSource\TelemetryMessage.cs (1)
20private readonly IDisposable _logBlock;
NavigateTo\NavigateToSearcher.cs (1)
143using var navigateToSearch = Logger.LogBlock(FunctionId.NavigateTo_Search, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
SemanticSearch\AbstractSemanticSearchService.cs (1)
57private readonly struct CompiledQuery(MemoryStream peStream, MemoryStream pdbStream, SourceText text) : IDisposable
Shared\Utilities\IUIContextActivationService.cs (1)
14IDisposable ExecuteWhenActivated(Guid uiContext, Action action);
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
22HashCodeAnalyzer analyzer, IMethodSymbol method, ILocalSymbol? hashCodeVariable) : IDisposable
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
254foreach (var member in idisposable.GetMembers(nameof(IDisposable.Dispose)))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
202g.IdentifierName(nameof(IDisposable.Dispose)),
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
933CancellationToken cancellationToken) : IDisposable
Structure\BlockStructureContext.cs (1)
12internal readonly struct BlockStructureContext(SyntaxTree syntaxTree, BlockStructureOptions options, CancellationToken cancellationToken) : IDisposable
ValueTracking\ValueTrackingService.cs (2)
32using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information); 62using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information);
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
386internal static void VerifyReadersDisposed(IEnumerable<IDisposable> readers) 388foreach (var reader in readers)
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
1367var readers = ImmutableArray<IDisposable>.Empty;
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
Microsoft.CodeAnalysis.LanguageServer (6)
BrokeredServices\Services\Definitions\IProjectInitializationStatusService.cs (1)
14ValueTask<IDisposable> SubscribeInitializationCompletionAsync(IObserver<ProjectInitializationCompletionState> observer, CancellationToken cancellationToken);
HostWorkspace\ProjectInitializationHandler.cs (1)
31private IDisposable? _subscription;
Logging\LspLogMessageLogger.cs (1)
21public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _externalScopeProvider?.Push(state);
Logging\LspServiceLogger.cs (2)
22public override IDisposable? CreateContext(string context) => _hostLogger.BeginScope(new LspLoggingScope(context, null)); 24public override IDisposable? CreateLanguageContext(string? language)
Logging\ServerLoggerFactory.cs (1)
42void IDisposable.Dispose()
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
30workspaceManager, registrationService, diagnosticSourceManager, diagnosticRefresher, globalOptions), IDisposable
LspServices\LspServices.cs (4)
33private readonly HashSet<IDisposable> _servicesToDispose = new(ReferenceEqualityComparer.Instance); 155if (checkDisposal && lspService is IDisposable disposable) 227ImmutableArray<IDisposable> disposableServices; 234foreach (var disposableService in disposableServices)
NoOpLspLogger.cs (2)
16public override IDisposable? CreateContext(string context) => null; 17public override IDisposable? CreateLanguageContext(string? context) => null;
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLspLogger.cs (2)
14public abstract IDisposable? CreateContext(string context); 15public abstract IDisposable? CreateLanguageContext(string? language);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractRequestScope.cs (1)
11internal abstract class AbstractRequestScope(string name) : IDisposable
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\ILspLogger.cs (2)
14IDisposable? CreateContext(string context); 15IDisposable? CreateLanguageContext(string? language);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
241using var loggerScope = _logger.CreateContext(work.MethodName); 251using var languageScope = _logger.CreateLanguageContext(language);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
src\Workspaces\CoreTestUtilities\Logging\TestOutputLoggerProvider.cs (1)
20public IDisposable BeginScope<TState>(TState state) where TState : notnull
Utilities\AbstractLanguageServerClientTests.cs (1)
21public abstract partial class AbstractLanguageServerClientTests(ITestOutputHelper testOutputHelper) : IDisposable
Microsoft.CodeAnalysis.PooledObjects.Package (2)
PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
Microsoft.CodeAnalysis.PublicApiAnalyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
111using var scope = _logger.BeginScope("Encoding");
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
37public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
src\VisualStudio\Core\Def\Telemetry\Shared\VisualStudioTelemetryLog.cs (1)
27public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
Microsoft.CodeAnalysis.Remote.Workspaces (5)
ServiceBrokerExtensions.cs (4)
17using ((IDisposable?)service) 27using ((IDisposable?)service) 37using ((IDisposable?)service) 47using ((IDisposable?)service)
SolutionAssetStorage.Scope.cs (1)
20SolutionCompilationState compilationState) : IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Microsoft.CodeAnalysis.Scripting (5)
Hosting\AssemblyLoader\AssemblyLoaderImpl.cs (1)
11internal abstract class AssemblyLoaderImpl(InteractiveAssemblyLoader loader) : IDisposable
Hosting\AssemblyLoader\ShadowCopy.cs (2)
23private readonly IDisposable _stream; 25internal FileShadowCopy(IDisposable stream, string originalPath, string fullPath)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
585IDisposable disposable = enumerator as IDisposable;
Microsoft.CodeAnalysis.Test.Utilities (3)
TempFiles\TempRoot.cs (3)
16private readonly ConcurrentBag<IDisposable> _temps = new ConcurrentBag<IDisposable>(); 29while (_temps.TryTake(out var temp))
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
Microsoft.CodeAnalysis.UnitTests (4)
Collections\List\IEnumerable.Generic.Tests.cs (2)
344if (enumerator2 is IDisposable d2) d2.Dispose(); 349if (enumerator1 is IDisposable d1) d1.Dispose();
Collections\List\IEnumerable.NonGeneric.Tests.cs (2)
134if (enumerator2 is IDisposable d2) d2.Dispose(); 139if (enumerator1 is IDisposable d1) d1.Dispose();
Microsoft.CodeAnalysis.Workspaces (84)
CodeActions\CodeAction.cs (1)
262using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Preview_Summary, $"Total");
ExternalAccess\Pythia\Api\PythiaEditDistanceWrapper.cs (1)
10internal readonly struct PythiaEditDistanceWrapper(string str) : IDisposable
ExternalAccess\Pythia\Api\PythiaObjectPool.cs (3)
14public static IDisposable GetInstance<T>(out T instance) where T : class, new() 21public static IDisposable GetInstance<T>(out Stack<T> instance) 28public static IDisposable GetInstance<T>(out HashSet<T> instance)
ExternalAccess\UnitTesting\Api\UnitTestingWorkspaceExtensions.cs (2)
11public static IDisposable RegisterTextDocumentOpenedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action) 14public static IDisposable RegisterTextDocumentClosedEventHandler(this Workspace workspace, Action<UnitTestingTextDocumentEventArgsWrapper> action)
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsyncToken.cs (1)
10internal sealed class VSTypeScriptAsyncToken(IAsyncToken underlyingObject) : IDisposable
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
116=> methodSymbol.Name == nameof(IDisposable.Dispose);
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
251Checksum checksum, Metadata? metadata) : IDisposable
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
57void IDisposable.Dispose()
Notification\AbstractGlobalOperationNotificationService.cs (2)
20private readonly HashSet<IDisposable> _registrations = []; 59public IDisposable Start(string operation)
Notification\AbstractGlobalOperationNotificationService.GlobalOperationRegistration.cs (1)
11private sealed class GlobalOperationRegistration(AbstractGlobalOperationNotificationService service) : IDisposable
Notification\IGlobalOperationNotificationService.cs (1)
28IDisposable Start(string operation);
PatternMatching\PatternMatcher.PatternSegment.cs (1)
18private struct PatternSegment(string text, bool allowFuzzyMatching) : IDisposable
Remote\IRemoteKeepAliveService.cs (2)
85/// cref="IDisposable.Dispose"/> is called on it. By pinning the solution we ensure that all calls to OOP for 104/// cref="IDisposable.Dispose"/> is called on it. By pinning the solution we ensure that all calls to OOP for
Remote\RemoteServiceCallbackDispatcher.cs (1)
19internal readonly struct Handle(ConcurrentDictionary<RemoteServiceCallbackId, object> callbackInstances, RemoteServiceCallbackId callbackId) : IDisposable
Shared\TestHooks\TaskExtensions.cs (2)
30public static Task CompletesTrackingOperation(this Task task, IDisposable token) 39static async Task CompletesTrackingOperationSlow(Task task, IDisposable token)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
246=> compilation.GetTypeByMetadataName(typeof(IDisposable).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
14bool onlyMethodTypeParameters) : SymbolVisitor, IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (8)
159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (2)
19public static IDisposable CreateLogBlock(ILogger logger, FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken) 32private sealed class RoslynLogBlock(ObjectPool<RoslynLogBlock> pool) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (2)
581/// Callers should <see cref="IDisposable.Dispose"/> the instance returned. No check is necessary if 582/// <c>default</c> was returned before calling <see cref="IDisposable.Dispose"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
148private readonly struct WaitThatValidatesInvariants(AsyncLazyImpl<TData> asyncLazy) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ConcatImmutableArray`1.cs (1)
53readonly void IDisposable.Dispose()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
32internal readonly struct EditDistance(string text) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReferenceCountedDisposable.cs (5)
11/// to a more base type. This can include types that do not implement <see cref="IDisposable"/> if you want to prevent a caller from accidentally 22/// <para>This call is not valid after <see cref="IDisposable.Dispose"/> is called. If this property or the target 23/// object is used concurrently with a call to <see cref="IDisposable.Dispose"/>, it is possible for the code to be 26/// <see cref="IDisposable.Dispose"/> is called is unspecified; code is expected to not use this property or the object 27/// it returns after any code invokes <see cref="IDisposable.Dispose"/>.</para>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
244public readonly struct SemaphoreDisposer(NonReentrantLock semaphore) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
14/// deterministically released (by calling <see cref="IDisposable.Dispose"/>) when the last reference is 34/// call to <see cref="IDisposable.Dispose"/> when the last reference to it is released. However, in the event 48/// <para>Do not call <see cref="IDisposable.Dispose"/> on the target object directly. It will be called 57where T : class, IDisposable 84/// Initializes a new reference counting wrapper around an <see cref="IDisposable"/> object.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (2)
15internal sealed class ReferenceCountedDisposableCache<TKey, TValue> where TValue : class, IDisposable 59private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable, ICacheEntry<TKey, TValue>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (3)
111: GetIDisposableInterfaceAndDisposeMethod(typeof(IDisposable).FullName!, nameof(IDisposable.Dispose)); 149.GetMembers(nameof(IDisposable.Dispose))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Progress\CodeAnalysisProgressExtensions.cs (1)
30public readonly struct ItemCompletedDisposer(IProgress<CodeAnalysisProgress> progress) : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (4)
29private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 59ImmutableArray<IDisposable> disposableServices; 68foreach (var service in disposableServices) 111if (checkAddDisposable && languageService is IDisposable disposable)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
15where T : IDisposable
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (4)
31private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance); 76ImmutableArray<IDisposable> disposableServices; 91foreach (var service in disposableServices) 121if (checkAddDisposable && serviceInstance is IDisposable disposable)
Storage\SQLite\v2\Interop\ResettableSqlStatement.cs (1)
27internal readonly struct ResettableSqlStatement(SqlStatement statement) : IDisposable
Storage\SQLite\v2\SQLitePersistentStorage.cs (5)
46public readonly IDisposable DatabaseOwnership; 98IDisposable databaseOwnership) 127var databaseOwnership = TryGetDatabaseOwnership(databaseFile); 141private static IDisposable? TryGetDatabaseOwnership(string databaseFilePath) 143return IOUtilities.PerformIO<IDisposable?>(() =>
Storage\SQLite\v2\SQLitePersistentStorage+PooledConnection.cs (1)
14private readonly struct PooledConnection(SQLitePersistentStorage storage, SqlConnection sqlConnection) : IDisposable
Telemetry\ITelemetryBlockLog.cs (1)
18public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs = -1);
Telemetry\TelemetryLogging.cs (2)
51public static IDisposable? LogBlockTime(FunctionId functionId, KeyValueLogMessage logMessage, int minThresholdMs = -1) 90public static IDisposable? LogBlockTimeAggregatedHistogram(FunctionId functionId, TelemetryLoggingInterpolatedStringHandler metricName, int minThresholdMs = -1)
Utilities\FlowControlHelper.cs (1)
15public readonly struct AsyncFlowControlHelper(AsyncFlowControl asyncFlowControl) : IDisposable
Workspace\Host\HostLanguageServices.cs (1)
15/// <para>Language services which implement <see cref="IDisposable"/> are considered ownable, in which case the
Workspace\Host\HostWorkspaceServices.cs (1)
18/// <para>Workspace services which implement <see cref="IDisposable"/> are considered ownable, in which case the
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
25/// Once this set is dropped, the loader will be explicitly <see cref="IDisposable.Dispose"/>'d in its finalizer.
Workspace\Workspace_EventsLegacy.cs (2)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new(); 116IDisposable? disposer = null;
Workspace\WorkspaceEventRegistration.cs (1)
17internal sealed class WorkspaceEventRegistration(WorkspaceEventMap eventMap, WorkspaceEventType eventType, WorkspaceEventHandlerAndOptions handlerAndOptions) : IDisposable
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
18/// implementing <see cref="IDisposable"/>, to be used with <c>using</c> statements while still allowing them to
src\Dependencies\PooledObjects\PooledDisposer.cs (2)
12bool discardLargeInstances = true) : IDisposable 15void IDisposable.Dispose()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Logging\TestOutputLoggerProvider.cs (1)
20public IDisposable BeginScope<TState>(TState state) where TState : notnull
Remote\InProcRemostHostClient.cs (2)
261private readonly IDisposable _service; 264public WrappedStream(IDisposable service, Stream stream)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
WorkspaceServiceTests\ReferenceCountedDisposableTests.cs (3)
20=> Assert.Throws<ArgumentNullException>("instance", () => new ReferenceCountedDisposable<IDisposable>(null)); 125=> Assert.Throws<ArgumentNullException>("reference", () => new ReferenceCountedDisposable<IDisposable>.WeakReference(null)); 129=> Assert.Null(default(ReferenceCountedDisposable<IDisposable>.WeakReference).TryAddReference());
Microsoft.CommonLanguageServerProtocol.Framework.Package (7)
AbstractLspLogger.cs (2)
14public abstract IDisposable? CreateContext(string context); 15public abstract IDisposable? CreateLanguageContext(string? language);
AbstractRequestScope.cs (1)
11internal abstract class AbstractRequestScope(string name) : IDisposable
ILspLogger.cs (2)
14IDisposable? CreateContext(string context); 15IDisposable? CreateLanguageContext(string? language);
RequestExecutionQueue.cs (2)
241using var loggerScope = _logger.CreateContext(work.MethodName); 251using var languageScope = _logger.CreateLanguageContext(language);
Microsoft.Data.Analysis.Tests (1)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
78void IDisposable.Dispose()
Microsoft.DotNet.Arcade.Sdk.Tests (3)
Utilities\TestProjectFixture.cs (3)
21private readonly ConcurrentQueue<IDisposable> _disposables = new ConcurrentQueue<IDisposable>(); 67if (_disposables.TryDequeue(out var disposable))
Microsoft.DotNet.AsmDiff (6)
AssemblySet.cs (2)
231var disposableHost = Host as IDisposable;
DiffCSharpWriter.cs (3)
198IDisposable style = null; 288IDisposable style = null; 311IDisposable style = null;
DiffRecorder.cs (1)
139public IDisposable StartStyle(SyntaxStyle style, object context)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\MSBuildLogger.cs (1)
51public IDisposable BeginScope<TState>(TState state)
Microsoft.DotNet.Build.Tasks.Installers (4)
src\ArReader.cs (1)
16public sealed class ArReader(Stream stream, bool leaveOpen) : IDisposable
src\CpioReader.cs (1)
17internal sealed class CpioReader(Stream stream, bool leaveOpen) : IDisposable
src\CpioWriter.cs (1)
17internal sealed class CpioWriter(Stream stream, bool leaveOpen) : IDisposable
src\RpmPackage.cs (1)
15internal sealed class RpmPackage(RpmLead lead, RpmHeader<RpmSignatureTag> signature, RpmHeader<RpmHeaderTag> header, MemoryStream archiveStream) : IDisposable
Microsoft.DotNet.Internal.SymbolHelper (4)
ScopedTracer.cs (1)
42public IDisposable AddSubScope(string scope) => new TokenScope(this, scope);
SymbolUploadHelper.cs (3)
187using IDisposable scopeToken = logger.AddSubScope(packageName); 208using IDisposable scopeToken = logger.AddSubScope(packageName); 416using IDisposable scopedTrace = logger.AddSubScope("symbol.exe");
Microsoft.DotNet.RemoteExecutor (8)
Program.cs (1)
105(instance as IDisposable)?.Dispose();
RemoteExecutor.cs (4)
459string consoleAppArgs = GetConsoleAppArgs(options, out IEnumerable<IDisposable> toDispose); 481private static string GetConsoleAppArgs(RemoteInvokeOptions options, out IEnumerable<IDisposable> toDispose) 517private static string GetRuntimeConfigPath(RemoteInvokeOptions options, out IEnumerable<IDisposable> toDispose) 555toDispose = new IDisposable[] { new FileDeleter(tempFile, configFile, devConfigFile) };
RemoteInvokeHandle.cs (3)
21public RemoteInvokeHandle(Process process, RemoteInvokeOptions options, string assemblyName = null, string className = null, string methodName = null, IEnumerable<IDisposable> subDisposables = null) 50private IEnumerable<IDisposable> SubDisposables { get; } 266foreach (IDisposable disposable in SubDisposables)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Modeler\Disposable.cs (1)
22public static IDisposable Create(Action onDispose)
Modeler\ServiceClientModelFactory.cs (4)
64private IDisposable WithMethodName(string name) 78private IDisposable WithParameterName(string name) 92private IDisposable WithTypeName(string name) 106private IDisposable WithPropertyName(string name)
Microsoft.DotNet.XUnitAssert.Tests (4)
TypeAssertsTests.cs (4)
52 Assert.IsAssignableFrom<IDisposable>(ex); 121 Assert.IsAssignableFrom(typeof(IDisposable), ex); 198 var result = Record.Exception(() => Assert.IsNotAssignableFrom<IDisposable>(ex)); 261 var result = Record.Exception(() => Assert.IsNotAssignableFrom(typeof(IDisposable), ex));
Microsoft.DotNet.XUnitExtensions (3)
src\Microsoft.DotNet.XUnitExtensions.Shared\XunitParallelTheoryTestCaseRunner.cs (3)
27private readonly List<IDisposable> _toDispose = new(); 92_toDispose.AddRange(dataRow.OfType<IDisposable>()); 150foreach (IDisposable disposable in _toDispose)
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
682else if (target is IDisposable d)
Microsoft.Extensions.AI.Abstractions.Tests (2)
TestChatClient.cs (1)
38void IDisposable.Dispose()
TestEmbeddingGenerator.cs (1)
35void IDisposable.Dispose()
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIInferenceChatClient.cs (1)
246void IDisposable.Dispose()
AzureAIInferenceEmbeddingGenerator.cs (1)
118void IDisposable.Dispose()
AzureAIInferenceImageEmbeddingGenerator.cs (1)
114void IDisposable.Dispose()
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (1)
28void IDisposable.Dispose() => _floatService.Dispose();
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
38void IDisposable.Dispose()
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (1)
101void IDisposable.Dispose()
OpenAIEmbeddingGenerator.cs (1)
87void IDisposable.Dispose()
OpenAIResponseChatClient.cs (1)
282void IDisposable.Dispose()
OpenAISpeechToTextClient.cs (1)
141void IDisposable.Dispose()
Microsoft.Extensions.AI.Tests (2)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (1)
38void IDisposable.Dispose()
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
35void IDisposable.Dispose()
Microsoft.Extensions.AsyncState.Tests (2)
AsyncContextTests.cs (2)
172var context = new AsyncContext<IDisposable>(state); 173var obj = new Mock<IDisposable>();
Microsoft.Extensions.Caching.Hybrid.Tests (3)
LogCollector.cs (2)
67void IDisposable.Dispose() 74IDisposable? ILogger.BeginScope<TState>(TState state) => null;
UnreliableL2Tests.cs (1)
121private static IDisposable GetServices(out HybridCache hc, out MemoryCache l1,
Microsoft.Extensions.Caching.Memory (5)
CacheEntry.CacheEntryTokens.cs (5)
21private List<IDisposable>? _expirationTokenRegistrations; 39_expirationTokenRegistrations ??= new List<IDisposable>(1); 40IDisposable registration = expirationToken.RegisterChangeCallback((Action<object?>)ExpirationCallback, cacheEntry); 91List<IDisposable>? registrations = _expirationTokenRegistrations; 97IDisposable registration = registrations[i];
Microsoft.Extensions.Caching.MicroBenchmarks (2)
DistributedCacheBenchmarks.cs (2)
34(sqlServer as IDisposable)?.Dispose(); 35(redis as IDisposable)?.Dispose();
Microsoft.Extensions.Configuration (10)
ChainedConfigurationProvider.cs (1)
93(_config as IDisposable)?.Dispose();
ConfigurationManager.cs (2)
37private readonly List<IDisposable> _changeTokenRegistrations = new(); 162foreach (IDisposable registration in _changeTokenRegistrations)
ConfigurationReloadToken.cs (1)
37public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
ConfigurationRoot.cs (4)
20private readonly List<IDisposable> _changeTokenRegistrations; 32_changeTokenRegistrations = new List<IDisposable>(providers.Count); 102foreach (IDisposable registration in _changeTokenRegistrations) 110(provider as IDisposable)?.Dispose();
ReferenceCountedProviders.cs (1)
73(provider as IDisposable)?.Dispose();
src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
98(e as IDisposable)?.Dispose();
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (2)
20private readonly IDisposable? _changeTokenRegistration; 161/// <param name="disposing"><c>true</c> if invoked from <see cref="IDisposable.Dispose"/>.</param>
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
17private readonly IDisposable? _changeTokenRegistration;
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
463public IDisposable RegisterChangeCallback(Action<object> callback, object state)
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\ServiceCallSite.cs (1)
28typeof(IDisposable).IsAssignableFrom(ImplementationType) ||
ServiceLookup\ServiceProviderEngineScope.cs (5)
80if (ReferenceEquals(this, service) || !(service is IDisposable || service is IAsyncDisposable)) 103if (service is IDisposable disposable) 128if (toDispose[i] is IDisposable disposable) 165((IDisposable)disposable).Dispose(); 193((IDisposable)disposable).Dispose();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
IServiceScope.cs (1)
12/// The <see cref="System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsSubscriptionManager.cs (1)
15private readonly IDisposable? _changeTokenRegistration;
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
60public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
277using var s1 = logger.BeginScope(42); 278using var s2 = logger.BeginScope("Hello World");
Microsoft.Extensions.FileProviders.Abstractions (1)
NullChangeToken.cs (1)
39public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (1)
210/// <param name="disposing"><c>true</c> is invoked from <see cref="IDisposable.Dispose"/>.</param>
PhysicalFilesWatcher.cs (1)
258/// <param name="disposing"><c>true</c> is invoked from <see cref="IDisposable.Dispose"/>.</param>
PollingFileChangeToken.cs (1)
116public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
PollingWildCardChangeToken.cs (1)
193IDisposable IChangeToken.RegisterChangeCallback(Action<object?> callback, object? state)
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
434case IDisposable disposable:
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
176/// <param name="disposing"><see langword="true" /> only when called from <see cref="IDisposable.Dispose"/>; otherwise, <see langword="false" />.</param>
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (1)
665/// instances being captured by DI as both implement <see cref="IDisposable"/>. This might lead to memory leaks if the client is resolved multiple times within a
Logging\LogHelper.cs (2)
51private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope = LoggerMessage.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}"); 105public static IDisposable? BeginRequestPipelineScope(this ILogger logger, HttpRequestMessage request, out string? formattedUri)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
DropMessageLogger.cs (1)
16public IDisposable? BeginScope<TState>(TState state)
StaticOptionsMonitor.cs (1)
21public IDisposable OnChange(Action<T, string> listener)
Microsoft.Extensions.Http.Polly (1)
PolicyHttpMessageHandler.cs (1)
161if (request.Properties.TryGetValue(PriorResponseKey, out var priorResult) && priorResult is IDisposable disposable)
Microsoft.Extensions.Http.Resilience (1)
Internal\RequestMessageSnapshot.cs (1)
72void IDisposable.Dispose() => _snapshots.Return(this);
Microsoft.Extensions.Logging (11)
Logger.cs (6)
116public IDisposable? BeginScope<TState>(TState state) where TState : notnull 277private IDisposable? _disposable0; 278private IDisposable? _disposable1; 279private readonly IDisposable?[]? _disposable; 285_disposable = new IDisposable[count - 2]; 289public void SetDisposable(int index, IDisposable? disposable)
LoggerFactory.cs (1)
26private readonly IDisposable? _changeTokenRegistration;
LoggerFactoryScopeProvider.cs (1)
91public IDisposable Push(object? state)
LoggerInformation.cs (1)
60public IDisposable? CreateScope<TState>(TState state) where TState : notnull
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
StaticFilterOptionsMonitor.cs (1)
16public IDisposable? OnChange(Action<LoggerFilterOptions, string> listener) => null;
Microsoft.Extensions.Logging.Abstractions (17)
IExternalScopeProvider.cs (2)
26/// <returns>The <see cref="IDisposable"/> token that removes scope on dispose.</returns> 27IDisposable Push(object? state);
ILogger.cs (2)
37/// <returns>An <see cref="IDisposable"/> that ends the logical operation scope on dispose.</returns> 38IDisposable? BeginScope<TState>(TState state) where TState : notnull;
LoggerExtensions.cs (1)
503public static IDisposable? BeginScope(
LoggerExternalScopeProvider.cs (1)
38public IDisposable Push(object? state)
LoggerMessage.cs (7)
21public static Func<ILogger, IDisposable?> DefineScope(string formatString) 36public static Func<ILogger, T1, IDisposable?> DefineScope<T1>(string formatString) 50public static Func<ILogger, T1, T2, IDisposable?> DefineScope<T1, T2>(string formatString) 65public static Func<ILogger, T1, T2, T3, IDisposable?> DefineScope<T1, T2, T3>(string formatString) 81public static Func<ILogger, T1, T2, T3, T4, IDisposable?> DefineScope<T1, T2, T3, T4>(string formatString) 98public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable?> DefineScope<T1, T2, T3, T4, T5>(string formatString) 116public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable?> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString)
LoggerT.cs (1)
33IDisposable? ILogger.BeginScope<TState>(TState state)
NullLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
NullLoggerT.cs (1)
20public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLogger.cs (1)
21public IDisposable BeginScope<TState>(TState state)
BatchingLoggerProvider.cs (1)
22private readonly IDisposable _optionsChangeToken;
Microsoft.Extensions.Logging.Console (8)
ConsoleLogger.cs (1)
109public IDisposable BeginScope<TState>(TState state) where TState : notnull => ScopeProvider?.Push(state) ?? NullScope.Instance;
ConsoleLoggerExtensions.Obsolete.cs (1)
171public IDisposable RegisterChangeCallback(Action<object?> callback, object? state) => this;
ConsoleLoggerProvider.cs (1)
26private readonly IDisposable? _optionsReloadToken;
FormatterOptionsMonitor.cs (1)
23public IDisposable? OnChange(Action<TOptions, string> listener)
JsonConsoleFormatter.cs (1)
20private readonly IDisposable? _optionsReloadToken;
SimpleConsoleFormatter.cs (1)
25private readonly IDisposable? _optionsReloadToken;
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
SystemdConsoleFormatter.cs (1)
15private readonly IDisposable? _optionsReloadToken;
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.EventLog (2)
EventLogLogger.cs (1)
57public IDisposable? BeginScope<TState>(TState state) where TState : notnull
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
164public IDisposable BeginScope<TState>(TState state) where TState : notnull
src\libraries\Common\src\Extensions\Logging\NullExternalScopeProvider.cs (1)
28IDisposable IExternalScopeProvider.Push(object? state)
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
81public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.ML (2)
ModelReloadToken.cs (1)
42public IDisposable RegisterChangeCallback(Action<object> callback, object state) => _cts.Token.Register(callback, state);
PoolLoader.cs (1)
23private readonly IDisposable _changeTokenRegistration;
Microsoft.Extensions.ML.Tests (3)
FileLoaderTests.cs (1)
70using IDisposable changeTokenRegistration = ChangeToken.OnChange(
UriLoaderTests.cs (2)
51using IDisposable changeTokenRegistration = ChangeToken.OnChange( 73using IDisposable changeTokenRegistration = ChangeToken.OnChange(
Microsoft.Extensions.ObjectPool (2)
DefaultObjectPoolProvider.cs (1)
24if (typeof(IDisposable).IsAssignableFrom(typeof(T)))
DisposableObjectPool.cs (1)
62if (item is IDisposable disposable)
Microsoft.Extensions.Options (9)
IOptionsMonitor.cs (2)
31/// <returns>An <see cref="IDisposable"/> that should be disposed to stop listening for changes.</returns> 32IDisposable? OnChange(Action<TOptions, string?> listener);
OptionsMonitor.cs (6)
22private readonly List<IDisposable> _registrations = new List<IDisposable>(); 38IDisposable registration = ChangeToken.OnChange( 108/// <returns>An <see cref="IDisposable"/> that should be disposed to stop listening for changes.</returns> 109public IDisposable OnChange(Action<TOptions, string> listener) 122foreach (IDisposable registration in _registrations)
OptionsMonitorExtensions.cs (1)
21public static IDisposable? OnChange<[DynamicallyAccessedMembers(Options.DynamicallyAccessedMembers)] TOptions>(
Microsoft.Extensions.Primitives (16)
CancellationChangeToken.cs (1)
35public IDisposable RegisterChangeCallback(Action<object?> callback, object? state)
ChangeToken.cs (7)
20public static IDisposable OnChange(Func<IChangeToken?> changeTokenProducer, Action changeTokenConsumer) 41public static IDisposable OnChange<TState>(Func<IChangeToken?> changeTokenProducer, Action<TState> changeTokenConsumer, TState state) 60private IDisposable? _disposable; 101IDisposable registraton = token.RegisterChangeCallback(s => ((ChangeTokenRegistration<TState>?)s)!.OnChangeTokenFired(), this); 110private void SetDisposable(IDisposable disposable) 115IDisposable? current = Volatile.Read(ref _disposable); 125IDisposable? previous = Interlocked.CompareExchange(ref _disposable, disposable, current);
CompositeChangeToken.cs (5)
21private List<IDisposable>? _disposables; 55public IDisposable RegisterChangeCallback(Action<object?> callback, object? state) 104_disposables = new List<IDisposable>(); 109IDisposable disposable = ChangeTokens[i].RegisterChangeCallback(_onChangeDelegate, this); 148List<IDisposable>? disposables = compositeChangeTokenState._disposables;
IChangeToken.cs (2)
30/// <returns>An <see cref="IDisposable"/> that is used to unregister the callback.</returns> 31IDisposable RegisterChangeCallback(Action<object?> callback, object? state);
src\libraries\Common\src\Extensions\ChangeCallbackRegistrar.cs (1)
22internal static IDisposable UnsafeRegisterChangeCallback<T>(Action<object?> callback, object? state, CancellationToken token, Action<T> onFailure, T onFailureState)
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcher.cs (1)
35private IDisposable? _changeTokenRegistration;
Microsoft.Extensions.Telemetry (13)
Buffering\GlobalBuffer.cs (1)
28private readonly IDisposable? _optionsChangeTokenRegistration;
Logging\ExtendedLogger.cs (1)
69public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLogger.Scope.cs (5)
14private readonly IDisposable?[]? _disposable; 16private IDisposable? _disposable0; 17private IDisposable? _disposable1; 23_disposable = new IDisposable[count - NumInlineDisposables]; 27public void SetDisposable(int index, IDisposable? disposable)
Logging\ExtendedLoggerFactory.cs (3)
24private readonly IDisposable? _filterOptionsChangeTokenRegistration; 26private readonly IDisposable? _enrichmentOptionsChangeTokenRegistration; 27private readonly IDisposable? _redactionOptionsChangeTokenRegistration;
Logging\Import\LoggerFactoryScopeProvider.cs (1)
110public IDisposable Push(object? state)
Logging\Import\LoggerInformation.cs (1)
75public IDisposable? CreateScope<TState>(TState state) where TState : notnull
Sampling\RandomProbabilisticSampler.cs (1)
29private readonly IDisposable? _samplerOptionsChangeTokenRegistration;
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
25public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Telemetry.Tests (13)
Logging\ExtendedLoggerFactoryTests.cs (9)
72Mock.Get<IDisposable>(disposableProvider1) 74Mock.Get<IDisposable>(disposableProvider2) 101disposableProvider.As<IDisposable>() 112throwingProvider.As<IDisposable>() 122throwingProvider.As<IDisposable>() 470var scope = logger.BeginScope("Scope"); 482var scope = logger.BeginScope("Scope"); 565public IDisposable BeginScope<TState>(TState state) 607public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLoggerTests.cs (3)
1065public IDisposable? BeginScope<TState>(TState state) 1152public IDisposable? BeginScope<TState>(TState state) 1223public IDisposable? OnChange(Action<T, string> listener) => null;
Logging\SerialExtendedLoggerTests.cs (1)
96public IDisposable? OnChange(Action<T, string> listener) => null;
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
60public IDisposable? BeginScope<TState>(TState state)
Microsoft.Maui (10)
Animations\AnimationManager.cs (1)
116 if (disposing && Ticker is IDisposable disposable)
Hosting\MauiApp.cs (3)
42 (_services as IDisposable)?.Dispose(); 57 (_services as IDisposable)?.Dispose(); 65 (Configuration as IDisposable)?.Dispose();
Hosting\MauiAppBuilder.cs (1)
194 public IDisposable BeginScope<TState>(TState state) where TState : notnull => this;
ImageSources\ImageSourceServiceResultManager.cs (3)
27 IDisposable? _sourceResult; 48 CompleteLoad((IDisposable?)result); 73 public void CompleteLoad(IDisposable? result)
Platform\ViewExtensions.cs (2)
129 internal static IDisposable OnUnloaded(this IElement element, Action action) 148 internal static IDisposable OnLoaded(this IElement element, Action action)
Microsoft.Maui.Controls (10)
AnimationExtensions.cs (1)
215 public static IDisposable Batch(this IAnimatable self) => new BatchObject(self);
ListProxy.cs (6)
149 var dispose = _enumerator as IDisposable; 305 var dispose = _enumerator as IDisposable; 337 var dispose = _enumerator as IDisposable;
Performance.cs (1)
58 internal static IDisposable StartNew(string tag = null, [CallerFilePath] string path = null, [CallerMemberName] string member = null)
StreamWrapper.cs (2)
14 IDisposable _additionalDisposable; 21 public StreamWrapper(Stream wrapped, IDisposable additionalDisposable)
Microsoft.Maui.Graphics (1)
PathF.cs (1)
1268 if (_platformPath is IDisposable disposable)
Microsoft.ML.Core (3)
ComponentModel\AssemblyLoadingUtils.cs (1)
85public static IDisposable CreateAssemblyRegistrar(IHostEnvironment env, string loadAssembliesPath = null)
Data\WrappingRow.cs (1)
38/// <see cref="IDisposable.Dispose"/> method, but subclasses can enable additional functionality
Environment\ConsoleEnvironment.cs (1)
423internal IDisposable RedirectChannelOutput(TextWriter newOutWriter, TextWriter newErrWriter)
Microsoft.ML.Data (12)
DataLoadSave\TransformerChain.cs (1)
265(transformer as IDisposable)?.Dispose();
DataView\CompositeRowToRowMapper.cs (1)
131(mapper as IDisposable)?.Dispose();
DataView\SimpleRow.cs (1)
36/// <see cref="IDisposable.Dispose"/>, prior to disposing <paramref name="input"/>.</param>
Prediction\PredictionEngine.cs (1)
147(Transformer as IDisposable)?.Dispose();
Scorers\MulticlassClassificationScorer.cs (1)
393(_bindable as IDisposable)?.Dispose();
Scorers\PredictedLabelScorerBase.cs (2)
450(Bindings.RowMapper as IDisposable)?.Dispose(); 451(Bindable as IDisposable)?.Dispose();
Scorers\PredictionTransformer.cs (3)
193(Model as IDisposable)?.Dispose(); 194(BindableMapper as IDisposable)?.Dispose(); 195(Scorer as IDisposable)?.Dispose();
Scorers\SchemaBindablePredictorWrapper.cs (2)
254(_parent as IDisposable)?.Dispose(); 269(Predictor as IDisposable)?.Dispose();
Microsoft.ML.DataView (2)
DataViewType.cs (1)
80if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(RawType.GetTypeInfo()))
IDataView.cs (1)
174/// <param name="disposing">Whether this was called from <see cref="IDisposable.Dispose"/>.
Microsoft.ML.FastTree (1)
Utils\Timer.cs (1)
238void IDisposable.Dispose()
Microsoft.ML.GenAI.Core (2)
Pipeline\CausalLMPipeline.cs (2)
134using var noGrad = torch.no_grad(); 307using var noGrad = torch.no_grad();
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
75void IDisposable.Dispose()
Microsoft.ML.OnnxTransformerTest (18)
OnnxTransformTests.cs (18)
170(onnxTransformer as IDisposable)?.Dispose(); 232(transformer as IDisposable)?.Dispose(); 268(loadedModel as IDisposable)?.Dispose(); 285(model as IDisposable)?.Dispose(); 319(loadedModel as IDisposable)?.Dispose(); 336(model as IDisposable)?.Dispose(); 384(onnxTransformer as IDisposable)?.Dispose(); 419(onnxTransformer as IDisposable)?.Dispose(); 459(onnxTransformer as IDisposable)?.Dispose(); 499(onnxTransformer as IDisposable)?.Dispose(); 519(onnxTransformer as IDisposable)?.Dispose(); 545(onnxTransformer as IDisposable)?.Dispose(); 658(model as IDisposable)?.Dispose(); 730(onnxTransformer as IDisposable)?.Dispose(); 783(onnxTransformer as IDisposable)?.Dispose(); 949(onnxTransformer[i] as IDisposable)?.Dispose(); 1112(model as IDisposable)?.Dispose(); 1113(loadedModel as IDisposable)?.Dispose();
Microsoft.ML.Sweeper (4)
AsyncSweeper.cs (2)
137(_baseSweeper as IDisposable)?.Dispose(); 306(_baseSweeper as IDisposable)?.Dispose();
SweepCommand.cs (2)
110var d = _sweeper as IDisposable;
Microsoft.ML.TensorFlow.Tests (23)
TensorflowTests.cs (23)
180(transformer as IDisposable)?.Dispose(); 228(trans as IDisposable)?.Dispose(); 341(trans as IDisposable)?.Dispose(); 496(trans as IDisposable)?.Dispose(); 687(trainedModel as IDisposable)?.Dispose(); 750(trainedModel as IDisposable)?.Dispose(); 863(trainedModel as IDisposable)?.Dispose(); 914(trainedModel as IDisposable)?.Dispose(); 1054(trans as IDisposable)?.Dispose(); 1095(trans as IDisposable)?.Dispose(); 1210(testTransformer as IDisposable)?.Dispose(); 1300(model as IDisposable)?.Dispose(); 1302(pipelineModel as IDisposable)?.Dispose(); 1439(loadedModel as IDisposable)?.Dispose(); 1440(trainedModel as IDisposable)?.Dispose(); 1588(loadedModel as IDisposable)?.Dispose(); 1589(trainedModel as IDisposable)?.Dispose(); 1751(loadedModel as IDisposable)?.Dispose(); 1752(trainedModel as IDisposable)?.Dispose(); 1834(loadedModel as IDisposable)?.Dispose(); 1835(trainedModel as IDisposable)?.Dispose(); 1904(loadedModel as IDisposable)?.Dispose(); 1905(trainedModel as IDisposable)?.Dispose();
Microsoft.ML.TestFramework (3)
BaseTestClass.cs (1)
78void IDisposable.Dispose()
DataPipe\TestDataPipeBase.cs (2)
150(loadedTransformer as IDisposable)?.Dispose(); 151if (shouldDispose) (transformer as IDisposable)?.Dispose();
Microsoft.ML.Tests (7)
OnnxConversionTest.cs (7)
832(onnxTransformer as IDisposable)?.Dispose(); 992(onnxTransformer as IDisposable)?.Dispose(); 1530(onnxTransformer as IDisposable)?.Dispose(); 1636(onnxTransformer as IDisposable)?.Dispose(); 1830(onnxTransformer as IDisposable)?.Dispose(); 1831(onnxTransformer2 as IDisposable)?.Dispose(); 2263(onnxTransformer as IDisposable)?.Dispose();
Microsoft.ML.Transforms (5)
LambdaTransform.cs (2)
83/// <typeparamref name="TState"/> implement the <see cref="IDisposable" /> interface, they will be disposed after use. 126/// If <typeparamref name="TSrc"/> or <typeparamref name="TState"/> implement the <see cref="IDisposable" /> interface, they will be disposed after use.
StatefulFilterTransform.cs (3)
175if (_state is IDisposable disposableState) 177if (_src is IDisposable disposableSrc) 179if (_dst is IDisposable disposableDst)
Microsoft.NET.StringTools (1)
StringTools.cs (1)
63/// Call <see cref="IDisposable.Dispose"/> on the returned instance to recycle it.
Microsoft.NET.StringTools.net35 (1)
StringTools.cs (1)
63/// Call <see cref="IDisposable.Dispose"/> on the returned instance to recycle it.
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (1)
41Private Sub Dispose() Implements IDisposable.Dispose
Microsoft.VisualStudio.LanguageServices (34)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
227using (var _ = collectionView.DeferRefresh())
EditorConfigSettings\Common\SettingsViewModelBase.cs (1)
63public IDisposable Subscribe(ITableDataSink sink)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (2)
332public IDisposable Subscribe(ITableDataSink sink) 647void IDisposable.Dispose()
Implementation\VisualStudioUIContextActivationService.cs (1)
19public IDisposable ExecuteWhenActivated(Guid uiContext, Action action)
InheritanceMargin\InheritanceGlyphManager.cs (1)
82void IDisposable.Dispose()
InheritanceMargin\InheritanceMarginViewMargin.cs (2)
88void IDisposable.Dispose() 99((IDisposable)_glyphManager).Dispose();
LanguageClient\LogHubLspLogger.cs (2)
40public override IDisposable? CreateContext(string context) => null; 41public override IDisposable? CreateLanguageContext(string? language) => null;
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (2)
41private IDisposable? _navigationBarController; 161var newController = controllerFactoryService.CreateController(navigationBarClient, textBuffer!);
Packaging\PackageInstallerServiceFactory.cs (1)
509using (nugetService as IDisposable)
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (1)
116void IDisposable.Dispose()
PreviewPane\PreviewPane.xaml.cs (1)
342void IDisposable.Dispose()
Progression\GraphQueries\CallsGraphQuery.cs (1)
22using var _ = Logger.LogBlock(FunctionId.GraphQuery_Calls, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Progression\GraphQueries\ContainsGraphQuery.cs (1)
19using var _ = Logger.LogBlock(FunctionId.GraphQuery_Contains, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Progression\GraphQueries\InheritedByGraphQuery.cs (1)
20using var _ = Logger.LogBlock(FunctionId.GraphQuery_InheritedBy, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Progression\GraphQueries\InheritsGraphQuery.cs (1)
20using var _ = Logger.LogBlock(FunctionId.GraphQuery_Inherits, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Progression\GraphQueries\OverriddenByGraphQuery.cs (1)
18using var _ = Logger.LogBlock(FunctionId.GraphQuery_OverriddenBy, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
Progression\GraphQueries\SearchGraphQuery.cs (1)
22using var _ = Logger.LogBlock(FunctionId.GraphQuery_Search, KeyValueLogMessage.Create(LogType.UserAction), cancellationToken);
ProjectSystem\CPS\IWorkspaceProjectContext.cs (1)
18/// <see cref="IDisposable.Dispose"/> is safe to call on instances of this type on any thread.
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
417void IDisposable.Dispose()
RoslynPackage.cs (1)
269IDisposable? localRegistration = null;
SolutionEventMonitor.cs (3)
25private readonly Dictionary<string, IDisposable> _operations = []; 48foreach (var globalOperation in _operations.Values) 77if (_operations.TryGetValue(operation, out var globalOperation))
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
52[SymbolSearchOptionsStorage.SearchReferenceAssemblies, SymbolSearchOptionsStorage.SearchNuGetPackages]), ISymbolSearchService, IDisposable
Telemetry\Shared\AggregatingHistogramLog.cs (1)
37public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
Telemetry\Shared\VisualStudioTelemetryLog.cs (1)
27public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
28public IDisposable Subscribe(ITableDataSink sink)
UnusedReferences\UnusedReferenceAnalysisService.cs (1)
28using var logger = Logger.LogBlock(FunctionId.UnusedReferences_GetUnusedReferences, message: null, cancellationToken, LogLevel.Information);
ValueTracking\ValueTrackingCommandHandler.cs (1)
82using var logger = Logger.LogBlock(FunctionId.ValueTracking_Command, CancellationToken.None, LogLevel.Information);
Workspace\VisualStudioDocumentNavigationService.cs (1)
420private static IDisposable OpenNewDocumentStateScope(NavigationOptions options)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
60IVsService<SVsUIShell, IVsUIShell> vsUIShellProvider) : IDisposable
Microsoft.VisualStudio.LanguageServices.DevKit (4)
SourceLink\VSCodeSourceLinkService.cs (2)
29using ((IDisposable?)proxy) 53using ((IDisposable?)proxy)
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
37public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
src\VisualStudio\Core\Def\Telemetry\Shared\VisualStudioTelemetryLog.cs (1)
27public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs)
MSBuild (2)
RegisteredTaskObjectCacheBase.cs (2)
148IDisposable disposable = obj as IDisposable;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
294[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
Mvc.Api.Analyzers.Test (5)
MvcFactsTest.cs (2)
185var method = typeSymbol.GetMembers(nameof(IDisposable.Dispose)).OfType<IMethodSymbol>().First(f => !f.ReturnsVoid); 212return (IMethodSymbol)type.GetMembers(nameof(IDisposable.Dispose)).First();
TestFiles\MvcFactsTest\IsControllerActionTests.cs (3)
57void IDisposable.Dispose() { } 69void IDisposable.Dispose() { } 76void IDisposable.Dispose() { }
netstandard (1)
netstandard.cs (1)
869[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\StreamGeometryContext.cs (1)
55void IDisposable.Dispose()
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
162((IDisposable)_reader).Dispose();
PresentationCore (41)
MS\Internal\DpiUtil\DpiUtil.cs (2)
161/// An <see cref="IDisposable"/> that defines a scope during which the DPI_AWARENESS_CONTEXT of the current thread is 164internal static IDisposable WithDpiAwarenessContext(DpiAwarenessContextValue dpiAwarenessContext)
MS\Internal\Generic\Span.cs (1)
380void IDisposable.Dispose()
MS\Internal\IO\Packaging\NetStream.cs (1)
1198((IDisposable)_byteRangeDownloader).Dispose();
MS\Internal\MediaTrace.cs (3)
115public IDisposable Indented() 121public IDisposable Indented(string message) 128void IDisposable.Dispose()
System\IO\Packaging\PackWebResponse.cs (1)
524((IDisposable)_fullResponse).Dispose();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
2002internal virtual IDisposable UpdateChildren()
System\Windows\FreezableCollection.cs (2)
920private IDisposable BlockReentrancy() 992void IDisposable.Dispose()
System\Windows\Generated\TextDecorationCollection.cs (1)
757void IDisposable.Dispose()
System\Windows\Markup\XmlLanguage.cs (1)
608void IDisposable.Dispose() { }
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
756void IDisposable.Dispose()
System\Windows\Media\ByteStreamGeometryContext.cs (1)
54((IDisposable)this).Dispose();
System\Windows\Media\CharacterMetricsDictionary.cs (1)
533void IDisposable.Dispose()
System\Windows\Media\DrawingContext.cs (1)
78void IDisposable.Dispose()
System\Windows\Media\DrawingDrawingContext.cs (1)
1126((IDisposable)this).Dispose();
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
759void IDisposable.Dispose()
System\Windows\Media\Generated\DoubleCollection.cs (1)
784void IDisposable.Dispose()
System\Windows\Media\Generated\DrawingCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\GeometryCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\GradientStopCollection.cs (1)
869void IDisposable.Dispose()
System\Windows\Media\Generated\Int32Collection.cs (1)
784void IDisposable.Dispose()
System\Windows\Media\Generated\PathFigureCollection.cs (1)
856void IDisposable.Dispose()
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\PointCollection.cs (1)
786void IDisposable.Dispose()
System\Windows\Media\Generated\TextEffectCollection.cs (1)
766void IDisposable.Dispose()
System\Windows\Media\Generated\TransformCollection.cs (1)
801void IDisposable.Dispose()
System\Windows\Media\Generated\VectorCollection.cs (1)
786void IDisposable.Dispose()
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
141void IDisposable.Dispose()
System\Windows\Media\RenderDataDrawingContext.cs (1)
51((IDisposable)this).Dispose();
System\Windows\Media\StreamGeometryContext.cs (1)
55void IDisposable.Dispose()
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
764void IDisposable.Dispose()
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
785void IDisposable.Dispose()
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
799void IDisposable.Dispose()
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
785void IDisposable.Dispose()
System\Windows\Media3D\Visual3DCollection.cs (1)
644void IDisposable.Dispose()
PresentationFramework (93)
Microsoft\Win32\CommonItemDialog.cs (1)
740void IDisposable.Dispose()
MS\Internal\Data\CollectionViewProxy.cs (1)
180public override IDisposable DeferRefresh()
MS\Internal\Data\CompositeCollectionView.cs (2)
1582IDisposable d = _containerEnumerator as IDisposable;
MS\Internal\Data\EnumerableCollectionView.cs (4)
181public override IDisposable DeferRefresh() 551IDisposable id = ie as IDisposable; 591private IDisposable IgnoreViewEvents()
MS\Internal\Data\IndexedEnumerable.cs (6)
184IDisposable d = ie as IDisposable; 452IDisposable d = ie as IDisposable; 757IDisposable d = _enumerator as IDisposable;
MS\Internal\Data\PropertyPathWorker.cs (2)
199internal IDisposable SetContext(object rootItem) 1769void IDisposable.Dispose()
MS\Internal\DataStreams.cs (1)
144((IDisposable)byteStream).Dispose( );
MS\Internal\Documents\DocumentGrid.cs (1)
1662((IDisposable)dp).Dispose();
MS\Internal\Documents\DocumentGridPage.cs (3)
342IDisposable dpv = _documentPageView as IDisposable; 362void IDisposable.Dispose()
MS\Internal\Documents\HostedElements.cs (1)
41void IDisposable.Dispose()
MS\Internal\Documents\UIElementIsland.cs (1)
159/// <see cref="IDisposable.Dispose"/>
MS\Internal\ListOfObject.cs (1)
128void IDisposable.Dispose()
MS\Internal\Printing\Win32PrintDialog.cs (1)
291using (IDisposable converter = new PrintTicketConverter(printerName, 1))
MS\Internal\PtsHost\StructuralCache.cs (13)
75internal IDisposable SetDocumentFormatContext(FlowDocumentPage currentPage) 82return (new DocumentFormatContext(this, currentPage) as IDisposable); 90internal IDisposable SetDocumentArrangeContext(FlowDocumentPage currentPage) 92return (new DocumentArrangeContext(this, currentPage) as IDisposable); 100internal IDisposable SetDocumentVisualValidationContext(FlowDocumentPage currentPage) 102return (new DocumentVisualValidationContext(this, currentPage) as IDisposable); 634/// <see cref="IDisposable.Dispose"/> 682/// <see cref="IDisposable.Dispose"/> 684void IDisposable.Dispose() 823/// <see cref="IDisposable.Dispose"/> 825void IDisposable.Dispose() 875/// <see cref="IDisposable.Dispose"/> 877void IDisposable.Dispose()
MS\Internal\Utility\MonitorWrapper.cs (1)
19public IDisposable Enter()
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
413internal override IDisposable UpdateChildren() 534void IDisposable.Dispose() 758void IDisposable.Dispose()
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
218internal override IDisposable UpdateChildren()
System\Windows\Controls\ColumnDefinition.cs (1)
857/// <see cref="IDisposable.Dispose"/>
System\Windows\Controls\DataGrid.cs (3)
4919IDisposable d = enumerator as IDisposable; 5228private IDisposable UpdateSelectedCells()
System\Windows\Controls\DataGridCellsPanel.cs (2)
257IDisposable generatorState = null; 534ref IDisposable generatorState,
System\Windows\Controls\ItemCollection.cs (3)
705public override IDisposable DeferRefresh() 1952IDisposable deferInnerRefresh = _deferInnerRefresh; 2449private IDisposable _deferInnerRefresh;
System\Windows\Controls\ItemContainerGenerator.cs (5)
191IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction) 204IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem) 213public IDisposable GenerateBatches() 1460void IDisposable.Dispose() 1584void IDisposable.Dispose()
System\Windows\Controls\ListBox.cs (2)
886IDisposable d = enumerator as IDisposable;
System\Windows\Controls\Primitives\DocumentPageView.cs (5)
837if (_documentPage is IDisposable) 839((IDisposable)_documentPage).Dispose(); 859if (_documentPageAsync is IDisposable) 861((IDisposable)_documentPageAsync).Dispose(); 1035void IDisposable.Dispose()
System\Windows\Controls\Primitives\IItemContainerGenerator.cs (2)
34IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction); 44IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem);
System\Windows\Controls\Primitives\Selector.cs (1)
2793public IDisposable DeferRemove()
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
406public IDisposable DeclareChangeBlock()
System\Windows\Controls\RowDefinition.cs (1)
852/// <see cref="IDisposable.Dispose"/>
System\Windows\Controls\SelectedItemCollection.cs (1)
145private IDisposable ChangeSelectedItems()
System\Windows\Data\BindingExpression.cs (1)
2552internal IDisposable ChangingValue()
System\Windows\Data\BindingOperations.cs (2)
560internal static IDisposable EnableExceptionLogging() 585void IDisposable.Dispose()
System\Windows\Data\CollectionContainer.cs (2)
98IDisposable d = enumerator as IDisposable;
System\Windows\Data\CollectionView.cs (5)
124IDisposable d = e as IDisposable; 320public virtual IDisposable DeferRefresh() 1565IDisposable d = ie as IDisposable;
System\Windows\Data\CollectionViewSource.cs (1)
696public IDisposable DeferRefresh()
System\Windows\Documents\ITextRange.cs (2)
198IDisposable DeclareChangeBlock(); 202IDisposable DeclareChangeBlock(bool disableScroll);
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
59void IDisposable.Dispose()
System\Windows\Documents\TextRange.cs (5)
260IDisposable ITextRange.DeclareChangeBlock() 268IDisposable ITextRange.DeclareChangeBlock(bool disableScroll) 1512internal IDisposable DeclareChangeBlock() 1523internal IDisposable DeclareChangeBlock(bool disableScroll) 1847void IDisposable.Dispose()
System\Windows\Navigation\NavigationService.cs (2)
4448IDisposable disposable = node as IDisposable;
System\Windows\PropertyPath.cs (1)
222internal IDisposable SetContext(object rootItem)
System\Windows\Window.cs (1)
7700void IDisposable.Dispose()
PresentationUI (10)
MS\Internal\Documents\Application\Document.cs (2)
108/// <see cref="System.IDisposable"/> 128/// <see cref="System.IDisposable"/>
MS\Internal\Documents\Application\DocumentManager.cs (2)
131IDisposable disposable = controller as IDisposable;
MS\Internal\Documents\Application\DocumentStream.cs (1)
651void IDisposable.Dispose()
MS\Internal\Documents\Application\RightsController.cs (3)
420void IDisposable.Dispose() 422IDisposable provider = _provider as IDisposable;
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
291((IDisposable)_tempPackage).Dispose(); 297((IDisposable)_originalPackage).Dispose();
ReachFramework (11)
Packaging\PartEditor.cs (1)
134IDisposable.Dispose(
Packaging\XpsDocument.cs (1)
942IDisposable.Dispose(
Packaging\XpsFixedDocumentReaderWriter.cs (1)
1261IDisposable.Dispose(
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
730IDisposable.Dispose(
Packaging\XpsFixedPageReaderWriter.cs (1)
2102IDisposable.Dispose(
Packaging\XpsManager.cs (1)
1333IDisposable.Dispose(
Packaging\XpsResource.cs (1)
160IDisposable.Dispose()
PrintConfig\PTConverter.cs (1)
295void IDisposable.Dispose()
Serialization\Manager\MetroSerializationManager.cs (1)
75IDisposable.Dispose()
Serialization\Manager\ReachSerializer.cs (1)
392IDisposable.Dispose()
Serialization\Manager\XpsPackagingPolicy.cs (1)
483IDisposable.Dispose(
Roslyn.Diagnostics.Analyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Roslyn.Test.PdbUtilities (5)
EditAndContinue\EditAndContinueTest.cs (2)
22internal abstract partial class EditAndContinueTest<TSelf>(ITestOutputHelper? output = null, Verification? verification = null) : IDisposable 26private readonly List<IDisposable> _disposables = [];
Reader\SymReaderFactory.cs (1)
87public static ISymUnmanagedReader5 CreateReader(Stream pdbStream, MetadataReader metadataReaderOpt, IDisposable metadataMemoryOwnerOpt)
Shared\DummyMetadataImport.cs (2)
21private readonly IDisposable _metadataOwnerOpt; 24public DummyMetadataImport(MetadataReader metadataReaderOpt, IDisposable metadataOwnerOpt)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Panels\TelemetryPanel.xaml.cs (1)
136private static IDisposable Disable(UIElement control)
SignalRSamples (1)
ObservableExtensions.cs (1)
28var disposable = observable.Subscribe(
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
44void IDisposable.Dispose()
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
1466readonly void IDisposable.Dispose() { } 1660readonly void IDisposable.Dispose() { } 1904readonly void IDisposable.Dispose() { }
System.Collections.Concurrent (1)
System\Collections\Concurrent\OrderablePartitioner.cs (1)
232(_source as IDisposable)?.Dispose();
System.Collections.Immutable (6)
System\Collections\Frozen\FrozenDictionary.cs (1)
721void IDisposable.Dispose() { }
System\Collections\Frozen\FrozenSet.cs (1)
530void IDisposable.Dispose() { }
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (2)
14/// It is important that this enumerator does NOT implement <see cref="IDisposable"/>. 69/// An array enumerator that implements <see cref="IEnumerator{T}"/> pattern (including <see cref="IDisposable"/>).
System\Collections\Immutable\IStrongEnumerator_1.cs (2)
9/// An <see cref="IEnumerator{T}"/>-like interface that does not derive from <see cref="IDisposable"/>. 14/// <see cref="IDisposable"/> since it increases the size of the generated code in foreach.
System.ComponentModel.Composition (49)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (1)
77return typeof(IDisposable).IsAssignableFrom(GetPartType());
System\ComponentModel\Composition\ExportServices.cs (3)
75if (export is IDisposable disposable) 94if (export is IDisposable disposable) 109if (export is IDisposable disposable)
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (6)
12private readonly IDisposable _disposable; 14public DisposableLazy(Func<T> valueFactory, TMetadataView metadataView, IDisposable disposable, LazyThreadSafetyMode mode) 22void IDisposable.Dispose() 30private readonly IDisposable _disposable; 32public DisposableLazy(Func<T> valueFactory, IDisposable disposable, LazyThreadSafetyMode mode) 40void IDisposable.Dispose()
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
164void IDisposable.Dispose()
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (9)
42private readonly HashSet<IDisposable> _partsToDispose = new HashSet<IDisposable>(); 221HashSet<IDisposable>? partsToDispose = null; 267foreach (var part in partsToDispose) 454if (part is IDisposable disposablePart) 481IDisposable? disposableNewPart = newPart as IDisposable; 572if (catalogPart.Part is IDisposable diposablePart) 736if (newPart is IDisposable newDisposablePart)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (1)
126if (_export is IDisposable disposable)
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (11)
20private IDisposable? _disposableRootProvider; 23private IDisposable? _disposableLocalExportProvider; 25private IDisposable? _disposableAncestorExportProvider; 160_disposableLocalExportProvider = _localExportProvider as IDisposable; 174_disposableAncestorExportProvider = _ancestorExportProvider as IDisposable; 214_disposableRootProvider = _rootProvider as IDisposable; 313IDisposable? disposableAncestorExportProvider = null; 314IDisposable? disposableLocalExportProvider = null; 315IDisposable? disposableRootProvider = null; 399if (export is IDisposable dependency) 428if (export is IDisposable dependency)
System\ComponentModel\Composition\Hosting\CompositionLock.cs (3)
80public IDisposable LockComposition() 92public IDisposable LockStateForRead() 104public IDisposable LockStateForWrite()
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
104IDisposable? compositionLockHolder = _lock.IsThreadSafe ? _lock.LockComposition() : null;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (7)
20private Dictionary<ImportDefinition, List<IDisposable>>? _importedDisposableExports; 141List<IDisposable>? disposableExports = null; 144if (export is IDisposable disposableExport) 146disposableExports ??= new List<IDisposable>(); 152List<IDisposable>? oldDisposableExports = null; 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>(); 183IEnumerable<IDisposable> dependencies = _importedDisposableExports.Values
System\ComponentModel\Composition\ReflectionModel\DisposableReflectionComposablePart.cs (2)
19if (instance is IDisposable disposable) 34void IDisposable.Dispose()
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.LifetimeContext.cs (4)
18IDisposable? disposable = null; 25disposable = exportProduct as IDisposable; 34disposable = exportProduct as IDisposable; 44disposable = part as IDisposable;
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
310if (underlyingType == typeof(IDisposable) || underlyingType == typeof(IPartImportsSatisfiedNotification))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerTransaction.cs (1)
75void IDisposable.Dispose()
System\ComponentModel\Design\Serialization\SerializationStore.cs (1)
45void IDisposable.Dispose() => Dispose(true);
System\ComponentModel\Design\ServiceContainer.cs (2)
156if (o is IDisposable) 158((IDisposable)o).Dispose();
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
506if (iface == typeof(IDisposable))
System.Composition.Hosting (5)
System\Composition\Hosting\Core\LifetimeContext.cs (5)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0); 106IEnumerable<IDisposable> toDispose = null; 118foreach (var instance in toDispose) 128public void AddBoundInstance(IDisposable instance)
System.Composition.TypedParts (3)
System\Composition\TypedParts\ActivationFeatures\DisposalFeature.cs (3)
21if (!typeof(IDisposable).GetTypeInfo().IsAssignableFrom(partType)) 26var inst = (IDisposable)activator(c, o);
System.Configuration.ConfigurationManager (8)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
44void IDisposable.Dispose()
System\Configuration\EmptyImpersonationContext.cs (2)
9private static volatile IDisposable s_emptyImpersonationContext; 13internal static IDisposable GetStaticInstance()
System\Configuration\Internal\DelegatingConfigHost.cs (1)
232public virtual IDisposable Impersonate() => new DummyDisposable();
System\Configuration\Internal\IInternalConfigHost.cs (1)
104IDisposable Impersonate();
System\Configuration\Internal\InternalConfigHost.cs (1)
305public IDisposable Impersonate() => new DummyDisposable();
System\Configuration\Internal\WriteFileContext.cs (2)
38((IDisposable)_tempFiles).Dispose(); 89((IDisposable)_tempFiles).Dispose();
System.Data.Common (8)
System\Data\DataSet.cs (2)
2072IDisposable? restrictedScope = null; 2589IDisposable? restictedScope = null;
System\Data\DataTable.cs (2)
5736IDisposable? restrictedScope = null; 5980IDisposable? restrictedScope = null;
System\Data\ProviderBase\SchemaMapping.cs (2)
443IDisposable? disposable = (_readerDataValues![i] as IDisposable);
System\Data\TypeLimiter.cs (2)
79public static IDisposable? EnterRestrictedScope(DataSet dataSet) 91public static IDisposable? EnterRestrictedScope(DataTable dataTable)
System.Data.Odbc (5)
System\Data\Odbc\OdbcCommand.cs (4)
89IDisposable? reader = (IDisposable?)_weakDataReaderReference.Target; 92((IDisposable)reader).Dispose(); 833((IDisposable)localReader).Dispose();
System\Data\Odbc\OdbcConnection.cs (1)
370IDisposable? transaction = weak.Target as OdbcTransaction;
System.Diagnostics.DiagnosticSource (14)
System\Diagnostics\DiagnosticListener.cs (5)
64public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Predicate<string>? isEnabled) 66IDisposable subscription; 108public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled) 118public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer) 340public IDisposable Subscribe(IObserver<DiagnosticListener> observer)
System\Diagnostics\DiagnosticSourceActivity.cs (1)
143public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled,
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
421private IDisposable? _listener;
System\Diagnostics\DsesFilterAndTransform.cs (7)
49public static IDisposable ParseFilterAndPayloadSpecs( 544var subscription = newListener.Subscribe(new CallbackObserver<KeyValuePair<string, object?>>(OnEventWritten), eventNameFilterPredicate); 906using (IDisposable? disposable = en as IDisposable) 1007public Subscriptions(IDisposable subscription, Subscriptions? next) 1012public IDisposable Subscription; 1048private IDisposable? _diagnosticsListenersSubscription; // This is our subscription that listens for new Diagnostic source to appear.
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
105Debug.Assert(!(e is IDisposable), "Environment.GetEnvironmentVariables should not be IDisposable.");
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
28void IDisposable.Dispose()
System.Drawing.Common.Tests (2)
System\Drawing\Drawing2D\MatrixTests.cs (1)
203using (other as IDisposable)
System\Drawing\FontFamilyTests.cs (1)
89(other as IDisposable)?.Dispose();
System.IO.Packaging (3)
System\IO\Packaging\Package.cs (2)
478void IDisposable.Dispose() 524((IDisposable)this).Dispose();
System\IO\Packaging\XmlWrappingReader.cs (1)
139((IDisposable)_reader).Dispose();
System.Linq (7)
System\Linq\Cast.cs (1)
78(_enumerator as IDisposable)?.Dispose();
System\Linq\Cast.SpeedOpt.cs (3)
60(e as IDisposable)?.Dispose(); 81(e as IDisposable)?.Dispose(); 110(e as IDisposable)?.Dispose();
System\Linq\OfType.cs (1)
66(_enumerator as IDisposable)?.Dispose();
System\Linq\OfType.SpeedOpt.cs (1)
116(e as IDisposable)?.Dispose();
System\Linq\Select.SpeedOpt.cs (1)
94(e as IDisposable)?.Dispose();
System.Linq.Expressions (5)
System\Dynamic\Utils\DelegateHelpers.cs (5)
46public static Func<IDisposable>? ForceAllowDynamicCodeDelegate { get; } 49private static Func<IDisposable>? ForceAllowDynamicCodeDelegateInternal() 52?.CreateDelegate<Func<IDisposable>>(); 216static IDisposable? CreateForceAllowDynamicCodeScope() 231using IDisposable? forceAllowDynamicCodeScope = CreateForceAllowDynamicCodeScope();
System.Linq.Parallel (3)
System\Linq\Parallel\Enumerables\EnumerableWrapperWeakToStrong.cs (2)
79void IDisposable.Dispose() 81if (_wrappedEnumerator is IDisposable disposable)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (1)
136(_rootTask as IDisposable)?.Dispose();
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
65(e2 as IDisposable)?.Dispose(); 70(e1 as IDisposable)?.Dispose();
System.Net.HttpListener (3)
System\Net\HttpListener.cs (2)
303((IDisposable)this).Dispose(); 324void IDisposable.Dispose() => Dispose();
System\Net\HttpListenerResponse.cs (1)
266void IDisposable.Dispose() => Dispose();
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (2)
101private IDisposable? _disposable; 103public IDisposable Disposable
System.Net.Security (3)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
196((IDisposable)responseMessage).Dispose(); 246((IDisposable)responseMessage).Dispose();
System\Net\Security\NegotiateAuthentication.cs (1)
73if (_remoteIdentity is IDisposable disposableRemoteIdentity)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
259private static void DisposeSafe(IDisposable? resource, AsyncMutex mutex)
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
509void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
436readonly void IDisposable.Dispose() { }
System\Numerics\Tensors\netcore\TensorSpan.cs (1)
389void IDisposable.Dispose() { }
System.ObjectModel (1)
System\Collections\ObjectModel\ObservableCollection.cs (1)
214protected IDisposable BlockReentrancy()
System.Private.CoreLib (9)
src\libraries\Common\src\System\Threading\ITimer.cs (1)
8/// Implementations of <see cref="Change"/>, <see cref="IDisposable.Dispose"/>, and <see cref="IAsyncDisposable.DisposeAsync"/>
src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryManager.cs (1)
62void IDisposable.Dispose()
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
1161((IDisposable)_stream).Dispose();
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (1)
350((IDisposable)_in).Dispose();
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
799((IDisposable)_out).Dispose();
src\libraries\System.Private.CoreLib\src\System\IObservable.cs (1)
8IDisposable Subscribe(IObserver<T> observer);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
104internal static IDisposable ForceAllowDynamicCode() => new ForceAllowDynamicCodeScope();
src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
54void IDisposable.Dispose()
src\System\Runtime\DependentHandle.cs (1)
220/// <inheritdoc cref="IDisposable.Dispose"/>
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
232(e as IDisposable)?.Dispose();
System.Private.Windows.Core (1)
System\DisposableBase.cs (1)
7/// Base class for implementing <see cref="IDisposable"/> with double disposal protection.
System.Private.Xml (4)
System\Xml\Core\XmlEventCache.cs (1)
237((IDisposable)writer).Dispose();
System\Xml\Core\XmlWrappingWriter.cs (1)
210((IDisposable)writer).Dispose();
System\Xml\Dom\XmlNodeList.cs (1)
25void IDisposable.Dispose()
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (1)
170((IDisposable)_wrapped).Dispose();
System.Reflection.Metadata (34)
System\Reflection\Internal\MemoryBlocks\MemoryMappedFileBlock.cs (3)
16private IDisposable? _accessor; 20public DisposableData(IDisposable accessor, SafeBuffer safeBuffer, long offset) 63internal unsafe MemoryMappedFileBlock(IDisposable accessor, SafeBuffer safeBuffer, long offset, int size)
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (2)
56void IDisposable.Dispose() { } 94void IDisposable.Dispose() { }
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
601/// Returns true if the redirected interface is <see cref="IDisposable"/>.
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (8)
104void IDisposable.Dispose() 203void IDisposable.Dispose() 309void IDisposable.Dispose() 411void IDisposable.Dispose() 517void IDisposable.Dispose() 623void IDisposable.Dispose() 722void IDisposable.Dispose() 829void IDisposable.Dispose()
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (1)
145void IDisposable.Dispose()
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (1)
208void IDisposable.Dispose()
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (18)
114void IDisposable.Dispose() 222void IDisposable.Dispose() 342void IDisposable.Dispose() 449void IDisposable.Dispose() 569void IDisposable.Dispose() 689void IDisposable.Dispose() 809void IDisposable.Dispose() 929void IDisposable.Dispose() 1029void IDisposable.Dispose() 1144void IDisposable.Dispose() 1242void IDisposable.Dispose() 1332void IDisposable.Dispose() 1422void IDisposable.Dispose() 1512void IDisposable.Dispose() 1602void IDisposable.Dispose() 1756void IDisposable.Dispose() 1846void IDisposable.Dispose() 1936void IDisposable.Dispose()
System.Reflection.MetadataLoadContext (5)
System\Reflection\MetadataLoadContext.Disposing.cs (5)
11private ConcurrentBag<IDisposable> _disposables = new ConcurrentBag<IDisposable>(); 24internal void RegisterForDisposal(IDisposable disposable) => _disposables.Add(disposable); 34ConcurrentBag<IDisposable> disposables = _disposables; 39foreach (IDisposable disposable in disposables)
System.Resources.Extensions (1)
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
258if (record.Data is IDisposable disposable && record.CloseAfterWrite)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
271[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IDisposable))]
System.Runtime.Caching (1)
System\Runtime\Caching\SRef.cs (1)
29where T : class, IDisposable
System.Security.Cryptography (16)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
196((IDisposable)responseMessage).Dispose(); 246((IDisposable)responseMessage).Dispose();
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
574(mapped as IDisposable)?.Dispose();
System\Security\Cryptography\CryptoConfig.cs (1)
511(o as IDisposable)?.Dispose();
System\Security\Cryptography\HashAlgorithm.cs (1)
172(this as IDisposable).Dispose();
System\Security\Cryptography\Helpers.cs (2)
267internal static void DisposeAll(this IEnumerable<IDisposable> disposables) 269foreach (IDisposable disposable in disposables)
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
193(this as IDisposable).Dispose();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
178IDisposable? key = null;
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
1796Func<TAlg, X509Certificate2> import) where TAlg : IDisposable 1828Func<TAlg, X509Certificate2> import) where TAlg : IDisposable
System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs (1)
50void IDisposable.Dispose()
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
172(manager as IDisposable)?.Dispose(); 624internal abstract IDisposable Key { get; }
System\Security\Cryptography\X509Certificates\X509ChainElementEnumerator.cs (1)
36void IDisposable.Dispose()
System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs (1)
40void IDisposable.Dispose()
System.ServiceModel.NetFramingBase (7)
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
44IDisposable disposable = channelBinding;
System\ServiceModel\Channels\SessionConnectionReader.cs (2)
220private static IDisposable CreateProcessActionActivity() 274IDisposable activity = CreateProcessActionActivity();
System\ServiceModel\Security\SecurityUtilsEx.cs (4)
78else if (obj is IDisposable) 80((IDisposable)obj).Dispose(); 94else if (obj is IDisposable) 96((IDisposable)obj).Dispose();
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
776((IDisposable)extWriter).Dispose();
System.Text.Json (2)
System\Text\Json\Serialization\WriteStack.cs (2)
333if (collectionEnumerator is IDisposable disposable) 372if (collectionEnumerator is IDisposable disposable)
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
224void IDisposable.Dispose() { }
System\Text\RegularExpressions\GroupCollection.cs (1)
292void IDisposable.Dispose() { }
System\Text\RegularExpressions\MatchCollection.cs (1)
242void IDisposable.Dispose() { }
System.Threading.Tasks.Dataflow (36)
Base\DataflowBlock.cs (15)
33public static IDisposable LinkTo<TOutput>( 53public static IDisposable LinkTo<TOutput>( 72public static IDisposable LinkTo<TOutput>( 185IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 712IDisposable ISourceBlock<TOutput>.LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 1077IDisposable unlink = source.LinkTo(target, DataflowLinkOptions.UnlinkAfterOneAndPropagateCompletion); 1086IDisposable? disposableUnlink = Interlocked.CompareExchange<IDisposable?>(ref target._unlink, null, unlink); 1135internal IDisposable? _unlink; 1234IDisposable? unlink = _unlink; 1237IDisposable? disposableUnlink = Interlocked.CompareExchange(ref _unlink, null, unlink); 1556public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) 2013IDisposable unlink; 2217IDisposable IObservable<TOutput>.Subscribe(IObserver<TOutput> observer) 2363internal IDisposable? Unlinker;
Base\ISourceBlock.cs (1)
25IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions);
Blocks\BatchBlock.cs (1)
121public IDisposable LinkTo(ITargetBlock<T[]> target, DataflowLinkOptions linkOptions)
Blocks\BatchedJoinBlock.cs (2)
126public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>>> target, DataflowLinkOptions linkOptions) 378public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target, DataflowLinkOptions linkOptions)
Blocks\BroadcastBlock.cs (2)
148public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); } 1003internal IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Blocks\BufferBlock.cs (1)
183public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); }
Blocks\JoinBlock.cs (2)
110public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2>> target, DataflowLinkOptions linkOptions) 329public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2, T3>> target, DataflowLinkOptions linkOptions)
Blocks\TransformBlock.cs (1)
341public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Blocks\TransformManyBlock.cs (1)
556public IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { return _source.LinkTo(target, linkOptions); }
Blocks\WriteOnceBlock.cs (1)
297public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions)
Internal\ActionOnDispose.cs (6)
22internal static readonly IDisposable Nop = new NopDisposable(); 31internal static IDisposable Create<T1, T2>(Action<T1, T2> action, T1 arg1, T2 arg2) 46internal static IDisposable Create<T1, T2, T3>(Action<T1, T2, T3> action, T1 arg1, T2 arg2, T3 arg3) 56void IDisposable.Dispose() { } 86void IDisposable.Dispose() 128void IDisposable.Dispose()
Internal\Common.cs (1)
405internal static IDisposable CreateUnlinker<TOutput>(object outgoingLock, TargetRegistry<TOutput> targetRegistry, ITargetBlock<TOutput> targetBlock)
Internal\SourceCore.cs (1)
124internal IDisposable LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions)
Internal\TargetRegistry.cs (1)
353IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\Parallel.cs (4)
2740if (partitionState is IDisposable partitionToDispose) 2780IDisposable? d = null; 2783d = orderablePartitionerSource as IDisposable; 2787d = partitionerSource as IDisposable;
System.Windows.Forms (9)
System\Resources\ResXResourceReader.cs (2)
180((IDisposable)this).Dispose(); 183void IDisposable.Dispose()
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
334using (manager as IDisposable)
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
50((IDisposable)this).Dispose(); 53void IDisposable.Dispose()
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
490((IDisposable)original._image).Dispose();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
523if (_helpService is IDisposable disposable) 976if (_helpService is not null and IDisposable disposable)
System\Windows\Forms\Layout\LayoutTransaction.cs (1)
71public static IDisposable CreateTransactionIf(bool condition, Control? controlToLayout, IArrangedElement elementCausingLayout, string? property)
System.Windows.Forms.Design (12)
System\ComponentModel\Design\CollectionEditor.cs (1)
210else if (instance is IDisposable disposable)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
263((IDisposable?)transaction)?.Dispose();
System\ComponentModel\Design\ReferenceService.cs (1)
190void IDisposable.Dispose()
System\ComponentModel\Design\SelectionService.cs (1)
269void IDisposable.Dispose()
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
43private IDisposable? _serializationSession;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
24/// <see cref="SerializationStore"/> implements the <see cref="IDisposable"/> interface such 27/// The <see cref="IDisposable" /> pattern is provided for languages that support a "using" syntax like C# and VB .NET.
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
24private IDisposable? _session; 407public IDisposable CreateSession()
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1318void IDisposable.Dispose()
System\Windows\Forms\Design\ListAdapter.cs (1)
57void IDisposable.Dispose() { }
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
545((IDisposable?)trans)?.Dispose();
System.Windows.Forms.Design.Tests (28)
System\ComponentModel\Design\CollectionEditorTests.cs (1)
482Mock<IDisposable> mockDisposable = new(MockBehavior.Strict);
System\ComponentModel\Design\DesignerHostTests.cs (2)
1801IDisposable disposable = Assert.IsAssignableFrom<IDisposable>(host);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (22)
125IDisposable session = manager.CreateSession(); 156IDisposable session = manager.CreateSession(); 446IDisposable session = manager.CreateSession(); 451IDisposable session2 = manager.CreateSession(); 462IDisposable session1 = manager.CreateSession(); 471IDisposable session2 = manager.CreateSession(); 501IDisposable session = manager.CreateSession(); 524IDisposable session = mockManager.Object.CreateSession(); 539IDisposable session1 = manager.CreateSession(); 562IDisposable session1 = manager.CreateSession(); 581IDisposable session1 = manager.CreateSession(); 607IDisposable session = manager.CreateSession(); 633IDisposable session = manager.CreateSession(); 658IDisposable session = manager.CreateSession(); 686IDisposable session = manager.CreateSession(); 1614using IDisposable session = manager.CreateSession(); 1624using IDisposable session = manager.CreateSession(); 1641using IDisposable session = manager.CreateSession(); 1664IDisposable session = manager.CreateSession(); 1816IDisposable session = manager.CreateSession(); 1888using IDisposable session = manager.CreateSession(); 1899using IDisposable session = manager.CreateSession();
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (2)
113using var enumerator = (IDisposable)_originalImageCollection.GetEnumerator();
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
108public void Dispose() => ((IDisposable)_toolStripContainer).Dispose();
System.Windows.Forms.Primitives (10)
System\DisposeHelper.cs (2)
16internal static void NullAndDispose<T>(ref T? disposable) where T : class, IDisposable 18IDisposable? localDisposable = disposable;
System\Windows\Forms\Automation\UiaTextRange.cs (1)
120Debug.Assert(!typeof(UiaTextRange).IsAssignableTo(typeof(IDisposable)));
System\Windows\Forms\Internals\ScaleHelper.cs (1)
508public static IDisposable EnterDpiAwarenessScope(
System\Windows\Forms\ObjectCache.cs (2)
56(temp as IDisposable)?.Dispose(); 70(_itemsCache[i] as IDisposable)?.Dispose();
System\Windows\Forms\RefCountedCache.CacheEntry.cs (4)
70/// <see cref="IDisposable" />. Override to provide custom cleanup logic. 77var disposable = Object as IDisposable; 79disposable = Data as IDisposable;
System.Windows.Forms.Tests (2)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
224using (value as IDisposable) 251using (value as IDisposable)
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
88if (disposing && selectedObject is IDisposable disposable)
System.Xaml (11)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlWrappingReader.cs (1)
162((IDisposable)_reader).Dispose();
System\Xaml\XamlBackgroundReader.cs (4)
335((IDisposable)_dataReceivedEvent).Dispose(); 336((IDisposable)_internalReader).Dispose(); 337((IDisposable)_providerFullEvent).Dispose(); 338((IDisposable)_writer).Dispose();
System\Xaml\XamlReader.cs (2)
52void IDisposable.Dispose() 67((IDisposable)this).Dispose();
System\Xaml\XamlWriter.cs (2)
69void IDisposable.Dispose() 82((IDisposable)this).Dispose();
System\Xaml\XamlXmlWriter.cs (2)
128((IDisposable)meWriter).Dispose(); 133((IDisposable)output).Dispose();
System.Xaml.Tests (2)
System\Xaml\XamlReaderTests.cs (1)
152((IDisposable)reader).Dispose();
System\Xaml\XamlWriterTests.cs (1)
99((IDisposable)writer).Dispose();
Test.Utilities (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
Text.Analyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\DisposeMethodKind.cs (2)
18/// An override of <see cref="System.IDisposable.Dispose"/>. 40/// A method named Close on a type that implements <see cref="System.IDisposable"/>.
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
97where T : class, IDisposable
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (2)
181/// Checks if the given method implements <see cref="IDisposable.Dispose"/> or overrides an implementation of <see cref="IDisposable.Dispose"/>.
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (3)
704void IDisposable.Dispose() 821void IDisposable.Dispose() 927void IDisposable.Dispose()
UIAutomationClient (1)
System\Windows\Automation\CacheRequest.cs (1)
217public IDisposable Activate()
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
318IDisposable? npcs = null;
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
318IDisposable? npcs = null;
WindowsBase.Tests (15)
System\ComponentModel\CurrentChangedEventManagerTests.cs (1)
606public IDisposable DeferRefresh() => throw new NotImplementedException();
System\ComponentModel\CurrentChangingEventManagerTests.cs (1)
588public IDisposable DeferRefresh() => throw new NotImplementedException();
System\Windows\Data\DataSourceProviderTests.cs (9)
322IDisposable defer = provider.DeferRefresh(); 487IDisposable defer = provider.DeferRefresh(); 596IDisposable result1 = provider.DeferRefresh(); 616IDisposable result1 = provider.DeferRefresh(); 649IDisposable result1 = provider.DeferRefresh(); 681IDisposable result1 = provider.DeferRefresh(); 686IDisposable result2 = provider.DeferRefresh(); 814IDisposable defer = provider.DeferRefresh(); 939IDisposable defer = provider.DeferRefresh();
System\Windows\WeakEventManagerTests.cs (4)
21IDisposable readLock = manager.ReadLock; 31IDisposable writeLock = manager.WriteLock; 6099public new IDisposable ReadLock => base.ReadLock; 6101public new IDisposable WriteLock => base.WriteLock;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
848IDisposable disposableChild = Child as IDisposable;
WinFormsControlsTest (1)
Dialogs.cs (1)
62if (propertyGrid1.SelectedObject is IDisposable disposable)
xunit.assert (1)
CollectionAsserts.cs (1)
549 (enumerator as IDisposable)?.Dispose();
xunit.console (2)
common\AssemblyResolution\AssemblyHelper.cs (2)
94public static IDisposable SubscribeResolveForAssembly(string assemblyFileName, IMessageSink internalDiagnosticsMessageSink = null) 103public static IDisposable SubscribeResolveForAssembly(Type typeInAssembly, IMessageSink internalDiagnosticsMessageSink = null)
Xunit.NetCore.Extensions (6)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (2)
55foreach (var disposable in assemblyFixtureMappings.Values.OfType<IDisposable>())
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (2)
47foreach (var disposable in assemblyFixtureMappings.Values.OfType<IDisposable>())
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (2)
52foreach (var disposable in assemblyFixtureMappings.Values.OfType<IDisposable>())