Method GetBytes GetBytes(String, Encoding) Declaration public static byte[] GetBytes(this string str, Encoding enc) Parameters Type Name Description System.String str Encoding enc Returns Type Description System.Byte[]