Swaps the body of a method.
[Visual Basic] Public Shared Sub SwapMethodBody( _ ByVal cls As Type, _ ByVal methodtoken As Integer, _ ByVal rgIL As Integer, _ ByVal methodSize As Integer, _ ByVal flags As Integer _ ) [C#] public static void SwapMethodBody( Type cls, int methodtoken, int rgIL, int methodSize, int flags ); [C++] public: static void SwapMethodBody( Type* cls, int methodtoken, int rgIL, int methodSize, int flags ); [JScript] public static function SwapMethodBody( cls : Type, methodtoken : int, rgIL : int, methodSize : int, flags : int );
MethodRental Class | MethodRental Members | System.Reflection.Emit Namespace