Ejemplo n.º 1
0
 /// <summary>
 /// Returns a <see cref="System.String" /> that represents this instance.
 /// </summary>
 /// <returns>
 /// A <see cref="System.String" /> that represents this instance.
 /// </returns>
 public override string ToString()
 => string.Format("{0} ({1} .. {2}) {3}{4}{5}",
                  Command,
                  TargetId,
                  Command.ETag,
                  DueTime.IfNotNull()
                  .Then(due => " due " + due)
                  .ElseDefault(),
                  DeliveryPrecondition.IfNotNull()
                  .Then(p => $", depends on {p}")
                  .ElseDefault(),
                  Result.IfNotNull()
                  .Then(r => $", {r}")
                  .ElseDefault());
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(string.Format("{0}{1}{2}{3}",
                          Command,
                          DueTime.IfNotNull()
                          .Then(due => " due " + due)
                          .ElseDefault(),
                          DeliveryPrecondition.IfNotNull()
                          .Then(p => ", depends on " + p)
                          .ElseDefault(),
                          Result.IfNotNull()
                          .Then(r => ", " + r)
                          .ElseDefault()));
 }