Skip to content

irfannn/yaep

 
 

Repository files navigation

YAEP

yaep

yet another extensions package is a collection of extension methods to increase code readability.

Install

Install-Package YAEP

Usage

s.IsNullOrEmpty();
s.EqualsIgnoreCaseCurrent() //CurrentCulture
s.EqualsIgnoreCaseInvariant() 
s.EqualsIgnoreCaseOrdinal()
s.Concat(new []{"1","2"})

var list = new List<Todo>();
list.IsNullOrEmpty();
list.IsNotEmpty()
list.AsReadOnly();
list.EmptyIfNull()

todo.IsNotNull();
todo.IsNull();
todo.DefaultIfNull(new Todo(Guid.Empty.ToString(), "--"));

obj.AsTaskFromResult() => returns Task<objType>

Note: the namespaces maches the namespace of the extended Type so you don't have to change your usings

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 89.3%
  • PowerShell 5.8%
  • Shell 4.5%
  • Batchfile 0.4%