GeneralSourceGenerator 1.0.6
dotnet add package GeneralSourceGenerator --version 1.0.6
NuGet\Install-Package GeneralSourceGenerator -Version 1.0.6
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="GeneralSourceGenerator" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeneralSourceGenerator --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GeneralSourceGenerator, 1.0.6"
#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 GeneralSourceGenerator as a Cake Addin #addin nuget:?package=GeneralSourceGenerator&version=1.0.6 // Install GeneralSourceGenerator as a Cake Tool #tool nuget:?package=GeneralSourceGenerator&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
General Source Generator
Asyncifier
create async methods from sync ones.
usage
- Add [Asyncify] attribute to each sync method.
- Make containng class partial.
public partial class Calculator
{
[Asyncify]
public static int Sum(int a, int b) => a + b;
[Asyncify]
public static int Sum(int a, int b, int c) => a + b + c; // can overload
[Asyncify]
public static int ToDouble(int a) => a * 2;
[Asyncify]
public static int ToTriple(int a = 3) => a * 3; // can have default parameter value
[Asyncify]
public static int SumAll(params int[] array) => array.Sum(); // params keyword will be gone
[Asyncify]
public List<int> GetList(int a, int b) => [a + b, a - b]; // can return List<T>
}
Check out README.md in GitHub repository for basic usage and examples. https://github.com/cplkimth/GeneralSourceGenerator
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.6 | 327 | 12/9/2023 |