Advanced.Tools 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Advanced.Tools --version 1.0.0
                    
NuGet\Install-Package Advanced.Tools -Version 1.0.0
                    
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="Advanced.Tools" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Advanced.Tools" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Advanced.Tools" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Advanced.Tools --version 1.0.0
                    
#r "nuget: Advanced.Tools, 1.0.0"
                    
#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.
#:package Advanced.Tools@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Advanced.Tools&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Advanced.Tools&version=1.0.0
                    
Install as a Cake Tool

Advanced.Tools Library

Advanced.Tools is a C# library is an assistant for working with user input in the WPF application. There is support for the WPF-UI library

Installation

To install the Advanced.Tools library, add the following to your project:

dotnet add package Advanced.Tools

Usage

Methods

IsLength

Checks if the length of the given string falls within the specified minimum and maximum length constraints.

Example
string example = "Hello";
bool isValid = example.IsLength(minLength: 3, maxLength: 10); // Returns true
bool isTooShort = example.IsLength(minLength: 6); // Returns false
bool isTooLong = example.IsLength(maxLength: 4); // Returns false
bool isValidWithoutConstraints = example.IsLength(); // Returns true
Hash

Computes the SHA-512 hash of the given string and returns it as a Base64-encoded string.

Example
string example = "HelloWorld";
string hashedValue = example.Hash();
// hashedValue will contain the Base64-encoded SHA-512 hash of "HelloWorld"
IsCorrectPassword

Validates the given password string against a specified regular expression or a default pattern.

Example
string password = "Passw0rd";
bool isValidDefault = password.IsCorrectPassword(); // Returns true if password matches default pattern

Regex customRegex = new Regex(@"^[a-zA-Z0-9]{6,12}$");
bool isValidCustom = password.IsCorrectPassword(customRegex); // Returns true if password matches custom pattern
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

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.2.1 135 5/23/2024
1.2.0 137 5/19/2024
1.1.0 130 5/19/2024
1.0.0 122 5/19/2024