Represents a method that can be called at runtime. Essentially acts like a delegate.
Public Member Functions | |
DynamicMethod (string name) | |
Creates a new dynamic method. More... | |
DynamicMethod (string name, object onObject) | |
Creates a new dynamic method. More... | |
virtual T | Run (params object[] arguments) |
Executes this dynamic method with the given arguments. More... | |
Delegate | ToDelegate (Type type) |
Converts this Nitro method into a delegate for use with any other kind of event. More... | |
Public Attributes | |
string | Name |
The name of the method being run. More... | |
object | Object |
The object it's being run on. More... | |
MethodInfo | Method |
MethodInfo the method to run. More... | |
|
inline |
Creates a new dynamic method.
name | The name of the method to run. |
|
inline |
Creates a new dynamic method.
name | The name of the method to run. |
onObject | The object to run this method on. |
|
inlinevirtual |
Executes this dynamic method with the given arguments.
arguments | The arguments to pass to the method |
|
inline |
Converts this Nitro method into a delegate for use with any other kind of event.
type | The type of the target event. |
MethodInfo Nitro.DynamicMethod< T >.Method |
MethodInfo the method to run.
string Nitro.DynamicMethod< T >.Name |
The name of the method being run.
object Nitro.DynamicMethod< T >.Object |
The object it's being run on.