Skip to content

Defensive programming in .NET using Code Contracts

Photo of Lori Lalonde
Hosted By
Lori L.
Defensive programming in .NET using Code Contracts

Details

Will you be interested to clearly define your API contract and break the build when your APIs are called with invalid parameters, and lower a number of issues found in production as the result?

Code Contracts are the part of the framework since .NET 4.0 and help to maintain predictable run-time behavior of your code, despite unexpected inputs or user actions. In this session we will cover the basics of defensive programming and how Code Contracts help to follow this technique. We will also discuss different forms of the contracts, contract’s benefits and drawbacks, as well as run-time behavior and recommendations for implementation. By following the discussed techniques, you will be able to make your APIs well documented, predictable and protected from misuse.

6pm - Doors open, food/drinks served

6:30pm - Session start

Free parking is available at the library

About the Speaker

Andrei Marukovich (http://lunarfrog.com/blog) is a Team Lead at SCIEX and a Microsoft Windows Platform MVP. He has been developing software professionally for over 15 years and during this time he has designed and developed applications in such diverse areas as robotics, semiconductor device fabrication, game development and Web solutions. In his current position, Andrei leads development of software for life science applications. He blogs at http://lunarfrog.com/blog and can be found on Twitter at @amarukovich (https://twitter.com/amarukovich).

Photo of Canada's Technology Triangle .NET User Group group
Canada's Technology Triangle .NET User Group
See more events