Reputation: 12692
I need the data contract class on the client side to implement certain interface. This interface is guaranteed to contain exactly the same properties as the data contract itself, so there will be no compilation errors.
The data contract class on the server side is not available on an assembly shared by the server and the client. All the properties on this class are computed and it has too many dependencies that makes it impractical to make it available on an assembly shared with the client.
What do I need to do to make the (autogenerated?) data contract class on the client side implement an interface? I own both the server and the client side.
Thanks.
Upvotes: 0
Views: 417
Reputation: 151720
The classes on the client side are generated as partials. If you create another partial class with the same name, you can apply the appropriate interface to that partial.
Upvotes: 1