public static void Main(string[] args) { FileStream fIn = new FileStream(args[0], FileMode.Open); Asn1InputStream bIn = new Asn1InputStream(fIn); Asn1Object obj; while ((obj = bIn.ReadObject()) != null) { Console.WriteLine(Asn1Dump.DumpAsString(obj)); } }
public static void Main(string[] args) { FileStream inputStream = File.OpenRead(args[0]); Asn1InputStream asn1InputStream = new Asn1InputStream((Stream)(object)inputStream); Asn1Object obj; while ((obj = asn1InputStream.ReadObject()) != null) { Console.WriteLine(Asn1Dump.DumpAsString(obj)); } Platform.Dispose((Stream)(object)asn1InputStream); }
public static void MainOld(string[] args) { FileStream fIn = File.OpenRead(args[0]); Asn1InputStream bIn = new Asn1InputStream(fIn); Asn1Object obj; while ((obj = bIn.ReadObject()) != null) { Console.WriteLine(Asn1Dump.DumpAsString(obj)); } Platform.Dispose(bIn); }
public static void Main(string[] args) { FileStream fIn = File.OpenRead(args[0]); Asn1InputStream bIn = new Asn1InputStream(fIn); Asn1Object obj; while ((obj = bIn.ReadObject()) != null) { System.Diagnostics.Debug.WriteLine(Asn1Dump.DumpAsString(obj)); } bIn.Close(); }
public static void Main(string[] args) { #if !NETFX_CORE FileStream fIn = File.OpenRead(args[0]); Asn1InputStream bIn = new Asn1InputStream(fIn); Asn1Object obj; while ((obj = bIn.ReadObject()) != null) { Console.WriteLine(Asn1Dump.DumpAsString(obj)); } bIn.Dispose(); #endif }
public static string DumpAsString(Asn1Encodable obj) { return(Asn1Dump.DumpAsString(obj, false)); }