Esempio n. 1
0
 public override string ToString()
 {
     return
         (string.Format(
              "{{ ID: {0}, Index: {1}, Name: {2}, Gender: {3}, Ass: {4}, Position: {5}, Rect: {6} Items: [{7}], Bytes: [{8}]}}, List: [{9}]}}",
              ID,
              Index,
              Name,
              Gender,
              Ass,
              Position,
              Rect,
              Items == null
                 ? null
                 : Items.Aggregate(string.Empty, (s, n) => string.IsNullOrEmpty(s) ? n.ToString() : s + ", " + n),
              Bytes == null
                 ? null
                 : Bytes.Aggregate(string.Empty, (s, n) => string.IsNullOrEmpty(s) ? n.ToString() : s + ", " + n),
              List == null
                 ? null
                 : List.Aggregate(string.Empty, (s, n) => string.IsNullOrEmpty(s) ? n.ToString() : s + ", " + n)
              ));
 }