s&box docs

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

Properties

Showing 5 properties

public virtual bool Sandbox.MethodDescription.IsMethod { get; set; }

Returns true - because this is a method

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Reflection
Doc IDT:Sandbox.MethodDescription

On this page