This library provides frequently used methods as extension methods. It mainly adds better support for null checking, exception throwing and enumerables.
Install-Package NetStandardExtensions
- Check if collections are null or empty
- Converting strings and other types into a target type using default conversion method
- Clone enumerables and loop through them with ForEach, Take, TakeWhile and TakeUntil
- Flatten arrays of any type into a string
- Throw exceptions directly from any type
- IsNull and IsDefault (and more) for every type
- Clamp numbers to minimum and maximum values
- Limit numbers and strings to a maximum
- A shortcut for String.Format and String.Concat
We build this library with the .Net Standard 1.0 and thats why it supports all .Net platforms.
.NET Standard |
1.0 |
---|---|
.NET Core | 1.0 |
.NET Framework | 4.5 |
Mono | 4.6 |
Xamarin.iOS | 10.0 |
Xamarin.Mac | 3.0 |
Xamarin.Android | 7.0 |
Universal Windows Platform | 10.0 |
Windows | 8.0 |
Windows Phone | 8.1 |
Windows Phone Silverlight | 8.0 |
Clone or download the repository.
Help adding features, fixing issues or provide a better documentation.
Do you like this project?
BTC bc1qp6zc73vy8pmr6lfe4cxa6eqzvkuer9hrjwpzza