Skip to content

goalbased/butters.extensions.string

Repository files navigation

Butters.Extensions.String - a string extension for .NET

Build codecov

Release Notes

Located at goalbased.github.io/butters.extensions.string

Packages

Package NuGet Stable NuGet Pre-release Downloads
butters.extensions.string butters.extensions.string butters.extensions.string butters.extensions.string

Features

Butters.Extensions.String is a NuGet library that you can add in to your project that will extend your string class which provide faster and many useful extensions.

Usage

using Butters.Extensions.String;

var expected = "name_of_property";
var str = "nameOfProperty"

Assert.Equal(expected, str.ToSnakeCase());

String Extension functions

Name Description
ToByte Convert string to byte array
ToBoolean Converts string to boolean which is case insensitive
true: "true", "t", "yes", "y"
false: "false", "f", "no", "n"
ToShort Converts string to 16-bit signed integer
ToInt16 This is as same as ToShort()
ToInt
ToInt32

Performance

A key feature of Butters.Extensions.String is performance.

About

Butters.Extensions.String - a string extension for .NET

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published