I think the error message is pretty clear. In version 2.0, extension methods are not supported. If you want to use the extension method in version 2.0, you need to change it by deleting thisand calling it explicitly.
If you have:
public static class ExtensionMethods {
public static bool IsOdd(this int x) {
return x % 2 != 0;
}
}
Then the ExtensionMethodstype code number.IsOdd()will not compile.
You need to remove the thismethod in the signature IsOddand call it ExtensionMethods.IsOdd(number)to make it work under 2.0.
, , LinqBridge, .
, .