what's the difference between a class without DataContract attributes:
public class BankOperationResult { public int CurrentAmount { get; set; } public bool Success { get; set; } }
same class with DataContract attributes:
[DataContract] public class BankOperationResult { [DataMember] public int CurrentAmount { get; set; } [DataMember] public bool Success { get; set; } }
I mean, WCF handles these two types differently when coding, etc.
With or without these attributes, my WCF service works ...
Thanks Pawel
wcf datacontract
dragonfly
source share