@Ease is a set of extensions and helpers.
Quick links
Change logs | Project Repository
Available for .NET Standard 2.0+
PM> Install-Package AtEase
- Extensions for Collections, Enum, String and other types
- Persian DateTime extension
- OperationResult for returning an object that shows succeed or faild operation with data and errors.
- Provide DSL for C# methods
testClass.ToQueryString();
dateTime.ToPersianDateTime(format); // تبدیل به تاریخ شمسی
Guid.NewGuid().AsSequentialGuid();
GuidGeneratorExtensions.NewSequentialGuid();
string.IsValidShamsiYear(); // تاریخ شمسی است
string.IsValidTime();
string.IsValidEmail();
string.IsWord();
string.ToSpacingSentence();
string.ToSentence();
string.ToSnakeCase();
string.FixPersianKeyboardLayou(); // فیکس حروفی عربی و فارسی
string.ToPersianNumber(); // تبدیل اعداد به اعداد فارسی
string.IsNull();
string.IsNullOrEmptyOrWhiteSpace();
@enum.ToInt(); // enum to int
value.AsEnum<TestEnum>(); // int to enum
@enum.GetDisplayName();
@enum.GetDescription();
EnumToList<Enum>; // get list of values
collection.IsNullOrEmpty()
collection.IsNotNullOrEmpty()
collection.NotAny()
nullableDouble.ToNullableDecimal()
collection.IsZeroOrMin()
collection.IsEven()
collection.IsOdd()
collection.NextRandom()
number.Milliseconds()
number.Seconds()
number.Minutes()
number.Hours()
number.Days()
number.Weeks()
IsWindows()
IsMacOs()
IsLinux()
string.RunAsCmd(workingDirectory)
string.RunAsWindowsCmd(workingDirectory)
string.RunAsBashCmd(workingDirectory)