示例#1
0
文件: Program.cs 项目: EkardNT/CS143B
 private static void On(SeekCommand command)
 {
     fileSystem.Seek(command.FileHandle, command.Position);
     WriteSuccessLine(string.Format("current position is {0}", command.Position));
 }
示例#2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var sk = (command = new SeekCommand()) as SeekCommand;
     return RequireFileHandle(args, 0, out sk.FileHandle)
         && RequirePosition(args, 1, out sk.Position);
 }