Esempio n. 1
0
        public static async ValueTask ToJsonAsync <T>(this T obj, AbsolutePath path)
        {
            await using var fs = await path.Create();

            obj.ToJson(fs);
        }
Esempio n. 2
0
 public static void ToJson <T>(this T obj, AbsolutePath path)
 {
     using var fs = path.Create();
     obj.ToJson(fs);
 }
Esempio n. 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);
        }