Gratuitous use of System.Runtime.Serialization attributes?

Posted by rasx on Stack Overflow See other posts from Stack Overflow or by rasx
Published on 2010-03-23T23:26:00Z Indexed on 2010/03/23 23:33 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

Is there any cost/drawback (apart from typing too much) to adorning a class with System.Runtime.Serialization attributes (like [DataContract]) such that it can be used locally as a direct reference to a desktop Client project or as a type for a WCF service? The goal here is to write a data-tier class that can be used in both rich client (WPF) and Web scenarios. My data classes will be in a project that is separate from Client and WCF (*.svc code-behind) code. Is this a valid attempt to reuse code?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wcf