示例#1
0
        public Parkable Unpark()
        {
            Parkable p = PopFauxStack();

            p.Unpark();
            return(p);
        }
示例#2
0
        public Parkable Unpark()
        {
            Parkable p = Pop();

            p.Unpark();
            return(p);
        }
示例#3
0
        Parkable PopFauxStack()
        {
            var      lastIndex = fauxStack.Count - 1;
            Parkable p         = fauxStack[lastIndex];

            fauxStack.RemoveAt(lastIndex);
            return(p);
        }
示例#4
0
 void PushFauxStack(Parkable p)
 {
     fauxStack.Add(p);
 }
示例#5
0
 public void Park(Parkable p)
 {
     PushFauxStack(p);
     p.Park();
 }