FxCop allows you to inspect the IL that was generated for your method, or to inspect a tree structure of "Nodes" that represent your compiled code.
for example, int i = 0, results in a Local in the list of locals, and an AssignmentExpression with a Literal source and a Local as target. It's somethimes a little hard to wrap your head around, but once you have it, it's usually quite simple as long as
you stay inside the same class or method.
If you want to inspect sourcecode, check out StyleCop, which works on a source level.