コード例 #1
0
    public static void XmlWriteStorage(object obj)
    {
        try
        {
            string s = XmlStorage.SerializeObject(obj, obj.GetType());

            XmlStorage.CreateTextFile(fileName, s, false);
            Debug.Log("序列化成功");
        }
        catch
        {
            Debug.Log("序列化失败");
        }
    }