public void ConnectInsert(ConnectedList <TItemType, TSourceType> list, int pos) { if (IsConnected) { Debugger.Break(); return; } list.Insert(this, pos); }
public void Connect(ConnectedList <TItemType, TSourceType> list) { if (IsConnected) { Debugger.Break(); return; } list.Add(this); }
public override void BeforeAdd(ConnectedList <TItemType, TSourceType> newList, int newPosition) { connectedList = newList; position = newPosition; }
public override void BeforeRemove() { connectedList = null; position = -1; }
public EnumeratorType(ConnectedList <TItemType, TSourceType> list) { this.list = list; }