コード例 #1
0
ファイル: Program.cs プロジェクト: EkardNT/CS143B
 private static void On(DestroyCommand command)
 {
     fileSystem.Destroy(command.LogicalName);
     WriteSuccessLine(string.Format("file {0} destroyed", command.LogicalName));
 }
コード例 #2
0
ファイル: CommandBuilders.cs プロジェクト: EkardNT/CS143B
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var de = (command = new DestroyCommand()) as DestroyCommand;
     return RequireLogicalName(args, 0, out de.LogicalName);
 }