When overridden in a derived class, gets a System.Reflection.MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method.
A System.Reflection.MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method.
You do not have to override the MethodBase.GetMethodBody in order to use it. You can call the MethodBase.GetMethodBody method on System.Reflection.MethodInfo and System.Reflection.ConstructorInfo objects, because the method is overridden in the runtime versions of these classes. For example, the runtime version of the System.Reflection.MethodInfo class derives from the System.Reflection.MethodInfo class, which in turn derives from the System.Reflection.MethodBase class.