LazyApiPack.Utils 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package LazyApiPack.Utils --version 0.0.3                
NuGet\Install-Package LazyApiPack.Utils -Version 0.0.3                
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="LazyApiPack.Utils" Version="0.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LazyApiPack.Utils --version 0.0.3                
#r "nuget: LazyApiPack.Utils, 0.0.3"                
#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 LazyApiPack.Utils as a Cake Addin
#addin nuget:?package=LazyApiPack.Utils&version=0.0.3

// Install LazyApiPack.Utils as a Cake Tool
#tool nuget:?package=LazyApiPack.Utils&version=0.0.3                

About this project

This project collects common functionality that is used in multiple modules.

Functions

NotifyObject

Simple implementation of a class that notifies before and after a property has changed via the SetPropertyValue<T> method.

SetPropertyValue<T>

private bool myProperty;
public bool MyProperty {
	get => myProperty;
	set => SetPropertyValue(ref myProperty, value);
}

This property makes use of the SetPropertyValue<T> method. Note, that the parameter string? propertyName was not used. This allows the compiler to substitute this property with the caller member name (in our case "MyProperty").

First, the old property in myProperty is compared against value. If the values are identical, the method returns false, indicating, that nothing has changed. Neither PropertyChanging nor PropertyChanged were raised in this scenario. If the values differ, the event OnPropertyChanging is raised presenting the old and the new value without changing the backingfield. After that, the backingfield gets the new value and the event OnPropertyChanged is raised with the old and new values.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on LazyApiPack.Utils:

Package Downloads
LazyApiPack.Wpf.Theme

Provides a ThemeManager to easily switch between WPF application UI themes. Use this package with themes from the LazyApiPack.Wpf.Theme.* namespace and / or create your own themes.

LazyApiPack.Wpf.Utils

Contains helpful Wpf utilities.

LazyApiPack.Mvvm

Provides an MVVM pattern for applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.3.3 255 11/19/2023
0.0.3.2 121 11/16/2023
0.0.3.1 119 11/16/2023
0.0.3 116 11/15/2023
0.0.2 133 9/8/2023
0.0.1 123 9/8/2023

Geometry math implemented.