|
|
От: |
Serginio1
|
https://habrahabr.ru/users/serginio1/topics/ |
| Дата: | 28.12.25 18:05 | ||
| Оценка: | |||
для not null reference нужны заглушки типам Node.EmptyNode
Опять же для первой ноды должно быть Previous = Node.EmptyNode, а для последней Next = Node.EmptyNode
public Node<T>? Next { get; set; }
public Node<T>? Previous { get; set; }string.IsNullOrEmpty(str)str.IsEmpty