Located at goalbased.github.io/butters.extensions.string
Package | NuGet Stable | NuGet Pre-release | Downloads |
---|---|---|---|
butters.extensions.string |
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.
using Butters.Extensions.String;
var expected = "name_of_property";
var str = "nameOfProperty"
Assert.Equal(expected, str.ToSnakeCase());
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 |
A key feature of Butters.Extensions.String is performance.