Schlagwort-Archive: contract

Code contract abbreviators

Code contracts offer an easy way to define the pre-conditions and post-conditions for methods. If you create different methods it may happen that the same contracts are used multiple times, especially in overloaded methods with similar parameters.   Example application … Weiterlesen

Veröffentlicht unter .NET, C# | Verschlagwortet mit , | Kommentar hinterlassen

Code contracts in C#

Code contracts provide a way to specify conditions in your code. For example this may be pre-conditions and post-conditions of methods. These contracts will allow you to validate the parameters of methods and to check the method results.   Example … Weiterlesen

Veröffentlicht unter .NET, C#, Crashkurs | Verschlagwortet mit | 3 Kommentare