@@ -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&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'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%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<TIn, TOut>(IEnumerable<TIn>, Func<TIn, TOut?>)</ 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<TOut> SelectNonNull<TIn, TOut>(this IEnumerable<TIn> source, Func<TIn, TOut?> 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 > <TIn></ 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 > <TIn, TOut></ 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 > <TOut></ 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 >
0 commit comments