I have a class defined in a Portable Class Library. In that class I have an int that I only want to be have the [DataMember] attribute if the code is running on WP8, how to achieve this?
There should be a way to use #IF but I'm not sure of the syntax and the conditionals, something like this(pseudo-syntax):
#if (condition for WP8) then
include this line: [DataMember]
public int TrackingId { get; set; }
Also, how could I check for other environments than WP8?