コード例 #1
0
 public override string ToString()
 {
     return($"{Score:##.000}\t{MObject.ToString()}");
 }
コード例 #2
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"Errors = {(Errors == null ? "null" : $"[{ string.Join(", ", Errors)} ]")}");
     toStringOutput.Add($"MObject = {(MObject == null ? "null" : MObject.ToString())}");
     toStringOutput.Add($"RelatedObjects = {(RelatedObjects == null ? "null" : $"[{ string.Join(", ", RelatedObjects)} ]")}");
 }