Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 4.03 KB

README.md

File metadata and controls

46 lines (30 loc) · 4.03 KB

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.