Пример #1
0
 public override void Encode(Asn1BerOutputStream outs, bool explicitTagging)
 {
     if (Value != null)
     {
         outs.Write(Value);
     }
 }
Пример #2
0
        public override void Encode(Asn1BerOutputStream outs, bool explicitTagging)
        {
            var bytes = Encoding.UTF8.GetBytes(Value);

            if (explicitTagging)
            {
                outs.EncodeTag(Tag);
            }

            outs.EncodeLength(bytes.Length);
            outs.Write(bytes);
        }