Inheritance: Asn1Generator
        internal void WriteDerEncoded(int tag, byte[] bytes)
        {
            if (!this._tagged)
            {
                DerGenerator.WriteDerEncoded(base.Out, tag, bytes);
                return;
            }
            int num = this._tagNo | 128;

            if (this._isExplicit)
            {
                int          tag2         = this._tagNo | 32 | 128;
                MemoryStream memoryStream = new MemoryStream();
                DerGenerator.WriteDerEncoded(memoryStream, tag, bytes);
                DerGenerator.WriteDerEncoded(base.Out, tag2, memoryStream.ToArray());
                return;
            }
            if ((tag & 32) != 0)
            {
                num |= 32;
            }
            DerGenerator.WriteDerEncoded(base.Out, num, bytes);
        }
 internal static void WriteDerEncoded(Stream outStr, int tag, Stream inStr)
 {
     DerGenerator.WriteDerEncoded(outStr, tag, Streams.ReadAll(inStr));
 }
 internal static void WriteDerEncoded(Stream outStream, int tag, byte[] bytes)
 {
     outStream.WriteByte((byte)tag);
     DerGenerator.WriteLength(outStream, bytes.Length);
     outStream.Write(bytes, 0, bytes.Length);
 }