Esempio n. 1
0
        public void AddNestedNode(MemoryGraphNode nested)
        {
            if (_nestedNodes == null)
            {
                _nestedNodes = new List <MemoryGraphNode>();
            }

            if (!ValidateNestedLimit())
            {
                throw new Exception("Attempted to add nested node over the limit.");
            }

            _nestedNodes.Add(nested);
        }
Esempio n. 2
0
 public MemoryGraphReference(MemoryGraphNode from, MemoryGraphNode to)
 {
     From = from;
     To   = to;
 }