Пример #1
0
        public bool RemoveFirst()
        {
            if (List == null)
            {
                return(false);
            }
            var first = List;

            return((List = List.Link) == null || List.Remove(first));
        }
Пример #2
0
 public bool RemoveLast()
 {
     if (List == null)
     {
         return(false);
     }
     if (List.Link == null)
     {
         List = null; return(true);
     }
     return(List.Remove(List.GetLast()));
 }