API ReferenceSandbox
MethodDescriptionclass
Describes a method. We use this class to wrap and return MethodInfo's that are safe to interact with. Returned by `Sandbox.Internal.TypeLibrary` and `Sandbox.TypeDescription`.
Methods6
Showing 6 methods
public object Invoke(object targetObject, object[] parameters = null)
Invokes this method.
| Parameter | Type | Description |
|---|---|---|
| targetObject | object | Should be null if this is static, otherwise should be the object this is a member of. |
| parameters = null | object[] | An array of parameters to pass. Should be the same length as Parameters |
Returns:
object—public T InvokeWithReturn(object targetObject, object[] parameters = null)
Invokes this method and returns a value.
| Parameter | Type | Description |
|---|---|---|
| targetObject | object | Should be null if this is static, otherwise should be the object this is a member of. |
| parameters = null | object[] | An array of parameters to pass. Should be the same length as Parameters |
Returns:
T—No results match this filter.
Properties5
Showing 5 properties
public virtual bool Sandbox.MethodDescription.IsMethod { get; set; }
Returns true - because this is a method
Returns:
bool—public bool Sandbox.MethodDescription.IsSpecialName { get; set; }
Returns:
bool—public bool Sandbox.MethodDescription.IsVirtual { get; set; }
Returns:
bool—public System.Reflection.ParameterInfo[]& modreq(System.Runtime.InteropServices.InAttribute) Sandbox.MethodDescription.Parameters { get; set; }
Gets a list of parameters expected by this method
Returns:
ParameterInfo[]& modreq(InAttribute)—public System.Type Sandbox.MethodDescription.ReturnType { get; set; }
Gets the return type of this method.
No results match this filter.