Пример #1
0
 bool TestArg(String arg)
 {
     try
     {
         FitsDate fd = new FitsDate(arg);
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
Пример #2
0
 bool TestArg(String arg)
 {
     try
     {
         FitsDate fd = new FitsDate(arg);
         return true;
     }
     catch (Exception e)
     {
         return false;
     }
 }
Пример #3
0
 public static void TestArgs(String[] args)
 {
     for (int i = 0; i < args.Length; i++)
     {
         try
         {
             FitsDate fd = new FitsDate(args[i]);
             Console.Out.WriteLine("\"" + args[i] + "\" => " + fd + " => " + fd.ToDate());
         }
         catch (Exception e)
         {
             Console.Error.WriteLine("Date \"" + args[i] + "\" threw " + e.GetType().FullName + "(" + e.Message + ")");
         }
     }
 }