Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use Linq when using Json.NET in .NET 2.0 #8

Closed
DmitryLobanov opened this issue Mar 15, 2012 · 2 comments
Closed

Can't use Linq when using Json.NET in .NET 2.0 #8

DmitryLobanov opened this issue Mar 15, 2012 · 2 comments

Comments

@DmitryLobanov
Copy link

Here's some history:

And here's some thoughts:

One possible fix is to remove references to LinqBridge assembly and use LinqBrige from Json.NET. But we can't do it since Enumerable class made Internal (while in LinqBridge it is public).

So we can't remove reference to LinqBrige as we want to use Linq, and we can't use LinqBridge with Json.NET since there's an ambiguous reference to types like Action and Func.

Something should be done... it can be:

  • Use standalone LinqBridge and remove LinqBridge.cs from Json.NET
  • Make Enumerable class public and don't use standalone LinqBridge.

What is the preferred way to do it? Why have you removed reference to LinqBridge and included LinqBridge as a source file?

@JamesNK
Copy link
Owner

JamesNK commented Mar 18, 2012

LinqBridge types moved to a different namespace.

@JamesNK JamesNK closed this as completed Mar 18, 2012
@DmitryLobanov
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants