Exemple #1
0
 static TO()
 {
     Wolf    = new TO("狼");
     Dog     = new TO("狗", Wolf);
     Chicken = new TO("雞", Dog, Wolf);
     Rice    = new TO("米", Chicken);
 }
Exemple #2
0
 public void Enqueue(TO o)
 {
     if (!this._q.Contains(o))
     {
         this._q.Add(o);
     }
 }
Exemple #3
0
 public bool Enqueue(TO o)
 {
     if (!this.IsFill && !this._q.Contains(o))
     {
         this._q.Enqueue(o);
         return(true);
     }
     return(false);
 }