wcf - I have a contract class with a proerty that is changed -


i have follwing class in common library:

    [datacontract]     public class wcffilestream     {         private string _name;         [datamember]         public string name         {             { return _namee; }             set { _name = value; }         }          private system.io.stream _file;         //[messagebodymember]         [datamember]         public system.io.stream file         {             { return _file; }             set { _file = value; }         } 

i have property name, system.io.stream, when create new wcffilestream in client send service, type system.io.memorystream. why?

this throw exception, system.servicemodel.communicationexception, because expected stream, not memorystream.

why if property stream, when create object memorystream?

thanks.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -