Class LinqMethods
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
Various Methods for Linq
public static class LinqMethods
- Inheritance
-
LinqMethods
- Inherited Members
Methods
- TryGetFirstValueByKey<TKey, TValue>(Dictionary<TKey, TValue?>?, TKey, out TValue?)
Safely tries to extract the value of the first match where target key is found, otherwise null.
- TryGetFirstValueWhere<TSource>(List<TSource?>?, Func<TSource?, bool>, out TSource?)
Safely tries to get the first match out of a list.