public string ToJson() =>
 string.Format
 (
     "{{ \"position\": {0}, \"team\": \"{1}\", \"won\": {2}, \"drawn\": {3}, \"lost\": {4}, \"points\": {5} }}",
     Position.ToString().PadLeft(2),
     Team.PadRight(27),
     Wins.ToString().PadLeft(2),
     Draws.ToString().PadLeft(2),
     Loses.ToString().PadLeft(2),
     Points.ToString().PadLeft(2)
 )
 ;
示例#2
0
 public string[] GetData()
 {
     return(new string[] { Name, Starts.ToString(), Wins.ToString(), AlmostWins.ToString(), Loses.ToString(), Hardness.ToString() + "%", EmotionFactor.ToString() + "%" });
 }