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

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