VersaTul.Utilities 1.0.15

Prefix Reserved
dotnet add package VersaTul.Utilities --version 1.0.15                
NuGet\Install-Package VersaTul.Utilities -Version 1.0.15                
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="VersaTul.Utilities" Version="1.0.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VersaTul.Utilities --version 1.0.15                
#r "nuget: VersaTul.Utilities, 1.0.15"                
#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 VersaTul.Utilities as a Cake Addin
#addin nuget:?package=VersaTul.Utilities&version=1.0.15

// Install VersaTul.Utilities as a Cake Tool
#tool nuget:?package=VersaTul.Utilities&version=1.0.15                

VersaTul Utilities

VersaTul Utilities is a project that provides a variety of commonly used helper methods to help with the rapid development process.

Features

  • ICollectionUtility<T>: A set of functionality that can operate on collections.
  • IEnumParser<T>: Utility methods that can quickly operate on Enums.
  • IGenerator: Methods that can produce a sequence of numbers or letters that meet certain statistical requirements for randomness.
  • INullFiltering: Utility methods that can filter Null values.

Usage

To use VersaTul Utilities, you need to create an instance of the CommonUtility class, which implements all the interfaces mentioned above. Then you can call the methods from the instance. For example:

// Create an instance of CommonUtility
CommonUtility utility = new CommonUtility();

// Use ICollectionUtility to make batches from a collection
IEnumerable<int> numbers = Enumerable.Range(1, 10);
IEnumerable<IEnumerable<int>> batches = utility.MakeBatches(numbers, 3);

// Use IEnumParser to parse an enum value to a string
enum Color { Red, Green, Blue }
string colorName = utility.ParseToString(Color.Red);

// Use IGenerator to generate a random string
string randomString = utility.RandomString(10);

// Use INullFiltering to filter out null values
object[] values = new object[] { 1, null, "hello", DBNull.Value };
int[] nonNullValues = utility.NullFilter<int>(values);

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on VersaTul.Utilities:

Package Downloads
VersaTul.Extensions

The VersaTul Extensions project provides a variety of methods for manipulating arrays, performing conversions and other common functionalities.

VersaTul.Data.Sql

The VersaTul Data Sql project provides the ability to quickly create database access objects, usable on any suppporting SQL databases. This project is built on top of the System.Data.Common namespace and provides the functionality to quickly call stored procedures or plain text sql queries, then map the result into data objects using the provided helper methods.

VersaTul.Collection.Streamers

The VersaTul Collection Streamers provides functionality that enables developers to quickly convert a collection of objects in memory into a data-reader that can be used for Bulk inserting data into a SQL Database, or be used to generate flat files. Developers can use the streamers to: 1. Convert a Collection to a Data-Reader. 2. Convert from a Data-Reader to other file formats such as CSV, TAB or Json. 3. Compress converted data into Zip files. 4. Transport the converted data via e-mail. The Streamers project also works with Display Attributes which is used to manipulate the properties on the objects in the collection such as formatting the data or renaming the property with a desired display name.

VersaTul.Task.Scheduler

The VersaTul Task Scheduler project provides functionality to schedule events then listen to and react to those events. This is ideal for windows service type applications that may run tasks based on certain time or day. Events can be scheduled from seconds, minutes, hours, days and many more combinations.

VersaTul.Logger.File

The VersaTul Logger File project provides the functionality needed to performing logging in a flat file. This project implements the ILogger interface from the VersaTul Logger project.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.15 252 12/10/2024
1.0.14 127 12/9/2024
1.0.13 696 4/4/2024
1.0.12 258 4/4/2024
1.0.11 107 4/4/2024
1.0.10 193 3/1/2024
1.0.9 166 2/1/2024
1.0.8 1,170 11/2/2023
1.0.7 211 7/24/2023
1.0.6 341 7/22/2023