API ReferenceSandbox
public sealed class Sandbox.MethodDescription : Sandbox.MemberDescription
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`.
Methods
Showing 6 methods
public object Invoke(object targetObject, object[] parameters = null)
Invokes this method.
Parameters
targetObject: Should be null if this is static, otherwise should be the object this is a member of.parameters: An array of parameters to pass. Should be the same length as Parameters Default: null
public T InvokeWithReturn(object targetObject, object[] parameters = null)
Invokes this method and returns a value.
Parameters
targetObject: Should be null if this is static, otherwise should be the object this is a member of.parameters: An array of parameters to pass. Should be the same length as Parameters Default: null
No results match this filter.
Properties
Showing 5 properties
public virtual bool Sandbox.MethodDescription.IsMethod { get; set; }
Returns true - because this is a method
public bool Sandbox.MethodDescription.IsSpecialName { get; set; }
public bool Sandbox.MethodDescription.IsVirtual { get; set; }
public System.Reflection.ParameterInfo[]& modreq(System.Runtime.InteropServices.InAttribute) Sandbox.MethodDescription.Parameters { get; set; }
Gets a list of parameters expected by this method
public System.Type Sandbox.MethodDescription.ReturnType { get; set; }
Gets the return type of this method.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Reflection |
| Doc ID | T:Sandbox.MethodDescription |