示例#1
0
        public StateLinkList <T> CreateLinkList <T>() where T : StateObject
        {
            StateLinkList <T> linkList = new StateLinkList <T>();

            linkList.Container = this;
            return(linkList);
        }
示例#2
0
        public StateLinkList <TState> Clone()
        {
            StateLinkList <TState> list = new StateLinkList <TState>();

            list.list = new List <IStateLink>();

            foreach (IStateLink link in this.list)
            {
                list.list.Add(link);
            }
            list.container = this.container;

            return(list);
        }
示例#3
0
        public bool CompareTo(StateLinkList <TState> obj)
        {
            if (obj == null || list.Count != obj.list.Count)
            {
                return(false);
            }

            for (int i = 0; i < list.Count; i++)
            {
                if (!list[i].Equals(obj.list[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
示例#4
0
 public StateLinkListEnumerator(StateLinkList <TState> List)
 {
     list = List;
     Reset();
 }