Interface contracts – forcing code contracts through interfaces(weblogs.asp.net)
submitted by
gpeipman(3145) 2 years ago
Sometimes we need a way to make different implementations of same interface follow same rules. One option is to duplicate contracts to all implementation but this is not good option because we have duplicated code then. The other option is to force contracts to all implementations at interface level. In this posting I will show you how to do it using interface contracts and contracts class.
|category: Visual Studio
|Views: 9
tags:
VisualStudio another
Everyones tags:
Your Tags: