[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security MiniXml.cs, 1
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security MiniXml.cs, 1.3, 1.4 |
Date: |
Sat, 30 Aug 2003 23:41:08 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security
In directory subversions:/tmp/cvs-serv15163/runtime/System/Security
Modified Files:
MiniXml.cs
Log Message:
Index: MiniXml.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/MiniXml.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** MiniXml.cs 29 May 2003 03:12:58 -0000 1.3
--- MiniXml.cs 31 Aug 2003 03:41:06 -0000 1.4
***************
*** 25,28 ****
--- 25,29 ----
using System;
+ using System.IO;
// This class is used by "SecurityElement" to implement a very
***************
*** 52,60 ****
private String args;
! // Constructor.
public MiniXml(String input)
{
this.input = (input == null ? String.Empty :
input);
this.posn = 0;
}
--- 53,73 ----
private String args;
! // Constructors.
public MiniXml(String input)
{
this.input = (input == null ? String.Empty :
input);
this.posn = 0;
+ }
+ public MiniXml(TextReader input)
+ {
+ this.input = input.ReadToEnd();
+ this.posn = 0;
+ }
+ public MiniXml(Stream input)
+ {
+ StreamReader reader = new StreamReader(input);
+ this.input = reader.ReadToEnd();
+ this.posn = 0;
+ ((IDisposable)reader).Dispose();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security MiniXml.cs, 1.3, 1.4,
Rhys Weatherley <address@hidden> <=