has anyone been able to use Linqbridge on a .Net 2.0 Website? I have no problem using it in a normal .Net 2.0 console, but when I use the methods in the website, I get
Feature 'extension method' cannot be used because it is not part of the ISO-2 C# language specification
I think the error message is pretty clear. Extension methods aren't supported in 2.0. If you want to use an extension method in 2.0, you'd need to modify it by removing the
thisand call it explicitly.If you had:
Then
ExtensionMethodsand code likenumber.IsOdd()won't compile.You'd need to remove the
thisin theIsOddmethod signature and call it asExtensionMethods.IsOdd(number)to get it to work under 2.0.If I recall correctly, that's the approach the authors of LinqBridge used.
Hope that helps.