public void AngleList() { DoublyLinkedList linkedList2 = new DoublyLinkedList(); if (First == null) { Console.WriteLine("Список пуст"); return; } Current = First; while (Current != null) { string s = Current.Value.ToString(); string[] s_2 = s.Split(';'); double len = Math.Atan((Convert.ToDouble(s_2[3]) - Convert.ToDouble(s_2[1])) / (Convert.ToDouble(s_2[2]) - Convert.ToDouble(s_2[0]))); if ((len == 30) || (len == 45)) { linkedList2.Push_Back(s); } Current = Current.Next; } linkedList2.Show(); }