An unhandled exception of type \'System.StackOverflowException\' occurred in wcfserviceLibrary.DLL
the code is show as follows.
[DataContract]
public
You are referring to the property itself in the setter, so it will be calling itself recursively.(Over and over again until your stack overflows)
By using the short hand notation with just get; and set;, you are basically adding an implied backing field (like a backing variable). This way your not triggering a recursive calls since your property is just a wrapper around the backing field.