public StateLinkList <T> CreateLinkList <T>() where T : StateObject { StateLinkList <T> linkList = new StateLinkList <T>(); linkList.Container = this; return(linkList); }
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); }
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); }
public StateLinkListEnumerator(StateLinkList <TState> List) { list = List; Reset(); }