Re: Best approach?
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Thu, 19 Jan 2006 19:53:56 +0200
The thing you want to achieve is called serialization( packing class into
bytes ) and deserialization ( unpacking class ).
..NET serizalization is pretty simple process, consult the docs
(
http://www.codeguru.com/Csharp/Csharp/cs_syntax/serialization/article.php/c7201/ )
(
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconbinaryserialization.asp )
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"Dan" <dvazanias@xxxxxxx> wrote in message
news:ukyEYKRHGHA.240@xxxxxxxxxxxxxxxxxxxxxxx
>I presume that to send anything i have to convert it into bytes, send it
>then extract it at the other end.
>
> Is it possible to say have a class myClass and send it as an object
>
> so in pseudo code
>
> SendData (myClass);
>
> then at the other end
>
> myClass _obj = new myClass();
> _obj = ReceiveData(myClass);
>
>
> Is that possible? or do i have to send each part of it separately,
> variable per variable etc and then rebuild it at the other end? Could
> someone provid sample code if possible, c# .
>
> --
> Dan
>
.
- References:
- Best approach?
- From: Dan
- Best approach?
- Prev by Date: Re: Design question
- Next by Date: Re: Detecting Internet activity
- Previous by thread: Best approach?
- Next by thread: Re: Best approach?
- Index(es):
Relevant Pages
|
Loading