using System;
using System.Collections;
+using System.IO;
using System.Text;
namespace Mono.Security {
}
}
-
public override string ToString()
{
string lineSeperator = Environment.NewLine;
}
return hexLine.ToString ();
}
+
+ public void SaveToFile (string filename)
+ {
+ if (filename == null)
+ throw new ArgumentNullException ("filename");
+
+ using (FileStream fs = File.OpenWrite (filename)) {
+ byte[] data = GetBytes ();
+ fs.Write (data, 0, data.Length);
+ fs.Flush ();
+ fs.Close ();
+ }
+ }
}
}
2004-04-20 Sebastien Pouliot <sebastien@ximian.com>
+ * ASN1.cs: Added SaveToFile for easier debugging. Patch from
+ Jesper Pedersen.
* StrongName.cs: Removed compilation warning (unused variable).
2004-04-08 Bernie Solomon <bernard@ugsolutions.com>