Created
May 24, 2013 13:32
-
-
Save laurentkempe/5643528 to your computer and use it in GitHub Desktop.
NDepend find all methods using a setter of a class
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
let setters = Types.WithFullName("NDepend.Attributes.CodeRuleAttribute").ChildMethods() | |
.Where(m => m.IsPropertySetter) | |
from m in Methods.UsingAny(setters) | |
select new { m, settersCalled = m.MethodsCalled.Intersect(setters) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment