Skip to content

Commit 28cfc3c

Browse files
committed
Release refs/heads/master
1 parent 0d0dc9b commit 28cfc3c

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

api/Cognite.Extractor.Common.CommonUtils.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,85 @@ <h5 class="typeParameters">Type Parameters</h5>
435435
<tr>
436436
<td><span class="parametername">R</span></td>
437437
<td><p>Comparable element</p>
438+
</td>
439+
</tr>
440+
</tbody>
441+
</table>
442+
<span class="small pull-right mobile-hide">
443+
<span class="divider">|</span>
444+
<a href="https://github.com/cognitedata/dotnet-extractor-utils/new/master/apiSpec/new?filename=Cognite_Extractor_Common_CommonUtils_SelectNonNull__2_System_Collections_Generic_IEnumerable___0__System_Func___0___1__.md&amp;value=---%0Auid%3A%20Cognite.Extractor.Common.CommonUtils.SelectNonNull%60%602(System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2C%60%601%7D)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
445+
</span>
446+
<span class="small pull-right mobile-hide">
447+
<a href="https://github.com/cognitedata/dotnet-extractor-utils/blob/master/Cognite.Common/CommonUtils.cs/#L176">View Source</a>
448+
</span>
449+
<a id="Cognite_Extractor_Common_CommonUtils_SelectNonNull_" data-uid="Cognite.Extractor.Common.CommonUtils.SelectNonNull*"></a>
450+
<h4 id="Cognite_Extractor_Common_CommonUtils_SelectNonNull__2_System_Collections_Generic_IEnumerable___0__System_Func___0___1__" data-uid="Cognite.Extractor.Common.CommonUtils.SelectNonNull``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})">SelectNonNull&lt;TIn, TOut&gt;(IEnumerable&lt;TIn&gt;, Func&lt;TIn, TOut?&gt;)</h4>
451+
<div class="markdown level1 summary"><p>Select elements from <code class="typeparamref">TIn</code> to <code class="typeparamref">TOut</code>,
452+
returning only when the result is not null. Unlike LINQ's Where + Select,
453+
this is nullable-aware.</p>
454+
</div>
455+
<div class="markdown level1 conceptual"></div>
456+
<h5 class="declaration">Declaration</h5>
457+
<div class="codewrapper">
458+
<pre><code class="lang-csharp hljs">public static IEnumerable&lt;TOut&gt; SelectNonNull&lt;TIn, TOut&gt;(this IEnumerable&lt;TIn&gt; source, Func&lt;TIn, TOut?&gt; map) where TOut : class</code></pre>
459+
</div>
460+
<h5 class="parameters">Parameters</h5>
461+
<table class="table table-bordered table-condensed">
462+
<thead>
463+
<tr>
464+
<th>Type</th>
465+
<th>Name</th>
466+
<th>Description</th>
467+
</tr>
468+
</thead>
469+
<tbody>
470+
<tr>
471+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TIn&gt;</td>
472+
<td><span class="parametername">source</span></td>
473+
<td><p>Source enumerable</p>
474+
</td>
475+
</tr>
476+
<tr>
477+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TIn, TOut&gt;</td>
478+
<td><span class="parametername">map</span></td>
479+
<td><p>Mapping function</p>
480+
</td>
481+
</tr>
482+
</tbody>
483+
</table>
484+
<h5 class="returns">Returns</h5>
485+
<table class="table table-bordered table-condensed">
486+
<thead>
487+
<tr>
488+
<th>Type</th>
489+
<th>Description</th>
490+
</tr>
491+
</thead>
492+
<tbody>
493+
<tr>
494+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TOut&gt;</td>
495+
<td><p>Enumerable with non-null elements</p>
496+
</td>
497+
</tr>
498+
</tbody>
499+
</table>
500+
<h5 class="typeParameters">Type Parameters</h5>
501+
<table class="table table-bordered table-condensed">
502+
<thead>
503+
<tr>
504+
<th>Name</th>
505+
<th>Description</th>
506+
</tr>
507+
</thead>
508+
<tbody>
509+
<tr>
510+
<td><span class="parametername">TIn</span></td>
511+
<td><p>Source type</p>
512+
</td>
513+
</tr>
514+
<tr>
515+
<td><span class="parametername">TOut</span></td>
516+
<td><p>Target type</p>
438517
</td>
439518
</tr>
440519
</tbody>

xrefmap.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5985,6 +5985,22 @@ references:
59855985
fullName.vb: Cognite.Extractor.Common.CommonUtils.MinMax(Of T, R)(System.Collections.Generic.IEnumerable(Of T), System.Func(Of T, R))
59865986
nameWithType: CommonUtils.MinMax<T, R>(IEnumerable<T>, Func<T, R>)
59875987
nameWithType.vb: CommonUtils.MinMax(Of T, R)(IEnumerable(Of T), Func(Of T, R))
5988+
- uid: Cognite.Extractor.Common.CommonUtils.SelectNonNull*
5989+
name: SelectNonNull
5990+
href: api/Cognite.Extractor.Common.CommonUtils.html#Cognite_Extractor_Common_CommonUtils_SelectNonNull_
5991+
commentId: Overload:Cognite.Extractor.Common.CommonUtils.SelectNonNull
5992+
isSpec: "True"
5993+
fullName: Cognite.Extractor.Common.CommonUtils.SelectNonNull
5994+
nameWithType: CommonUtils.SelectNonNull
5995+
- uid: Cognite.Extractor.Common.CommonUtils.SelectNonNull``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})
5996+
name: SelectNonNull<TIn, TOut>(IEnumerable<TIn>, Func<TIn, TOut?>)
5997+
href: api/Cognite.Extractor.Common.CommonUtils.html#Cognite_Extractor_Common_CommonUtils_SelectNonNull__2_System_Collections_Generic_IEnumerable___0__System_Func___0___1__
5998+
commentId: M:Cognite.Extractor.Common.CommonUtils.SelectNonNull``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1})
5999+
name.vb: SelectNonNull(Of TIn, TOut)(IEnumerable(Of TIn), Func(Of TIn, TOut))
6000+
fullName: Cognite.Extractor.Common.CommonUtils.SelectNonNull<TIn, TOut>(System.Collections.Generic.IEnumerable<TIn>, System.Func<TIn, TOut?>)
6001+
fullName.vb: Cognite.Extractor.Common.CommonUtils.SelectNonNull(Of TIn, TOut)(System.Collections.Generic.IEnumerable(Of TIn), System.Func(Of TIn, TOut))
6002+
nameWithType: CommonUtils.SelectNonNull<TIn, TOut>(IEnumerable<TIn>, Func<TIn, TOut?>)
6003+
nameWithType.vb: CommonUtils.SelectNonNull(Of TIn, TOut)(IEnumerable(Of TIn), Func(Of TIn, TOut))
59886004
- uid: Cognite.Extractor.Common.CommonUtils.SimplifyException(System.Exception)
59896005
name: SimplifyException(Exception)
59906006
href: api/Cognite.Extractor.Common.CommonUtils.html#Cognite_Extractor_Common_CommonUtils_SimplifyException_System_Exception_

0 commit comments

Comments
 (0)