CSharp examples for System.Xml:XML Serialization
Converts the String to UTF8 Byte array and is used in Deserialization
using System.Xml.Serialization; using System.Xml; using System.Web; using System.Text; using System.Linq; using System.IO;//ww w . ja va2 s .c o m using System.Collections.Generic; using System; public class Main{ /// <summary> /// Converts the String to UTF8 Byte array and is used in De serialization /// </summary> /// <param name="pXmlString"></param> /// <returns></returns> private static Byte[] StringToUTF8ByteArray(String pstring) { UTF8Encoding encoding = new UTF8Encoding(); Byte[] byteArray = encoding.GetBytes(pstring); return byteArray; } }