class MethodDescription : MemberDescription

book_4_sparkGenerated
code_blocksInput

Description

The MethodDescription class in the Sandbox namespace provides a detailed description of a method. It is used to encapsulate and safely interact with MethodInfo objects. This class is typically returned by the TypeLibrary and TypeDescription classes.

Members

Instance Methods

Member NameSummary
InvokeInvokes the method on the specified target object with the given parameters.
InvokeWithReturnInvokes the method on the specified target object with the given parameters and returns a value of type T.
CreateDelegateCreates a delegate of type T for the method.
CreateDelegateCreates a delegate of type T for the method, bound to the specified target object.
CreateDelegateCreates a delegate of the specified type for the method.
CreateDelegateCreates a delegate of the specified type for the method, bound to the specified target object.

Instance Properties

Member NameSummary
IsMethodReturns true, indicating this is a method.
IsSpecialNameIndicates whether the method has a special name.
IsVirtualIndicates whether the method is virtual.
ReturnTypeGets the return type of this method.
ParametersGets a list of parameters expected by this method.