SDK for .Net Core
This is collection of useful functions for lazy developers (like me).
| Windows | Ubuntu | macOS |
|---|---|---|
-
Textextensions-
Common extensions for
System.String-
SafeTrim()safely trim aSystem.String, returnsstring.Emptyin case ofnull. -
IsEqual()IsEqualIgnoreCase()IsOrdinalEqual()IsOrdinalEqualIgnoreCase()determines whether aSystem.Stringhas same value to anotherSystem.String. -
Contains()OrdinalContains()determines whether aSystem.Stringcontains anotherSystem.String.
-
-
Parsing extensions for
System.String-
ParseTo<TResult>()try to convert the specifiedSystem.StringtoNullable<TResult>type usingConvert.ChangeTypefunction. -
ParseToBoolean()ParseToInt()ParseToDateTime()...try to convert the specifiedSystem.Stringto primitive data types.
-
-
-
Threadingextensions- Common extensions for
System.Threading.Tasks.TaskWaitAndReturn(): waits for theSystem.Threading.Tasks.Taskto complete execution, then returns its result.
- Common extensions for