brycehammond / G42.Helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

G42.Helpers

Odds and end helpers over the years.

Flow Control

Run async code syncronously easier with:

  var result = AsyncHelper.RunSync(() => foo.SomethingAsync()));

Exceptions

Adds basic exceptions like NotFoundException and ForbiddenException.

Get inner exception messages by doing the following:

try
{
  //kaboom
}
catch(Exception ex)
{
  var allTheExceptionsString = ErrorHelper.GetInnerExceptions(ex);
}

Assembly

Get the version info from assembly meta data.

Resources

Get an embedded resource as a string or stream easily.

About

License:MIT License


Languages

Language:C# 97.8%Language:Batchfile 2.2%