コード例 #1
0
        public bool Equals(DependencyNodeV2 <T> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Item.Equals(other.Item));
        }
コード例 #2
0
        public DependencyGraph(T rootItem, IList <DependencyNodeV2 <T> > nodes)
        {
            var rootNode = new DependencyNodeV2 <T>(rootItem);

            Nodes = TopologicalSort.Sort(rootNode, nodes);
        }