Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.28 KB

File metadata and controls

41 lines (30 loc) · 1.28 KB

ApprovalUtilities Features

Guards

Guards are convenient functions if incorrect values are passed in.

Guard.AgainstNullAndEmpty(subdirectory, nameof(subdirectory));

snippet source | anchor

Disposables.Create

using statements nicely cleanup on exit if you have a IDisposable or you can create a simple disposable object by passing in a lambda.

using (Disposables.Create(() => callCount++))
{
    //code
}

snippet source | anchor


Back to User Guide