TJC.Singleton
0.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TJC.Singleton --version 0.1.1
NuGet\Install-Package TJC.Singleton -Version 0.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TJC.Singleton" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TJC.Singleton --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TJC.Singleton, 0.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TJC.Singleton as a Cake Addin #addin nuget:?package=TJC.Singleton&version=0.1.1 // Install TJC.Singleton as a Cake Tool #tool nuget:?package=TJC.Singleton&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TJC Singleton
The singleton base class ensures that only one instance of a class will exist.
Details
- This is done in a thread-safe way using a Lazy implementation.
- It also ensures that the derived class has a private or protected constructor by throwing an exception at run-time.
Examples
- Please see this mock class for an example of the intended use of the SingletonBaseClass.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on TJC.Singleton:
Package | Downloads |
---|---|
TJC.Collection.Core
Collection of NuGet Packages |
|
TJC.ConsoleApplication
Console Application Utilities |
|
TJC.GUI
Graphical User Interface Extensions |
|
TJC.MVVM
Model-View-ViewModel |
|
TJC.VersionExtensions
Version Extensions |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.5 | 836 | 12/3/2024 |
0.5.4 | 82 | 12/3/2024 |
0.5.3 | 1,176 | 11/15/2024 |
0.5.2 | 499 | 11/10/2024 |
0.5.1 | 384 | 11/5/2024 |
0.5.0 | 351 | 11/5/2024 |
0.4.1 | 503 | 10/26/2024 |
0.4.0 | 1,430 | 10/20/2024 |
0.3.2 | 530 | 10/20/2024 |
0.3.1 | 423 | 10/16/2024 |
0.3.0 | 2,547 | 10/10/2024 |
0.2.0 | 389 | 10/9/2024 |
0.1.10 | 663 | 10/2/2024 |
0.1.9 | 326 | 9/29/2024 |
0.1.8 | 967 | 9/5/2024 |
0.1.7 | 398 | 9/5/2024 |
0.1.6 | 298 | 9/4/2024 |
0.1.5 | 115 | 9/3/2024 |
0.1.4 | 1,066 | 6/10/2024 |
0.1.3 | 102 | 6/2/2024 |
0.1.2 | 115 | 6/2/2024 |
0.1.1 | 115 | 5/31/2024 |
0.1.0 | 125 | 5/31/2024 |