public ExternalCommand(Command command) { CommandType = command.GetType(); Constructor = CommandType.GetConstructor(new Type[0]); Instance = command; Properties = CommandType.GetProperties(); Metadata = GetCommandMetadata(CommandType); }