public void AddItem() { if (lastElement != null) { RuntimeChainElement element = new RuntimeChainNewItem(); lastElement.Next = element; lastElement = element; } else { Chain = lastElement = new RuntimeChainNewItem(); } }
public void AddItem() { if (lastElement != null) { RuntimeChainElement element = new RuntimeChainNewItem(); lastElement.Next = element; lastElement = element; } else Chain = lastElement = new RuntimeChainNewItem(); }