[Mono-list] [PATCH] BufferedStream.cs

Piers Haken piersh@friskit.com
Wed, 20 Nov 2002 03:34:08 -0800


This is a multi-part message in MIME format.

------_=_NextPart_001_01C29088.BCFAFCB4
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Why not just use:

	if (m_stream.CanSeek)

?

Piers.

> -----Original Message-----
> From: Carlos Guzm=E1n =C1lvarez [mailto:carlosga@telefonica.net]=20
> Sent: Wednesday, November 20, 2002 3:13 AM
> To: Mono-List
> Subject: [Mono-list] [PATCH] BufferedStream.cs
>=20
>=20
> Hello:
>=20
>=20
> This patch fix a problem closing a bufferedstream that uses a=20
> networkstream, the problem gives when bufferedstream try to get the=20
> value of the property Position of the networkstream, this property on=20
> networkstream will throw always an exeption(this is correct).
>=20
> The same thing with csc works well.
>=20
>=20
>=20
>=20
> Best regards
> Carlos Guzm=E1n =C1lvarez
> Vigo-Spain
>=20
>=20
>=20
> P.S.: I use GetType().FullName instead of is because using=20
> the last mcs=20
> don=B4t build.
>=20

------_=_NextPart_001_01C29088.BCFAFCB4
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4417.0">
<TITLE>RE: [Mono-list] [PATCH] BufferedStream.cs</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Why not just use:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>if =
(m_stream.CanSeek)</FONT>
</P>

<P><FONT SIZE=3D2>?</FONT>
</P>

<P><FONT SIZE=3D2>Piers.</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>

<BR><FONT SIZE=3D2>&gt; From: Carlos Guzm=E1n =C1lvarez [<A =
HREF=3D"mailto:carlosga@telefonica.net">mailto:carlosga@telefonica.net</A=
>] </FONT>

<BR><FONT SIZE=3D2>&gt; Sent: Wednesday, November 20, 2002 3:13 =
AM</FONT>

<BR><FONT SIZE=3D2>&gt; To: Mono-List</FONT>

<BR><FONT SIZE=3D2>&gt; Subject: [Mono-list] [PATCH] =
BufferedStream.cs</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; Hello:</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; This patch fix a problem closing a =
bufferedstream that uses a </FONT>

<BR><FONT SIZE=3D2>&gt; networkstream, the problem gives when =
bufferedstream try to get the </FONT>

<BR><FONT SIZE=3D2>&gt; value of the property Position of the =
networkstream, this property on </FONT>

<BR><FONT SIZE=3D2>&gt; networkstream will throw always an exeption(this =
is correct).</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; The same thing with csc works well.</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; Best regards</FONT>

<BR><FONT SIZE=3D2>&gt; Carlos Guzm=E1n =C1lvarez</FONT>

<BR><FONT SIZE=3D2>&gt; Vigo-Spain</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; P.S.: I use GetType().FullName instead of is =
because using </FONT>

<BR><FONT SIZE=3D2>&gt; the last mcs </FONT>

<BR><FONT SIZE=3D2>&gt; don=B4t build.</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C29088.BCFAFCB4--