LazyApiPack.Utils
0.0.2
See the version list below for details.
dotnet add package LazyApiPack.Utils --version 0.0.2
NuGet\Install-Package LazyApiPack.Utils -Version 0.0.2
<PackageReference Include="LazyApiPack.Utils" Version="0.0.2" />
paket add LazyApiPack.Utils --version 0.0.2
#r "nuget: LazyApiPack.Utils, 0.0.2"
// Install LazyApiPack.Utils as a Cake Addin #addin nuget:?package=LazyApiPack.Utils&version=0.0.2 // Install LazyApiPack.Utils as a Cake Tool #tool nuget:?package=LazyApiPack.Utils&version=0.0.2
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 | Versions 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. |
-
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.
Namespace corrected.