```cs string?[] a = { null, null }; var m = a.MinBy(x => x); // throws no InvalidOperationException collection has no elements. ``` This happens since the methods looks for non default value while the correct is to have an indicator for not empty enumeration.
This happens since the methods looks for non default value while the correct is to have an indicator for not empty enumeration.