--- post_title: 'Today I Learned #0' author: dreat layout: post published: true post_date: 2017-04-08 07:00:54 tags: [archived, til] categories: [til, theory, old_blog] ---
This is Today I Learned - some nice things I learned, too short to be valid blog post, but too important/interesting/etc to not be written down
While exposing classes to WCF service, you have to use [DataContract] (for class) and [DataMember] (for properties) attributes. Or do you? Turns out that around 3.5 you don't have to do it. If you provide class with no attributes it will work out of the box! Where's the catch? There are two: