public T Dequeue() { if (!IsEmpty()) { T temp = Queue.Get(0); Queue.Remove(0); return(temp); } else { Console.WriteLine("Queue is Empty"); return(default(T)); } }
public T Pop() { if (!IsEmpty()) { T temp = Stack.Get(Stack.Size - 1); Stack.Remove(Stack.Size - 1); return(temp); } else { Console.WriteLine("Stack is Empty"); return(default(T)); } }