| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Sharps Disposal Devices - Disposal Of Sharps - Sharps Disposal Boxes allegromedical.com | Phlebotomy Sharps Containers - Sharps Containers - DHP Home Delivery... dhphomedelivery.com |
The correct title of this article is Spec#. The substitution or omission of a # sign is because of technical restrictions.
Spec# is a programming language with specification language features that extends the capabilities of the C# programming language with Eiffel-like contracts, including object invariants, preconditions and postconditions. Like ESC/Java, it includes a static checking tool based on a theorem prover that is able to statically verify many of these invariants. It also includes a variety of other minor extensions to the language, such as non-null reference types. Microsoft Research developed both Spec# and C#; in turn, Spec# serves as the foundation of the Sing# programming language, which Microsoft Research also developed.
[edit] ExampleThis example shows two of the basic structures that are used when adding contracts to your code. static void Main(string![] args) requires args.Length > 0 { foreach(string arg in args) { Console.WriteLine(arg); } }
[edit] Sources
[edit] See also[edit] External links
| |||||||||||||||||||||||||||||||||||||||||||||
| ↑ top of page ↑ | about thumbshots |