Preconditions

suggest change

Preconditions allows methods to provide minimum required values for input parameters

Example…

void DoWork(string input)
{
    Contract.Requires(!string.IsNullOrEmpty(input));

    //do work
}

Static Analysis Result…

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents