Esempio n. 1
0
 private static void SerializeInnerText()
 {
     TbXmlSerializer convertor = new TbXmlSerializer();
     byte[] bytes = convertor.SerializeXmlString(File.ReadAllText("/Users/jimCheng/projects/XmlPerformanceTest/Assets/Resources/InnerText.xml"));
     File.WriteAllBytes("/Users/jimCheng/Desktop/BinaryXml.bytes", bytes);
 }
Esempio n. 2
0
		private static void SerializeBuff()
		{
			TbXmlSerializer convertor = new TbXmlSerializer();
			byte[] bytes = convertor.SerializeXmlString(File.ReadAllText("/Users/jimCheng/projects/XmlPerformanceTest/Assets/Resources/Buff.xml"));
			File.WriteAllBytes("/Users/jimCheng/Desktop/BinaryXml.bytes", bytes);
		}