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