/// <summary>Gets a string representation of the current object</summary> /// <returns>this as <see cref="string"/></returns> public override string ToString() { return(Write.Invariant($"Id:{this.Id} State:{this.CurrentState} Position:{this.Position} Round:{this.Round} PacketNumber:{this.Route.PacketsCount} MaxPackets:{Drone.MaxPackets} Route:({this.Route})")); }
/// <summary>Gets a string representation of the current object</summary> /// <returns>this as <see cref="string"/></returns> public override string ToString() { return(Write.Invariant($"StartCell:{this.StartCell} ReachCell:{this.ReachCell} Cells:{Write.Collection(this.Cells)} Packets:{Write.Collection(this.Packets)} MaxPackets:{this.MaxPackets} Distance:{this.Distance}")); }
/// <summary>Gets a string representation of the current object</summary> /// <returns>this as <see cref="string"/></returns> public override string ToString() { return(Write.Invariant($"Rows:{this.Rows} Columns:{this.Columns} StartCell:{this.StartCell} PacketNumber:{this.packets.Count()}")); }
/// <summary>Gets a string representation of the current object</summary> /// <returns>this as <see cref="string"/></returns> public override string ToString() { return(Write.Invariant($"PacketsNumber:{this.PacketsNumber} DronesNumber:{this.Drones.Count()} Round:{this.Round} MaxRound:{this.MaxRound} autonomyRatio:{Delivery.autonomyRatio} maxDistance:{Delivery.maxDistance} Drone.MaxPackets:{Drone.MaxPackets} Grid:({this.Grid})")); }
/// <summary>Gets a string representation of the current object</summary> /// <returns>this as <see cref="string"/></returns> public override string ToString() { return(Write.Invariant($"StartCell:{this.StartCell} ReachCell:{this.ReachCell} Distance:{this.Distance}")); }
/// <summary>send string to debug output, using invariant culture</summary> /// <param name="formattable">initial string as formattable</param> public static void TraceInline(FormattableString formattable) { System.Diagnostics.Trace.Write(Write.Invariant(formattable)); }
/// <summary>send message and collection flatten to string to debug output, using invariant culture</summary> /// <param name="message">message to print</param> /// <param name="collection">collection to print after message</param> /// <param name="separator">string.Join separator</param> public static void Trace(FormattableString message, IEnumerable <object> collection, string separator) { System.Diagnostics.Trace.WriteLine(Write.Invariant($"{message?.ToString()}{Write.Collection(collection, separator)}")); }
/// <summary>send string to console output, using invariant culture</summary> /// <param name="formattable">initial string as formattable</param> public static void Print(FormattableString formattable) { Console.WriteLine(Write.Invariant(formattable)); Write.Trace(formattable); }
/// <summary>send string to debug output, using invariant culture</summary> /// <param name="formattable">initial string as formattable</param> public static void TraceVisible(FormattableString formattable) { System.Diagnostics.Trace.Write(Write.Invariant($"{Environment.NewLine}!! {formattable?.ToString()}{Environment.NewLine}")); }