fix G68 mis-behavior.

This commit is contained in:
2026-02-24 23:42:25 +08:00
parent 2d38701590
commit ee51fd62dc
115 changed files with 11671 additions and 1414 deletions
@@ -153,10 +153,55 @@ Class LinkedListUtil
</h2>
<a id="Hi_Common_Collections_LinkedListUtil_EnumerateBack_" data-uid="Hi.Common.Collections.LinkedListUtil.EnumerateBack*"></a>
<h3 id="Hi_Common_Collections_LinkedListUtil_EnumerateBack__1_System_Collections_Generic_LinkedListNode___0__" data-uid="Hi.Common.Collections.LinkedListUtil.EnumerateBack``1(System.Collections.Generic.LinkedListNode{``0})">
EnumerateBack&lt;T&gt;(LinkedListNode&lt;T&gt;)
</h3>
<div class="markdown level1 summary"><p>Enumerates linked list nodes backwards from this node to the head.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IEnumerable&lt;LinkedListNode&lt;T&gt;&gt; EnumerateBack&lt;T&gt;(this LinkedListNode&lt;T&gt; beginNode)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>beginNode</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.linkedlistnode-1">LinkedListNode</a>&lt;T&gt;</dt>
<dd><p>The node to start tracing backwards from (inclusive).</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.linkedlistnode-1">LinkedListNode</a>&lt;T&gt;&gt;</dt>
<dd><p>An backward enumerable sequence.</p>
</dd>
</dl>
<h4 class="section">Type Parameters</h4>
<dl class="parameters">
<dt><code>T</code></dt>
<dd><p>The type of elements in the linked list.</p>
</dd>
</dl>
<a id="Hi_Common_Collections_LinkedListUtil_Enumerate_" data-uid="Hi.Common.Collections.LinkedListUtil.Enumerate*"></a>
<h3 id="Hi_Common_Collections_LinkedListUtil_Enumerate__1_System_Collections_Generic_LinkedListNode___0__System_Collections_Generic_LinkedListNode___0__" data-uid="Hi.Common.Collections.LinkedListUtil.Enumerate``1(System.Collections.Generic.LinkedListNode{``0},System.Collections.Generic.LinkedListNode{``0})">
Enumerate&lt;T&gt;(LinkedListNode&lt;T&gt;, LinkedListNode&lt;T&gt;)
<h3 id="Hi_Common_Collections_LinkedListUtil_Enumerate__1_System_Collections_Generic_LinkedListNode___0__" data-uid="Hi.Common.Collections.LinkedListUtil.Enumerate``1(System.Collections.Generic.LinkedListNode{``0})">
Enumerate&lt;T&gt;(LinkedListNode&lt;T&gt;)
</h3>
@@ -165,16 +210,13 @@ Class LinkedListUtil
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IEnumerable&lt;LinkedListNode&lt;T&gt;&gt; Enumerate&lt;T&gt;(this LinkedListNode&lt;T&gt; beginNode, LinkedListNode&lt;T&gt; endNode)</code></pre>
<pre><code class="lang-csharp hljs">public static IEnumerable&lt;LinkedListNode&lt;T&gt;&gt; Enumerate&lt;T&gt;(this LinkedListNode&lt;T&gt; beginNode)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>beginNode</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.linkedlistnode-1">LinkedListNode</a>&lt;T&gt;</dt>
<dd><p>The starting node (inclusive).</p>
</dd>
<dt><code>endNode</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.linkedlistnode-1">LinkedListNode</a>&lt;T&gt;</dt>
<dd><p>Exclusive end node. It can be null.</p>
</dd>
</dl>