What are code contracts?
Answer / Jyoti Sinha
Code Contracts is a programming discipline and set of tools for defining, verifying, and enforcing specific conditions at runtime in the Microsoft .NET Framework applications. These conditions can include preconditions (checking that a method's parameters are valid), postconditions (checking the result of a method), object invariants (checking an object's state), and threads invariants (checking thread safety).
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between Panel and GroupBox classes?
What is the use of system.diagnostics.process class in .net?
What is an assembly? What are the different types of assemblies?
How will u load dynamic assembly? How will create assemblies at run time?
What do the terms “boxing” and “unboxing” mean?
what is machine key error in .NET how can we solve it?
What's singleton activation mode in .net?
Name some of the languages .NET support?
How is .net core cross platform?
What is equivalent for regsvr32 exe in .net ?
Can we use data reader to bind gridview?
How anonymous method is different from a lambda expression?