예제 #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);
 }