Novell.Directory.Ldap.Asn1.Asn1OctetString.stringValue C# (CSharp) Method

stringValue() public method

Returns the content of this Asn1OctetString as a String.
public stringValue ( ) : System.String
return System.String
        public System.String stringValue()
        {
            System.String s = null;
            try
            {
                System.Text.Encoding encoder = System.Text.Encoding.GetEncoding("utf-8");
                char[] dchar = encoder.GetChars(SupportClass.ToByteArray(content));
                s = new String(dchar);
            //				sbyte *sb=content;
            //				s = new  String(sb,0,content.Length, new System.Text.UTF8Encoding());
            }
            catch (System.IO.IOException uee)
            {
                throw new System.SystemException(uee.ToString());
            }

            return s;
        }