public static BinaryLoadedGraph Load (Stream s, IWarningLogger log) { BinaryLoadedGraph blg = new BinaryLoadedGraph (); try { if (blg.LoadInternal (s, log)) return null; } catch (Exception e) { log.Error (1012, "Unhandled exception during graph load", e.Message); return null; } return blg; }
public static BinaryLoadedGraph Load(Stream s, IWarningLogger log) { BinaryLoadedGraph blg = new BinaryLoadedGraph(); try { if (blg.LoadInternal(s, log)) { return(null); } } catch (Exception e) { log.Error(1012, "Unhandled exception during graph load", e.Message); return(null); } return(blg); }