class MethodDescription

in global :: Sandbox

Describes a method. We use this class to wrap and return MethodInfo's that are safe to interact with. Returned by and .


public bool IsMethod { get; }

Returns true - because this is a method

public bool IsSpecialName { get; }

🤡 Doc inheritance is not yet supported.

No summary.

public bool IsVirtual { get; }

🤡 Doc inheritance is not yet supported.

No summary.

public Type ReturnType { get; }

Gets the return type of this method.

public ref ParameterInfo[] Parameters { get; }

Gets a list of parameters expected by this method

public void Invoke( object targetObject, object[] parameters = null )

Invokes this method.

  • 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

public Delegate CreateDelegate( Type delegateType )

Creates a delegate bound to this method.

  • delegateType Delegate type to create

public Delegate CreateDelegate( Type delegateType, object target )

Creates a delegate bound to this method.

  • delegateType Delegate type to create
  • target Value for the first parameter / target object

public bool IsPublic { get; }

😔 No documentation found.

public bool IsFamily { get; }

😔 No documentation found.

public bool IsProperty { get; }

😔 No documentation found.

public bool IsField { get; }

😔 No documentation found.

public int SourceLine { get; }

😔 No documentation found.

public string SourceFile { get; }

😔 No documentation found.

public DisplayInfo GetDisplayInfo( )

😔 No documentation found.

public bool IsNamed( string name )

😔 No documentation found.

public bool HasTag( string tag )

😔 No documentation found.

public bool IsStatic { get; }

😔 No documentation found.

public bool HasAttribute( Type t )

😔 No documentation found.

public T GetCustomAttribute( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool HasAttribute( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public string[] Aliases { get; }

😔 No documentation found.

public string[] Tags { get; }

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public bool ReadOnly { get; }

😔 No documentation found.

public string Group { get; }

😔 No documentation found.

public string Icon { get; }

😔 No documentation found.

public string Description { get; }

😔 No documentation found.

public string Title { get; }

😔 No documentation found.

public int Identity { get; }

😔 No documentation found.

public string Name { get; }

😔 No documentation found.

public TypeDescription TypeDescription { get; }

😔 No documentation found.

public T CreateDelegate( object target )

😔 No documentation found.

public T CreateDelegate( )

😔 No documentation found.

public T InvokeWithReturn( object targetObject, object[] parameters = null )

😔 No documentation found.

public Attribute[] Attributes { get; }

😔 No documentation found.

public int Order { get; }

😔 No documentation found.