Dictionary<MyEnum, Object>;. , , .
- , :
interface ICommand
{
void Execute();
}
class SomeCommand : ICommand
{
public SomeCommand() { }
public void Execute() { }
}
class SomeOtherCommand : ICommand { }
, , , w factory w/static :
class RemoteCommand
{
public static SomeCommand SomeCommand
{
get
{
var result = new SomeCommand();
return result;
}
}
public static SomeOtherCommand SomeOtherCommand { get { } }
}
Edit:
, , , , , , , :
interface IRemoteCommand
{
void RemoteMethod();
void OtherRemoteMethod();
void ImplementedAgainstADifferentServerMethod();
}