You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
692 B

#if !PORTABLE
using System;
using System.IO;
using Org.BouncyCastle.Utilities;
namespace Org.BouncyCastle.Asn1.Utilities
{
public sealed class Dump
{
private Dump()
{
}
public static void Main(string[] args)
{
FileStream fIn = File.OpenRead(args[0]);
Asn1InputStream bIn = new Asn1InputStream(fIn);
Asn1Object obj;
#pragma warning disable CS0612 // 类型或成员已过时
while ((obj = bIn.ReadObject()) != null)
#pragma warning restore CS0612 // 类型或成员已过时
{
Console.WriteLine(Asn1Dump.DumpAsString(obj));
}
Platform.Dispose(bIn);
}
}
}
#endif