public bool RemoveFirst() { if (List == null) { return(false); } var first = List; return((List = List.Link) == null || List.Remove(first)); }
public bool RemoveLast() { if (List == null) { return(false); } if (List.Link == null) { List = null; return(true); } return(List.Remove(List.GetLast())); }