A Fluent syntax Guard method to perform (pre condition) contracts(www.eriklieben.com)
submitted by
erik_(50) 1 year, 4 months ago
Precondition method contracts explained and a sample of a nice fluent syntax:
Guard
.With<ArgumentNullException>
.Against(object == null)
.Say("The object cannot be null, than I am not able to process it");
|category: C#
|Views: 41
tags:
C# another
Everyones tags:
Your Tags: