Csharp/C Sharp by API/System.Xml.Linq/XComment — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 18:31, 26 мая 2010

new XComment

<source lang="csharp"> using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Xml; using System.Xml.Linq; public class MainClass {

   public static void Main() {
       XElement xBookParticipant = new XElement("Book"); 
       XComment xComment = new XComment("This person is retired.");
       xBookParticipant.Add(xComment);
       Console.WriteLine(xBookParticipant);
   }

}


 </source>