Exemple #1
0
        /// <summary>
        /// Deserializes
        /// </summary>
        public static MutableDirectedGraph Deserialize(BuildXLReader reader)
        {
            Contract.Requires(reader != null);
            MutableDirectedGraph graph = new MutableDirectedGraph();

            graph.Load(reader);
            return(graph);
        }
Exemple #2
0
 /// <summary>
 /// Creates a new edge scope. This should only be called by the owning <see cref="MutableDirectedGraph"/>
 /// </summary>
 public EdgeScope(MutableDirectedGraph owner, object accessVerifier)
 {
     Contract.Assert(owner.m_accessVerifier == accessVerifier, "EdgeScope can only be created by a parent MutableDirectedGraphs");
     m_owner = owner;
 }