CommandWrapper

Namespace: WellFired.Command.Unity.Runtime

Description

Each Command has an instance of something which derives from CommandWrapper, this simply contains the details for the call. Basically caching it. It is possible to implement custom commands, simply by deriving from this type

protected-attrib

string TheMethodOrPropertyName

Properties

string Description { get; set; }
string CommandName { get; set; }
WeakReference ObjectReference { get; set; }
Type Type { get; set; }
abstract :ref:`ParameterWrapper<classwellfired_command_unity_runtime_helpers_parameterwrapper>`[] Parameters { get; set; }

Public Properties

string MethodOrPropertyName

Public Methods

abstract void Invoke ( params string[] arguments )
override bool Equals ( object otherObject )
override int GetHashCode ( )
bool IsValid ( )
string GetParametersAsString ( )

protected-func

  CommandWrapper ( string commandName, string description, Type type, object referenceObject )

Breakdown

  • string TheMethodOrPropertyName
  • string Description { get; set; }
  • string CommandName { get; set; }
  • WeakReference ObjectReference { get; set; }
  • Type Type { get; set; }
  • abstract :ref:`ParameterWrapper<classwellfired_command_unity_runtime_helpers_parameterwrapper>`[] Parameters { get; set; }
  • string MethodOrPropertyName
  • abstract void Invoke ( params string[] arguments )
  • override bool Equals ( object otherObject )

    Description

    Your custom Command Wrappers can implement this to check for object equality.

    Parameters

    otherObject The CommandWrapper to compare with the current CommandWrapper.
  • override int GetHashCode ( )
  • bool IsValid ( )

    Description

    Determines whether this instance is valid.

  • string GetParametersAsString ( )

    Description

    Getsa string containing all the method parameters.

  • CommandWrapper ( string commandName, string description, Type type, object referenceObject )