11 references to GetBytes
mscorlib (3)
system\security\cryptography\base64transforms.cs (2)
59
byte[] tempBytes = Encoding.ASCII.
GetBytes
(temp);
82
byte[] tempBytes = Encoding.ASCII.
GetBytes
(temp);
system\text\encoding.cs (1)
390
return dstEncoding.
GetBytes
(srcEncoding.GetChars(bytes, index, count));
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (2)
324
bytes = _stateObj.Parser._defaultEncoding.
GetBytes
(chars);
343
bytes = _stateObj.Parser._defaultEncoding.
GetBytes
(value.ToCharArray(offset, length));
System.Runtime.Serialization (2)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
181
new ArraySegment<byte>(ValidatingUTF8.
GetBytes
(GetEncoding(dataEnc).GetChars(buffer, offset, count)));
System\Xml\EncodingStreamWrapper.cs (1)
524
seg = new ArraySegment<byte>(ValidatingUTF8.
GetBytes
(GetEncoding(declEnc).GetChars(buffer, offset, count)));
System.Web (2)
HttpRequest.cs (1)
1115
return Encoding.ASCII.
GetBytes
(b.ToCharArray());
Security\AntiXss\HtmlParameterEncoder.cs (1)
103
byte[] utf8Bytes = encoding.
GetBytes
(s.ToCharArray());
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (2)
7881
nullBytes = Encoding.Default.
GetBytes
(nullChar);
7885
nullBytes = Encoding.Unicode.
GetBytes
(nullChar);