datamember

Regular class global variable being shared between object instances - help!

So I have just started learning objective c having a little Java experience and this site has been really helpful for answering loads of my questions, but I've hit an issue I can't quite fathom. Theres a fair amount to be read on the topic but I can't quite find where I've gone wrong. So I read this: Objective C does not support cl...

WCF DataMember attribute for read-only fields?

I am trying to create a class with a read-only Id field, however I am having problems retaining the value when the object passes through the WCF server. I cannot set the [DataMember] attribute on the public property since there is no set method, and I would like to keep it that way if possible since I do not want this value changed by e...

Serialize Partial DataContract

I have a DataContract that looks like: [DataContract(Name = User.Root, Namespace = "")] public class RegisterUser { [DataMember(Name = User.EmailAddress)] public string EmailAddress { get; set; } [DataMember(Name = User.UserName)] public string UserName { get; set; } [DataMember(Name = User.Password)] pub...