DumpAsString() public static method

public static DumpAsString ( Asn1Encodable obj ) : string
obj Asn1Encodable
return string
Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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
        }
Ejemplo n.º 6
0
 public static string DumpAsString(Asn1Encodable obj)
 {
     return(Asn1Dump.DumpAsString(obj, false));
 }