Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

ShellCommands Class Reference

This class handles the invokation of C#Shell's build-in commands. More...

List of all members.

Public Member Functions

 ShellCommands (object[] objectsWithShellCommands)
string ExecuteCommand (string command, string parameters)
 Executes a shell command.
ArrayList GetCommandNames ()
 Return the name of all commands.

Static Public Member Functions

static string OutputToString (object output)

Private Attributes

Hashtable _shellCommands = CollectionsUtil.CreateCaseInsensitiveHashtable()
Hashtable _shellObjects = CollectionsUtil.CreateCaseInsensitiveHashtable()

Detailed Description

This class handles the invokation of C#Shell's build-in commands.

Constructor & Destructor Documentation

ShellCommands::ShellCommands object[]  objectsWithShellCommands  )  [inline]

objectsWithShellCommands An array of object which contains shell commands.
DuplicateItemException if two command methods are named alike (compared case insensitively).
System.ArgumentException if a command method do not contain the right signature.

Member Function Documentation

string ShellCommands::ExecuteCommand string  command,
string  parameters

Executes a shell command.

command Name of command. Case does not matter.
parameters Any parameters to the command.
A string of output from the command.
TargetInvocationException If the command throws an exception

ArrayList ShellCommands::GetCommandNames  )  [inline]

Return the name of all commands.

static string ShellCommands::OutputToString object  output  )  [inline, static]

Turns output from a ShellCommandDelegate into a string.

InternalErrorException if the object cannot be turned into a string.

Member Data Documentation

Hashtable ShellCommands::_shellCommands = CollectionsUtil.CreateCaseInsensitiveHashtable() [private]

Hashtable ShellCommands::_shellObjects = CollectionsUtil.CreateCaseInsensitiveHashtable() [private]

The documentation for this class was generated from the following file: Logo