コード例 #1
0
        public static void SerializeAndWriteTo(object obj, string path)
        {
            var bytes = Serialize(obj);

            IOUtility.WriteAllBytes(path, bytes);
        }
コード例 #2
0
        public static void WriteAsJson(string path, object obj)
        {
            var jsContent = ToJson(obj);

            IOUtility.WriteAllText(path, jsContent);
        }