IEnumerable<T>interface has numerous extension methods associated with it, including a number that return a single element if a match occurs, or return the default value for the type if that fails:
ElementAtOrDefault. These methods create two code smells due to the nature of .NET’s type system. As of version 1.5.0, Succinc<T> offers alternatives to these methods that overcome those smells.
Continue reading “Using Succinc<T> to overcome IEnumerable code smells”