VersaTul.Utilities
1.0.13
Prefix Reserved
dotnet add package VersaTul.Utilities --version 1.0.13
NuGet\Install-Package VersaTul.Utilities -Version 1.0.13
<PackageReference Include="VersaTul.Utilities" Version="1.0.13" />
paket add VersaTul.Utilities --version 1.0.13
#r "nuget: VersaTul.Utilities, 1.0.13"
// Install VersaTul.Utilities as a Cake Addin #addin nuget:?package=VersaTul.Utilities&version=1.0.13 // Install VersaTul.Utilities as a Cake Tool #tool nuget:?package=VersaTul.Utilities&version=1.0.13
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 | Versions 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. |
-
net8.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.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. |
|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.