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(); })); }
public static IResult <ObjectGraph> FromFile(FileName file) => tryTo(() => ObjectGraph.FromFile(file));