morelinq / MoreLINQ

Extensions to LINQ to Objects
https://morelinq.github.io/
Apache License 2.0
3.63k stars 409 forks source link

`Interleave` shouldn't validate `otherSequences` members #1029

Closed atifaziz closed 8 months ago

atifaziz commented 8 months ago

Interleave validates that elements/members of the otherSequences are non-null and throws ArgumentNullException claiming that otherSequences is null. It isn't common to validate contents for a sequence argument and so a null element in otherSequences should be left as an undefined behaviour.