A bunch of static methods to help work with IL instructions.

EnumerateMethodCalls: Returns an enumerator that walks through all the calls in the given method. This is usefull if your rule is only looking at methods called.

IsOpCode: A bunch of method to determine if an OpCode is from a specific group of OpCodes. For example there are 12 different versions of Ldc_I4 which you usually would want to treat as identical in a rule.

GetArgument: Gets the specified argument of a method call. Note that the first argument of an instance method call is the instance the method is going to be called on.

Last edited Aug 26, 2007 at 5:34 PM by JeffLeBert, version 1

Comments

No comments yet.