System.Xml.XmlConverter.ToStringUnicode C# (CSharp) Méthode

ToStringUnicode() static public méthode

static public ToStringUnicode ( byte buffer, int offset, int count ) : string
buffer byte
offset int
count int
Résultat string
        static public string ToStringUnicode(byte[] buffer, int offset, int count)
        {
            try
            {
                return UnicodeEncoding.GetString(buffer, offset, count);
            }
            catch (DecoderFallbackException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateEncodingException(buffer, offset, count, exception));
            }
        }

Usage Example

Exemple #1
0
 public string GetUnicodeString(int offset, int length)
 {
     return(XmlConverter.ToStringUnicode(_buffer, offset, length));
 }