示例#1
0
        public static string SerializeToString(ILPanelEditor editor)
        {
            var serializer = new XmlSerializer();
            editor.Serialize(serializer);

            return serializer.SaveToString();
        }
示例#2
0
        public static void SerializeToFile(ILPanelEditor editor, string filename)
        {
            var serializer = new XmlSerializer();
            editor.Serialize(serializer);

            serializer.SaveToFile(filename);
        }