I think this way can let the user determine the appropriate
operation(serialize to a
real stream or just throw it away) during
programming.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Michael Mayer" <mike@mag37.com>
| References: <368401c375c3$25625660$a101280a@phx.gbl>
<e5EYGQddDHA.2640@TK2MSFTNGP09.phx.gbl>
| Subject: Re: serialize into stream
| Date: Mon, 8 Sep 2003 02:04:31 -0500
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eIk6WdddDHA.2516@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: c66.169.139.197.ts46v-08.otn-c2.ftwrth.tx.charter.com
66.169.139.197
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183101
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow@email.msn.com> wrote in
message
| news:e5EYGQddDHA.2640@TK2MSFTNGP09.phx.gbl...
| > To open a new FileStream object. Or if you really do not want it to go
| > anyplace you can use Stream.Null.
| >
| > > FileStream stream = Stream.Null;
| > > serializer.Serialize(stream,obj);
| > The object was serialized to 'null'...
|
| What on earth is that good for? I guess it'd be like the unix:
|
| cat filename.txt > /dev/null
|
| Sure, it uses up some CPU clocks, but doesn't get much else done ;-)
|
|
| --
| Mike Mayer
|
http://www.mag37.com/csharp/ | mike@mag37.com
|
|
|
|