Пример #1
0
 public string[] ToArray()
 {
     return(new string[]
     {
         Customer,
         Title,
         Genre,
         Rented.ToString(),
         Returned == DateTime.MinValue ? String.Empty : Returned.ToString(),
         Cost.ToString(),
         BookingId.ToString(),
         CustomerId.ToString()
     });
 }
Пример #2
0
    public static void RunConsoleLine(string Line)
    {
        object Returned;

        try
        {
            Returned = ConsoleEngine.Evaluate(Line);
        }
        catch (JavaScriptException Error)
        {
            Console.Print(Error.Message);
            return;
        }

        if (!(Returned is Jurassic.Undefined))
        {
            Console.Print(Returned.ToString());
        }
    }