You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Lazily enumerates over this node and then the specified enumeration of nodes.
@@ -138,7 +143,7 @@ public IEnumerable<TAncestor> ThisAndAncestorsOfType<TAncestor>()
138
143
publicTNodeRoot=>HasParent?Ancestors.Last():This;
139
144
140
145
[Pure]
141
-
privateintGetIndexOfSelf()=>Parent.Children.IndexOf(This);// Can never be -1.
146
+
privateintGetIndexOfSelf()=>Parent.Children.IndexOf(This);// Can never be -1.
142
147
143
148
/// <summary>
144
149
/// The next sibling, i.e. the child from the same <see cref="Parent" /> at the next positional index. Returns <c>null</c> if this node is the last child.
@@ -312,21 +317,21 @@ public void AddPreviousSibling(TNode previousSibling)
312
317
/// Returns the first child of this node.
313
318
/// </summary>
314
319
/// <exception cref="InvalidOperationException">If this node has no children.</exception>
315
-
publicTNodeFirstChild=>Children.Count>0?Children[0]:thrownewInvalidOperationException("Node has no children.");
320
+
publicTNodeFirstChild=>HasChildren?Children[0]:thrownewInvalidOperationException("Node has no children.");
316
321
317
322
/// <summary>
318
323
/// Returns the first child of this node or <c>null</c> if it has no children.
0 commit comments