Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / C#

Detecting Liskov Substitution Principle Violations with Code Contracts

Rate me:
Please Sign up or sign in to vote.
3.90/5 (7 votes)
12 Mar 2016CPOL3 min read 19K   7  
Code Contracts provide tools to explicitly define assumptions about method parameters and by static code analysis help to find bugs before they will appear in the runtime. This article demonstrates usage of Code Contracts.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Poland Poland
I’m a full stack developer specialized in design and implementation of web portals using Microsoft technology stack (ASP.NET, ASP.NET MVC, C#, Entity Framework). I put emphasis on SOLID craftsmanship and strive to keep my code clean. Because I know how expensive technical debt can be. Because I understand my job is not to write code, but to solve problems. Because I want to help people to be more effective through the software.

Comments and Discussions