示例#1
0
 /// <summary>
 /// Convert ASN1 PDU bytes to XML.
 /// </summary>
 /// <param name="value">Bytes to convert. </param>
 /// <returns> Converted XML. </returns>
 public static string PduToXml(string value)
 {
     if (value == null || value.Length == 0)
     {
         return("");
     }
     if (!GXCommon.IsHexString(value))
     {
         return(PduToXml(GXCommon.FromBase64(value)));
     }
     return(PduToXml(new GXByteBuffer(GXCommon.HexToBytes(value))));
 }