コード例 #1
0
        public IMyPathEdge <MyNavigationPrimitive> GetEdge(MyNavigationPrimitive primitive, int index)
        {
            List <MyNavigationPrimitive> list = null;

            this.m_links.TryGetValue(primitive, out list);
            if (list == null)
            {
                return(null);
            }
            MyNavigationPrimitive primitive2 = list[index];

            return(PathEdge.GetEdge(primitive, primitive2));
        }
コード例 #2
0
        public IMyPathEdge <MyNavigationPrimitive> GetEdge(MyNavigationPrimitive primitive, int index)
        {
            List <MyNavigationPrimitive> links = null;

            m_links.TryGetValue(primitive, out links);
            Debug.Assert(links != null);
            if (links == null)
            {
                return(null);
            }

            MyNavigationPrimitive otherPrimitive = links[index];

            return(PathEdge.GetEdge(primitive, otherPrimitive));
        }