Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Stream is serializable !?!?!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Fish - 03 Aug 2005 11:57 GMT
Hi,

I notice that the System.IO.Stream class extends MarshalByRefObject which
has the [Serializable] attribute

I presume this means that a stream can be serialized

What does it mean to serialize a stream? Has anyone tried it?

Andy
Cowboy (Gregory A. Beamer) - MVP - 03 Aug 2005 14:05 GMT
Never tried it, but I would assume that it means you can serialize the
definition across to then stream data across. This is an interesting thought,
however, as serialization is used to stream data. If you experiment post
results, as this could be extremely interesting (although probably not as
useful) :-)

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Hi,
>
[quoted text clipped - 6 lines]
>
> Andy
Andy Fish - 03 Aug 2005 16:54 GMT
the reason I discovered it was serializable is I created a web service
interface that had a stream as a parameter

however, in the web service definition it creates, the parameter is a new
stream class it created (localhost.foo.Stream rather than System.IO.Stream),
which has just one member variable - an integer called position. Also the
class it generates is abstract so it's of no practical use

> Never tried it, but I would assume that it means you can serialize the
> definition across to then stream data across. This is an interesting
[quoted text clipped - 13 lines]
>>
>> Andy
Lloyd Dupont - 04 Aug 2005 10:32 GMT
Stream is probably Serializable for MemeoryStream, to be serializable as
well.

Otherwise MarshalByRef means that you get a proxy, if use in remorting, so
it's certainly a copy which cross process...

Signature

There are 10 kinds of people in this world. Those who understand binary and
those who don't.

> Hi,
>
[quoted text clipped - 6 lines]
>
> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.