The MethodDescription class in the Sandbox
namespace provides a detailed description of a method. It serves as a wrapper for MethodInfo objects, ensuring safe interaction. This class is typically returned by TypeLibrary and TypeDescription.
The MethodDescription class in the Sandbox
namespace provides a detailed description of a method. It serves as a wrapper for MethodInfo objects, ensuring safe interaction. This class is typically returned by TypeLibrary and TypeDescription.
Member Name | Summary |
---|---|
Invoke | Invokes the method on the specified target object with the given parameters. |
InvokeWithReturn | Invokes the method on the specified target object with the given parameters and returns a value of type T. |
CreateDelegate | Creates a delegate of type T for the method. |
CreateDelegate | Creates a delegate of type T for the method, targeting the specified object. |
CreateDelegate | Creates a delegate for the method using the specified delegate type. |
CreateDelegate | Creates a delegate for the method using the specified delegate type and target object. |
Member Name | Summary |
---|---|
IsMethod | Returns true, indicating this is a method. |
IsSpecialName | Indicates whether the method has a special name. |
IsVirtual | Indicates whether the method is virtual. |
ReturnType | Gets the return type of this method. |
Parameters | Gets a list of parameters expected by this method. |