.NET library that contains extension methods and helper classes for character-based data types.
Very high code coverage of the unit tests (100% line and branch) and the consistent avoidance of unsafe code blocks are main design principles of this library.
- Extension methods that help to write easier and cleaner code. Many of them are "Syntactic Sugar" that calls existing Framework methods and will (hopefully) be inlined. Some other fill gaps of the Framework.
- Extension methods that act as polyfills in order to make it easier to support older framework versions in Multi Targeting Projects. (See the complete list.)
- Extension methods that return identical
Int32
hashcodes for identicalChar
sequences each time the program runs. These hashcodes are a slim alternative to larger hash algorithms, which is suitable for hashing short strings that are not used in a security-critical context. - Useful helpers to work with character sets and encodings.
- Simply install the nuget package, publish the
FolkerKinzel.Strings
namespace and enjoy a lot more functionality for character-based .NET types.