using System.Xml.Serialization;
public static void Main()
B[] myArray=new B[]{new B("Hello"),new B("World")};
XmlRootAttribute root = new XmlRootAttribute ();
XmlSerializer ser = new XmlSerializer(typeof(B[]),root);
var outStream = new StringWriter();
ser.Serialize(outStream,myArray);
var xmlText = outStream.ToString();
TextReader sr = new StringReader(xmlText);
B[] result = (B[])ser.Deserialize(sr);
public string content{get;set;}