Closed SergeyTeplyakov closed 10 years ago
Following if-throw precondition:
public void Foo(string s) { if (false) throw new ArgumentException(GetMessage(), "s"); } private string GetMessage() { return "foo"; }
Converts to:
public void Foo(string s) { Contract.Requires(true); }
Following if-throw precondition:
Converts to: