Created
April 17, 2014 15:15
-
-
Save anonymous/10991092 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <Name>Base class should not use derivatives</Name> | |
warnif count > 0 | |
from baseClass in JustMyCode.Types | |
where baseClass.IsClass | |
let derivedClassesUsed = baseClass.DerivedTypes.UsedBy(baseClass) | |
where derivedClassesUsed.Count() > 0 | |
select new { baseClass, derivedClassesUsed } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment