예제 #1
0
파일: Json.cs 프로젝트: bryce0110/wabbajack
        public static async ValueTask ToJsonAsync <T>(this T obj, AbsolutePath path)
        {
            await using var fs = await path.Create();

            obj.ToJson(fs);
        }
예제 #2
0
 public static void ToJson <T>(this T obj, AbsolutePath path)
 {
     using var fs = path.Create();
     obj.ToJson(fs);
 }
예제 #3
0
        public static async ValueTask ToJsonAsync <T>(this T obj, AbsolutePath path, bool useGenericSettings = false)
        {
            await using var fs = await path.Create();

            obj.ToJson(fs, useGenericSettings);
        }