fix bug of G53.1 and remove NcEnv.SetToolHeightCompensationOnFeatureNormal property.
This commit is contained in:
@@ -153,6 +153,151 @@ Class DictionaryUtil
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_DictionaryUtil_GetOrCreate_" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_DictionaryUtil_GetOrCreate__2_System_Collections_Generic_IDictionary___0___1____0_" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate``2(System.Collections.Generic.IDictionary{``0,``1},``0)">
|
||||
GetOrCreate<TKey, TValue>(IDictionary<TKey, TValue>, TKey)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the value for <code class="paramref">key</code>, or creates a new <code class="typeparamref">TValue</code>
|
||||
via its parameterless constructor, stores it in the dictionary, and returns it.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static TValue GetOrCreate<TKey, TValue>(this IDictionary<TKey, TValue> src, TKey key) where TValue : new()</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><TKey, TValue></dt>
|
||||
<dd></dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">TValue</span></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd></dd>
|
||||
<dt><code>TValue</code></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_DictionaryUtil_GetOrCreate_" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_DictionaryUtil_GetOrCreate__2_System_Collections_Generic_IDictionary___0___1____0_System_Func___1__" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate``2(System.Collections.Generic.IDictionary{``0,``1},``0,System.Func{``1})">
|
||||
GetOrCreate<TKey, TValue>(IDictionary<TKey, TValue>, TKey, Func<TValue>)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the value for <code class="paramref">key</code>, or invokes <code class="paramref">factory</code>
|
||||
to create, store, and return a new value if the key is absent.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static TValue GetOrCreate<TKey, TValue>(this IDictionary<TKey, TValue> src, TKey key, Func<TValue> factory)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><TKey, TValue></dt>
|
||||
<dd></dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd></dd>
|
||||
<dt><code>factory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a><TValue></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">TValue</span></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd></dd>
|
||||
<dt><code>TValue</code></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_DictionaryUtil_GetOrCreate_" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_DictionaryUtil_GetOrCreate__2_System_Collections_Generic_IDictionary___0___1____0___1_" data-uid="Hi.Common.Collections.DictionaryUtil.GetOrCreate``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1)">
|
||||
GetOrCreate<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the value for <code class="paramref">key</code>, or stores and returns
|
||||
<code class="paramref">defaultValue</code> if the key is absent.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static TValue GetOrCreate<TKey, TValue>(this IDictionary<TKey, TValue> src, TKey key, TValue defaultValue)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a><TKey, TValue></dt>
|
||||
<dd></dd>
|
||||
<dt><code>key</code> <span class="xref">TKey</span></dt>
|
||||
<dd></dd>
|
||||
<dt><code>defaultValue</code> <span class="xref">TValue</span></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">TValue</span></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>TKey</code></dt>
|
||||
<dd></dd>
|
||||
<dt><code>TValue</code></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Common_Collections_DictionaryUtil_Retrieve_" data-uid="Hi.Common.Collections.DictionaryUtil.Retrieve*"></a>
|
||||
|
||||
<h3 id="Hi_Common_Collections_DictionaryUtil_Retrieve__2_System_Collections_Generic_Dictionary___0___1____0___1__System_Boolean_" data-uid="Hi.Common.Collections.DictionaryUtil.Retrieve``2(System.Collections.Generic.Dictionary{``0,``1},``0,``1@,System.Boolean)">
|
||||
|
||||
Reference in New Issue
Block a user