public string[] ToArray() { return(new string[] { Customer, Title, Genre, Rented.ToString(), Returned == DateTime.MinValue ? String.Empty : Returned.ToString(), Cost.ToString(), BookingId.ToString(), CustomerId.ToString() }); }
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()); } }