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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -