ConvertHelperStringToBytes Method | Helper帮助文档 |
使用指定字符集将string转换成byte[]
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static byte[] StringToBytes( string text, Encoding encoding )
Public Shared Function StringToBytes ( text As String, encoding As Encoding ) As Byte()
public: static array<unsigned char>^ StringToBytes( String^ text, Encoding^ encoding )
static member StringToBytes : text : string * encoding : Encoding -> byte[]
Parameters
- text
- Type: SystemString
要转换的字符串 - encoding
- Type: System.TextEncoding
字符编码
Return Value
Type: Byte[Missing <returns> documentation for "M:HD.Common.ConvertHelper.StringToBytes(System.String,System.Text.Encoding)"]
See Also