From Utf8 Bytes - CSharp System

CSharp examples for System:Byte

Description

From Utf8 Bytes

Demo Code

// Licensed under the same terms of ServiceStack: new BSD license.
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   ww w  .  ja  v a 2  s  . c om*/

public class Main{
        public static string FromUtf8Bytes(this byte[] bytes)
		{
			return bytes == null ? null
				: Encoding.UTF8.GetString(bytes, 0, bytes.Length);
		}
}

Related Tutorials