コード例 #1
0
ファイル: BinaryLoadedGraph.cs プロジェクト: emtees/old-code
	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;
	}
コード例 #2
0
ファイル: BinaryLoadedGraph.cs プロジェクト: retahc/old-code
        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);
        }