boilerplatezero 1.0.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 boilerplatezero --version 1.0.1
NuGet\Install-Package boilerplatezero -Version 1.0.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="boilerplatezero" Version="1.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add boilerplatezero --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: boilerplatezero, 1.0.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 boilerplatezero as a Cake Addin #addin nuget:?package=boilerplatezero&version=1.0.1 // Install boilerplatezero as a Cake Tool #tool nuget:?package=boilerplatezero&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
boilerplatezero
boilerplatezero is a collection of C# source generators
WPF Generators
Dependency Property Generator
Dependency Properties
// Dependency property written idiomatically:
private static readonly DependencyPropertyKey FooPropertyKey = DependencyProperty.RegisterReadOnly(nameof(Foo), typeof(string), typeof(MyClass), null);
public static readonly DependencyProperty FooProperty = FooPropertyKey.DependencyPropety;
public string Foo
{
get => (string)this.GetValue(FooProperty);
private set => this.SetValue(FooPropertyKey, value);
}
// Dependency property written with BPZ:
private static readonly DependencyPropertyKey FooPropertyKey = Gen.Foo<string>();
Attached Properties
// Attached property written idiomatically:
private static readonly DependencyPropertyKey BarPropertyKey = DependencyProperty.RegisterAttachedReadOnly("Bar"), typeof(string), typeof(MyClass), null);
public static readonly DependencyProperty BarProperty = BarPropertyKey.DependencyPropety;
public static string GetBar(DependencyObject d) => (string)d.GetValue(BarProperty);
private static void SetBar(DependencyObject d, string value) => d.SetValue(BarPropertyKey, value);
// Attached property written with BPZ:
private static readonly DependencyPropertyKey BarPropertyKey = GenAttached.Bar<string>();
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 |
---|---|---|
2.0.0 | 582 | 2/6/2023 |
2.0.0-beta | 404 | 2/6/2023 |
1.8.0 | 13,036 | 6/6/2022 |
1.7.2 | 838 | 5/23/2022 |
1.7.1 | 1,341 | 10/16/2021 |
1.7.0 | 436 | 7/21/2021 |
1.6.0 | 413 | 7/6/2021 |
1.5.2 | 450 | 7/3/2021 |
1.5.1 | 378 | 6/26/2021 |
1.5.0 | 394 | 6/13/2021 |
1.4.1 | 531 | 1/2/2021 |
1.4.0 | 431 | 12/29/2020 |
1.3.0 | 361 | 12/29/2020 |
1.2.0 | 460 | 12/4/2020 |
1.1.0 | 487 | 11/29/2020 |
1.0.2 | 443 | 11/28/2020 |
1.0.1 | 495 | 11/26/2020 |
1.0.0 | 425 | 11/26/2020 |