Skip to content

makcakaya/mutility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mutility

A set of every day use utility classes providing following features:

  • Argument validation including general assertion checks, null checks and others. Checkout Ensure class.
  • Logging abstraction and NLog integration.

Examples

public void SomeMethod(string strArg1, string strArg2, object objArg, DateTime dateArg, int intArg)
{
    Ensure.NotEmpty(strArg1);
    Ensure.NotNull(strArg).And(objArg);
    Ensure.That(dateArg > DateTime.Now).And(intArg != 0).OrThrow(new InvalidOperationException("Invalid data"));
    // Method body...
}
 

About

The utility classes and methods used in every project are assembled and put into one project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages