scottksmith95 / LINQKit

LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
MIT License
1.65k stars 165 forks source link

ForEach extension method? #168

Open jbagley-iona opened 2 years ago

jbagley-iona commented 2 years ago

The ForEach extension method recently added to LinqKit conflicts with the (I think) commonly used ForEach extension method in MoreLinq. Since it is in the main LinqKit namespace, there is no way to avoid its inclusion when using LinqKit. It would be nice if this was in a separate namespace to avoid this issue.

StefH commented 2 years ago

@jbagley-iona

The namespace is LinqKit.Core or LinqKit, so how does that cause troubles when using MoreLinq?

n0099 commented 1 year ago

It should put in a private static class to prevent anyone outside LINQKit can touch it.