Hi,
"Vai2000" <no****@microsoft.com> wrote in message
news:uN****************@TK2MSFTNGP05.phx.gbl...
Hi All, I have a class in which one member is Stream. I initialize this
member with a local value of a stream.
Foo o=new Foo();
o.Stream=localStream;
This should work, what error are you getting?
Remember that now you have tow instances that reference the SAME instance of
stream, so if you call localStream.Close() o.Stream will be closed too
( they reference the same instance)
otherwise, what error are you getting?