コード例 #1
0
 public void VisitPersonAcc(Person acc)
 {
     string result = "<table><tr><td>Свойство<td><td>Значение</td></tr>";
     result += "<tr><td>Name<td><td>" + acc.Name + "</td></tr>";
     result += "<tr><td>Number<td><td>" + acc.Number + "</td></tr></table>";
     Console.WriteLine(result);
 }
コード例 #2
0
 public void VisitPersonAcc(Person acc)
 {
     string result = "<Person><Name>" + acc.Name + "</Name>" +
         "<Number>" + acc.Number + "</Number><Person>";
     Console.WriteLine(result);
 }