コード例 #1
0
 public static IResult <(ObjectGraph objectGraph, IMaybe <Replacer> replacer)> FromFileWithReplacer(FileName file)
 {
     return(tryTo(() =>
     {
         var objectGraph = ObjectGraph.FromFile(file, out var replacer);
         return (objectGraph, replacer).Success();
     }));
 }
コード例 #2
0
 public static IResult <ObjectGraph> FromFile(FileName file) => tryTo(() => ObjectGraph.FromFile(file));