theraot / Theraot

Backporting .NET and more: LINQ expressions in .net 2.0 - nuget Theraot.Core available.
MIT License
162 stars 30 forks source link

Linq extnsions should always throw on null and allocate new collection #195

Closed OwnageIsMagic closed 8 months ago

OwnageIsMagic commented 1 year ago

https://source.dot.net/#System.Linq/System/Linq/ToCollection.cs,169

https://github.com/theraot/Theraot/blob/4c053edf8ff549c22e1a2e87522f80f53454f96e/Framework.Core/System/Linq/Enumerable.tohashset.cs#L16-L29

OwnageIsMagic commented 8 months ago

Fixed by https://github.com/theraot/Theraot/pull/203