boilerplatezero 1.0.1

There is a newer version of this package available.
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
#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

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 496 2/6/2023
2.0.0-beta 364 2/6/2023
1.8.0 10,190 6/6/2022
1.7.2 801 5/23/2022
1.7.1 1,308 10/16/2021
1.7.0 403 7/21/2021
1.6.0 379 7/6/2021
1.5.2 414 7/3/2021
1.5.1 340 6/26/2021
1.5.0 358 6/13/2021
1.4.1 493 1/2/2021
1.4.0 390 12/29/2020
1.3.0 325 12/29/2020
1.2.0 428 12/4/2020
1.1.0 432 11/29/2020
1.0.2 399 11/28/2020
1.0.1 462 11/26/2020
1.0.0 400 11/26/2020