Skip to content

Instantly share code, notes, and snippets.

@laurentkempe
Created May 24, 2013 13:32
Show Gist options
  • Save laurentkempe/5643528 to your computer and use it in GitHub Desktop.
Save laurentkempe/5643528 to your computer and use it in GitHub Desktop.
NDepend find all methods using a setter of a class
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