The VersaTul Extensions project provides a variety of methods for manipulating arrays, performing conversions and other common functionalities.
$ dotnet add package VersaTul.ExtensionsVersaTul Extensions is a project that provides a variety of methods for manipulating arrays, performing conversions and other common functionalities.
To use the VersaTul Extensions, you need to add the using VersaTul.Extensions; statement to your code. Then you can call the extension methods on any object or collection. For example:
// Pick 3 random items from an array
var array = new[] { 1, 2, 3, 4, 5 };
var result = array.Pick(3);
// Convert a string to camel case
var phrase = "Hello World";
var camelCase = phrase.ToCamelCase();
// Convert an object to a specific type
var value = "123";
var number = value.To<int>();
For more details and examples, please refer to the documentation.
You can install the VersaTul Extensions from NuGet using the following command:
dotnet add package VersaTul.Extensions
This project is licensed under the MIT License - see the LICENSE file for details.