SDK for .Net Core
This is collection of useful functions for lazy developers (like me).
Windows | Ubuntu | macOS |
---|---|---|
-
Text
extensions-
Common extensions for
System.String
-
SafeTrim()
safely trim aSystem.String
, returnsstring.Empty
in case ofnull
. -
IsEqual()
IsEqualIgnoreCase()
IsOrdinalEqual()
IsOrdinalEqualIgnoreCase()
determines whether aSystem.String
has same value to anotherSystem.String
. -
Contains()
OrdinalContains()
determines whether aSystem.String
contains anotherSystem.String
.
-
-
Parsing extensions for
System.String
-
ParseTo<TResult>()
try to convert the specifiedSystem.String
toNullable<TResult>
type usingConvert.ChangeType
function. -
ParseToBoolean()
ParseToInt()
ParseToDateTime()
...
try to convert the specifiedSystem.String
to primitive data types.
-
-
-
Threading
extensions- Common extensions for
System.Threading.Tasks.Task
WaitAndReturn()
: waits for theSystem.Threading.Tasks.Task
to complete execution, then returns its result.
- Common extensions for