How to defind data member in c# wcf -
i have made data member this
public class logon { [datamember] public string username { get; set; } [datamember] public string password { get; set; } [datamember] public templatestatusinfo status; } public class templatestatusinfo { [datamember] one; two; }
when call service need thing this
oop.client oclient = new oop.client(); oclient.status = oop.templatestatusinfo.one; //or oclient.status = oop.templatestatusinfo.two;
change templatestatusinfo
class enumeration.
[datacontract] public enum templatestatusinfo { [enummember] one; [enummember] two; }
Comments
Post a Comment