DisposableHelpers 1.2.140
dotnet add package DisposableHelpers --version 1.2.140
NuGet\Install-Package DisposableHelpers -Version 1.2.140
<PackageReference Include="DisposableHelpers" Version="1.2.140" />
<PackageVersion Include="DisposableHelpers" Version="1.2.140" />
<PackageReference Include="DisposableHelpers" />
paket add DisposableHelpers --version 1.2.140
#r "nuget: DisposableHelpers, 1.2.140"
#:package DisposableHelpers@1.2.140
#addin nuget:?package=DisposableHelpers&version=1.2.140
#tool nuget:?package=DisposableHelpers&version=1.2.140
DisposableHelpers
Disposable helpers for IDisposable and IAsyncDisposable with source generators. Also capable of both anonymous disposable and anonymous async disposable.
NuGets
| Name | Info |
|---|---|
| DisposableHelpers |
Installation
// Install release version
Install-Package DisposableHelpers
// Install pre-release version
Install-Package DisposableHelpers -pre
Supported frameworks
.NET Standard 2.0 and above - see https://github.com/dotnet/standard/blob/master/docs/versions.md for compatibility matrix
Usage
Disposable
using DisposableHelpers;
namespace YourNamespace
{
public class SampleDisposable : Disposable
{
private SampleUnmanagedResource resources;
protected override void Dispose(bool disposing)
{
if (disposing)
{
resources.Release();
}
base.Dispose(disposing);
}
}
}
Disposable Source Generator
using DisposableHelpers.Attributes;
namespace YourNamespace
{
[Disposable]
public partial class SampleDisposable
{
private SampleUnmanagedResource resources;
protected void Dispose(bool disposing)
{
if (disposing)
{
resources.Release();
}
base.Dispose(disposing);
}
}
}
Anonymous Disposable
using DisposableHelpers;
namespace YourNamespace
{
public static class Program
{
private static SampleUnmanagedResource resources;
public static void Main(string[] args)
{
Disposable disposable = new Disposable(disposing =>
{
if (disposing)
{
resources.Release();
}
});
disposable.Dispose();
}
}
}
AsyncDisposable
using DisposableHelpers;
namespace YourNamespace
{
public class SampleAsyncDisposable : AsyncDisposable
{
private SampleAsyncUnmanagedResource resources;
protected override async ValueTask Dispose(bool isDisposing)
{
if (isDisposing)
{
await resources.Release();
}
return base.Dispose(isDisposing);
}
}
}
AsyncDisposable Source Generator
using DisposableHelpers.Attributes;
namespace YourNamespace
{
[AsyncDisposable]
public partial class SampleAsyncDisposable
{
private SampleAsyncUnmanagedResource resources;
protected async ValueTask Dispose(bool isDisposing)
{
if (isDisposing)
{
await resources.Release();
}
return base.Dispose(isDisposing);
}
}
}
Anonymous AsyncDisposable
using DisposableHelpers;
namespace YourNamespace
{
public static class Program
{
private static SampleAsyncUnmanagedResource resources;
public static async void Main(string[] args)
{
AsyncDisposable disposable = new AsyncDisposable(async disposing =>
{
if (disposing)
{
await resources.Release();
}
});
await disposable.DisposeAsync();
}
}
}
Want To Support This Project?
All I have ever asked is to be active by submitting bugs, features, and sending those pull requests down!.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.10)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DisposableHelpers:
| Package | Downloads |
|---|---|
|
SingletonSessionHelpers
Provides a base API for singleton session design pattern. |
|
|
LockerHelpers
Provides helpers for execution locking mechanism. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.140 | 0 | 11/6/2025 |
| 1.2.139 | 0 | 11/6/2025 |
| 1.2.138 | 665 | 11/4/2025 |
| 1.2.137 | 40 | 11/4/2025 |
| 1.2.136 | 682 | 11/2/2025 |
| 1.2.135 | 3,219 | 10/14/2025 |
| 1.2.134 | 73 | 10/9/2025 |
| 1.2.133 | 62 | 10/9/2025 |
| 1.2.132 | 96 | 9/30/2025 |
| 1.2.131 | 95 | 9/29/2025 |
| 1.2.130 | 115 | 9/23/2025 |
| 1.2.129 | 107 | 9/9/2025 |
| 1.2.128 | 10,089 | 9/5/2025 |
| 1.2.127 | 1,904 | 8/20/2025 |
| 1.2.126 | 83 | 8/19/2025 |
| 1.2.125 | 3,274 | 8/9/2025 |
| 1.2.124 | 74 | 8/7/2025 |
| 1.2.123 | 134 | 8/6/2025 |
| 1.2.121 | 75 | 8/5/2025 |
| 1.2.120 | 51 | 7/29/2025 |
| 1.2.119 | 715 | 7/29/2025 |
| 1.2.118 | 43 | 7/29/2025 |
| 1.2.117 | 36 | 7/29/2025 |
| 1.2.116 | 42 | 7/29/2025 |
| 1.2.115 | 118 | 7/17/2025 |
| 1.2.113 | 543 | 7/10/2025 |
| 1.2.112 | 77 | 7/8/2025 |
| 1.2.111 | 765 | 6/10/2025 |
| 1.2.110 | 127 | 6/10/2025 |
| 1.2.109 | 119 | 6/4/2025 |
| 1.2.108 | 129 | 5/27/2025 |
| 1.2.107 | 1,121 | 5/14/2025 |
| 1.2.106 | 123 | 5/13/2025 |
| 1.2.105 | 202 | 5/5/2025 |
| 1.2.104 | 95 | 5/5/2025 |
| 1.2.102 | 1,675 | 4/8/2025 |
| 1.2.101 | 335 | 3/25/2025 |
| 1.2.99 | 233 | 3/24/2025 |
| 1.2.98 | 238 | 3/17/2025 |
| 1.2.97 | 276 | 3/12/2025 |
| 1.2.93 | 605 | 2/20/2025 |
| 1.2.92 | 265 | 2/20/2025 |
| 1.2.90 | 523 | 1/27/2025 |
| 1.2.89 | 331 | 1/20/2025 |
| 1.2.88 | 285 | 1/16/2025 |
| 1.2.86 | 454 | 1/10/2025 |
| 1.2.84 | 275 | 1/8/2025 |
| 1.2.83 | 409 | 12/31/2024 |
| 1.2.82 | 301 | 12/27/2024 |
| 1.2.81 | 293 | 12/26/2024 |
| 1.2.80 | 356 | 12/18/2024 |
| 1.2.79 | 316 | 12/17/2024 |
| 1.2.78 | 353 | 12/6/2024 |
| 1.2.77 | 391 | 12/5/2024 |
| 1.2.76 | 310 | 12/5/2024 |
| 1.2.75 | 282 | 12/3/2024 |
| 1.2.74 | 196 | 12/3/2024 |
| 1.2.73 | 298 | 12/3/2024 |
| 1.2.71 | 216 | 12/3/2024 |
| 1.2.70 | 343 | 11/25/2024 |
| 1.2.69 | 213 | 11/25/2024 |
| 1.2.68 | 189 | 11/22/2024 |
| 1.2.67 | 232 | 11/22/2024 |
| 1.2.64 | 408 | 11/20/2024 |
| 1.2.63 | 165 | 11/19/2024 |
| 1.2.62 | 332 | 11/14/2024 |
| 1.2.60 | 269 | 11/13/2024 |
| 1.2.59 | 300 | 11/12/2024 |
| 1.2.58 | 284 | 11/8/2024 |
| 1.2.57 | 162 | 11/8/2024 |
| 1.2.56 | 132 | 11/8/2024 |
| 1.2.55 | 142 | 11/8/2024 |
| 1.2.54 | 153 | 11/7/2024 |
| 1.2.53 | 280 | 11/6/2024 |
| 1.2.52 | 127 | 11/6/2024 |
| 1.2.51 | 271 | 11/5/2024 |
| 1.2.50 | 368 | 10/30/2024 |
| 1.2.49 | 252 | 10/30/2024 |
| 1.2.48 | 280 | 10/29/2024 |
| 1.2.47 | 359 | 10/28/2024 |
| 1.2.46 | 171 | 10/25/2024 |
| 1.2.45 | 413 | 10/23/2024 |
| 1.2.44 | 319 | 10/22/2024 |
| 1.2.43 | 421 | 10/17/2024 |
| 1.2.42 | 448 | 10/14/2024 |
| 1.2.41 | 380 | 10/11/2024 |
| 1.2.40 | 590 | 10/7/2024 |
| 1.2.39 | 379 | 10/4/2024 |
| 1.2.38 | 356 | 10/2/2024 |
| 1.2.37 | 363 | 9/27/2024 |
| 1.2.36 | 147 | 9/27/2024 |
| 1.2.35 | 172 | 9/27/2024 |
| 1.2.34 | 455 | 9/25/2024 |
| 1.2.33 | 249 | 9/25/2024 |
| 1.2.32 | 350 | 9/23/2024 |
| 1.2.31 | 160 | 9/23/2024 |
| 1.2.30 | 355 | 9/20/2024 |
| 1.2.29 | 228 | 9/20/2024 |
| 1.2.28 | 374 | 9/18/2024 |
| 1.2.27 | 267 | 9/16/2024 |
| 1.2.26 | 391 | 9/10/2024 |
| 1.2.24 | 443 | 9/5/2024 |
| 1.2.23 | 455 | 8/29/2024 |
| 1.2.22 | 365 | 8/26/2024 |
| 1.2.21 | 328 | 8/22/2024 |
| 1.2.20 | 166 | 8/22/2024 |
| 1.2.19 | 162 | 8/22/2024 |
| 1.2.18 | 273 | 8/20/2024 |
| 1.2.17 | 468 | 8/14/2024 |
| 1.2.16 | 255 | 8/13/2024 |
| 1.2.15 | 496 | 7/31/2024 |
| 1.2.14 | 177 | 7/31/2024 |
| 1.2.13 | 235 | 7/26/2024 |
| 1.2.12 | 583 | 7/16/2024 |
| 1.2.11 | 210 | 7/15/2024 |
| 1.2.10 | 177 | 7/13/2024 |
| 1.2.9 | 218 | 7/12/2024 |
| 1.2.8 | 238 | 7/9/2024 |
| 1.2.7 | 223 | 7/8/2024 |
| 1.2.6 | 164 | 7/8/2024 |
| 1.2.5 | 161 | 7/8/2024 |
| 1.2.4 | 229 | 7/7/2024 |
| 1.2.3 | 315 | 7/1/2024 |
| 1.2.2 | 184 | 6/30/2024 |
| 1.2.1 | 218 | 6/28/2024 |
| 1.2.0 | 306 | 5/3/2024 |
| 1.1.16 | 1,511 | 10/3/2023 |
| 1.1.15 | 424 | 8/30/2023 |
| 1.1.14 | 369 | 8/28/2023 |
| 1.1.13 | 413 | 8/8/2023 |
| 1.1.12 | 389 | 7/11/2023 |
| 1.1.11 | 253 | 7/9/2023 |
| 1.1.10 | 356 | 6/20/2023 |
| 1.1.9 | 2,012 | 9/8/2022 |
| 1.1.8 | 513 | 9/4/2022 |
| 1.1.7 | 500 | 9/4/2022 |
| 1.1.6 | 2,948 | 7/20/2022 |
| 1.1.5 | 559 | 7/20/2022 |
| 1.1.4 | 578 | 7/17/2022 |
| 1.1.3 | 538 | 7/17/2022 |
| 1.1.2 | 568 | 7/17/2022 |
| 1.1.1 | 565 | 7/17/2022 |
| 1.1.0 | 595 | 7/17/2022 |
| 1.0.2 | 4,950 | 3/7/2022 |
| 1.0.1 | 3,646 | 2/21/2022 |
| 1.0.0 | 1,379 | 2/17/2022 |
## New Version
* Bump `disposable_helpers` from `1.2.139` to `1.2.140`. See [changelog](https://github.com/Kiryuumaru/DisposableHelpers/compare/disposable_helpers/1.2.139...disposable_helpers/1.2.140)
**Full Changelog**: https://github.com/Kiryuumaru/DisposableHelpers/compare/build.20251106150024.7b694ca...build.20251106155219.301d5d4