I have a .net assembly referencing a Silverlight assembly. The silverlight assembly defines an interface that uses IQueryable. I want to implement this interface in the .NET assembly, but it says I am not implementing the IQueryable method (even though I am). I think this is happening because the interface is using the silverlight IQueryable and the implementation is using the .net IQueryable. Is there any way to get around this?
+4
A:
Define your interface explicitly for .Net without referencing Silverlight library. If you want to reuse the code between Silverlight and .Net you can use linked files in VS (see Sharing Code Between .NET and Silverlight Platforms post).
HTH
Alexander K.
2009-06-22 01:59:05
This just solved a problem for me. Thanks.
Jason Jackson
2009-11-06 17:31:28