1 override of GetBytes
System.Xml (1)
System\Xml\XmlEncoding.cs (1)
200public override byte[] GetBytes( string s ) {
267 references to GetBytes
mscorlib (10)
system\diagnostics\eventing\eventsource.cs (2)
1751byte[] bytes = Encoding.BigEndianUnicode.GetBytes(name); 6305return Encoding.UTF8.GetBytes(str);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (2)
781metaData.AddRange(Encoding.UTF8.GetBytes(value.Substring(1))); 798metaData.AddRange(Encoding.UTF8.GetBytes(value));
system\reflection\emit\customattributebuilder.cs (1)
364byte[] utf8Str = Encoding.UTF8.GetBytes(str);
system\security\cryptography\passwordderivebytes.cs (1)
75this ((new UTF8Encoding(false)).GetBytes(strPassword), rgbSalt, strHashName, iterations, cspParams) {}
system\security\cryptography\rfc2898derivebytes.cs (2)
75m_password = new UTF8Encoding(false).GetBytes(password); 89: this(new UTF8Encoding(false).GetBytes(password), salt, iterations, hashAlgorithm) {
system\security\policymanager.cs (1)
311byte[] data = encoding.GetBytes(sb.ToString());
system\security\principal\windowsidentity.cs (1)
1070byte[] upnBytes = Encoding.Unicode.GetBytes(upn);
PresentationBuildTasks (1)
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (1)
151byte[] baFileContent = utf8Encoding.GetBytes(strFileContent);
PresentationCore (3)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
306bw.Write( System.Text.Encoding.Unicode.GetBytes( data ) );
Core\CSharp\System\Windows\DataObject.cs (1)
2348utf8Bytes = utf8Encoding.GetBytes(str);
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
288byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
PresentationFramework (4)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
310MemoryStream data = new MemoryStream(encoding.GetBytes(rtfString));
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (1)
87byte[] sourceBytes = Encoding.Unicode.GetBytes(content.ToString());
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
7826_rtfBytes = Encoding.Default.GetBytes(rtfString);
src\Framework\System\Windows\Markup\XamlReader.cs (1)
77Stream xamlStream = new MemoryStream(UTF8Encoding.Default.GetBytes(xamlText));
SMDiagnostics (1)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (1)
26byte[] blob = encoding.GetBytes(value);
System (57)
net\System\Net\_BasicClient.cs (1)
128byte[] bytes = Encoding.Default.GetBytes(rawString);
net\System\Net\_CommandStream.cs (1)
222byte[] sendBuffer = Encoding.GetBytes(m_Commands[m_Index].Command);
net\System\Net\_DigestClient.cs (4)
892byte[] bytes = charset==Charset.UTF8 ? Encoding.UTF8.GetBytes(rawString) : Encoding.Default.GetBytes(rawString); 913byte[] bytes = Encoding.Default.GetBytes(rawString); 1269byte[] hash = digestChallenge.MD5provider.ComputeHash(Encoding.ASCII.GetBytes(hashMe));
net\System\Net\_NTAuthentication.cs (2)
809list.Add(new SecurityBuffer(Encoding.Unicode.GetBytes(m_Spn), BufferType.TargetHost)); 858list.Add(realm == null ? new SecurityBuffer(0, BufferType.Parameters) : new SecurityBuffer(Encoding.Unicode.GetBytes(realm), BufferType.Parameters));
net\System\Net\HttpListener.cs (3)
2334byte[] byteReason = Encoding.Default.GetBytes(statusDescription); 2340byte[] byteContentLength = Encoding.Default.GetBytes("0"); 2368byte[] byteChallenge = Encoding.Default.GetBytes((string) challenges[i]);
net\System\Net\HttpListenerRequestUriBuilder.cs (2)
308AppendOctetsPercentEncoded(requestUriString, utf8Encoding.GetBytes(unicodeString)); 362AppendOctetsPercentEncoded(requestUriString, utf8Encoding.GetBytes(decodedString));
net\System\Net\mail\Attachment.cs (2)
132byte[] buffer = encoding.GetBytes(contentString); 185byte[] buffer = encoding.GetBytes(contentString);
net\System\Net\mail\EncodedStreamFactory.cs (1)
68return Encoding.ASCII.GetBytes(header);
net\System\Net\mail\MailAddress.cs (1)
233buffer = displayNameEncoding.GetBytes(this.displayName);
net\System\Net\mail\MimeBasePart.cs (2)
47byte[] buffer = encoding.GetBytes(value); 76byte[] buffer = ASCIIEncoding.ASCII.GetBytes(subStrings[3]);
net\System\Net\mail\MimeWriter.cs (1)
31this.boundaryBytes = Encoding.ASCII.GetBytes(boundary);
net\System\Net\mail\SmtpCommands.cs (19)
656internal readonly static byte[] Auth = Encoding.ASCII.GetBytes("AUTH "); 657internal readonly static byte[] CRLF = Encoding.ASCII.GetBytes("\r\n"); 658internal readonly static byte[] Data = Encoding.ASCII.GetBytes("DATA\r\n"); 659internal readonly static byte[] DataStop = Encoding.ASCII.GetBytes("\r\n.\r\n"); 660internal readonly static byte[] EHello = Encoding.ASCII.GetBytes("EHLO "); 661internal readonly static byte[] Expand = Encoding.ASCII.GetBytes("EXPN "); 662internal readonly static byte[] Hello = Encoding.ASCII.GetBytes("HELO "); 663internal readonly static byte[] Help = Encoding.ASCII.GetBytes("HELP"); 664internal readonly static byte[] Mail = Encoding.ASCII.GetBytes("MAIL FROM:"); 665internal readonly static byte[] Noop = Encoding.ASCII.GetBytes("NOOP\r\n"); 666internal readonly static byte[] Quit = Encoding.ASCII.GetBytes("QUIT\r\n"); 667internal readonly static byte[] Recipient = Encoding.ASCII.GetBytes("RCPT TO:"); 668internal readonly static byte[] Reset = Encoding.ASCII.GetBytes("RSET\r\n"); 669internal readonly static byte[] Send = Encoding.ASCII.GetBytes("SEND FROM:"); 670internal readonly static byte[] SendAndMail= Encoding.ASCII.GetBytes("SAML FROM:"); 671internal readonly static byte[] SendOrMail = Encoding.ASCII.GetBytes("SOML FROM:"); 672internal readonly static byte[] Turn = Encoding.ASCII.GetBytes("TURN\r\n"); 673internal readonly static byte[] Verify = Encoding.ASCII.GetBytes("VRFY "); 674internal readonly static byte[] StartTls = Encoding.ASCII.GetBytes("STARTTLS");
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (2)
58return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(userName)), false); 65return new Authorization(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cachedCredential.Password)), true);
net\System\Net\webclient.cs (6)
632formHeaderBytes = Encoding.UTF8.GetBytes(formHeader); 633boundaryBytes = Encoding.ASCII.GetBytes("\r\n--" + boundary + "--\r\n"); 762byte[] buffer = Encoding.ASCII.GetBytes(values.ToString()); 863byte [] requestData = Encoding.GetBytes(data); 1686byte[] bytes = e.GetBytes(str); 2212byte [] requestData = Encoding.GetBytes(data);
net\System\Net\WebHeaderCollection.cs (2)
2103m_Bytes = Encoding.Default.GetBytes(m_String); 2106m_Bytes = Encoding.UTF8.GetBytes(m_String);
net\System\Net\WebSockets\WebSocketBase.cs (1)
2169byte[] blob = UTF8Encoding.UTF8.GetBytes(CloseReason);
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
206byte[] toHash = Encoding.UTF8.GetBytes(acceptString);
net\System\Net\WebUtility.cs (1)
471byte[] bytes = Encoding.UTF8.GetBytes(value);
security\system\security\cryptography\x509\x509utils.cs (1)
512byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
services\monitoring\system\diagnosticts\Process.cs (2)
2770envBlock = Encoding.Unicode.GetBytes(stringBuff.ToString()); 2773envBlock = Encoding.Default.GetBytes(stringBuff.ToString());
sys\system\io\ports\SerialPort.cs (2)
1307byte[] readBuffer = encoding.GetBytes(currentLine.ToString()); 1345bytesToWrite = encoding.GetBytes(text);
System.Activities.DurableInstancing (4)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
156byte[] workflowHostTypeBuffer = Encoding.Unicode.GetBytes(workflowHostType.ToString());
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
298byte[] workflowHostTypeBuffer = Encoding.Unicode.GetBytes(((XName)instanceValue.Value).ToString()); 416byte[] serviceDeploymentHashBuffer = Encoding.Unicode.GetBytes(string.Format(CultureInfo.InvariantCulture, "{0}#{1}#{2}#{3}#{4}",
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
266byte[] identityHashBuffer = Encoding.Unicode.GetBytes(id.ToString());
System.Configuration (1)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (1)
245return PrepareDataBlob((s != null) ? Encoding.Unicode.GetBytes(s) : new byte[0]);
System.Core (1)
System\Diagnostics\EventSchemaTraceListener.cs (1)
733byte[] buffer = Encoding.GetBytes(value);
System.Data (19)
fx\src\data\System\Data\Odbc\OdbcParameter.cs (1)
649value = cpe.GetBytes(value.ToString());
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256EncryptionKey.cs (3)
88SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(encryptionKeySalt), RootKey, buff1); 94SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(macKeySalt),RootKey,buff2); 100SqlSecurityUtility.GetHMACWithSHA256(Encoding.Unicode.GetBytes(ivKeySalt),RootKey,buff3);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (2)
209byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant()); 315byte[] masterkeyMetadataBytes = Encoding.Unicode.GetBytes(masterkeyMetadata.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (1)
189byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
195byte[] masterKeyPathBytes = Encoding.Unicode.GetBytes(masterKeyPath.ToLowerInvariant());
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2456byte[] rgbMachineName = cp.GetBytes(pszMachineName); 2457byte[] rgbSDIDLLName = cp.GetBytes(pszSDIDLLName);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
375_accessTokenInBytes = System.Text.Encoding.Unicode.GetBytes(accessToken);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (2)
320bytes = _stateObj.Parser._defaultEncoding.GetBytes(value); 340bytes = _stateObj.Parser._defaultEncoding.GetBytes(value);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
1079byte [] asciiName = ascii.GetBytes(EA_NAME_STRING);
fx\src\data\System\Data\SQLTypes\SQLString.cs (5)
370return x_UnicodeEncoding.GetBytes(m_value); 384return cpe.GetBytes(m_value); 802byte[] rgDataX = x_UnicodeEncoding.GetBytes(x.m_value); 803byte[] rgDataY = x_UnicodeEncoding.GetBytes(y.m_value); 973rgbSortKey = x_UnicodeEncoding.GetBytes(m_value.TrimEnd());
System.Data.Entity (1)
System\Data\Metadata\Edm\EntityType.cs (1)
308.ComputeHash(Encoding.ASCII.GetBytes(BuildEntityTypeDescription()));
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
4682buffer = encoding.GetBytes(ClientConvert.ToString(value, false /* atomDateConstruct */));
System.Drawing (2)
commonui\System\Drawing\ImageConverter.cs (1)
224byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
1404byte[] bytes = System.Text.Encoding.Default.GetBytes(str);
System.IdentityModel (25)
System\IdentityModel\CanonicalFormWriter.cs (1)
85byte[] buffer = CanonicalFormWriter.Utf8WithoutPreamble.GetBytes(s);
System\IdentityModel\Configuration\ConfigurationElementInterceptor.cs (1)
19using ( XmlReader newReader = XmlDictionaryReader.CreateTextReader( Encoding.UTF8.GetBytes( elementXml.DocumentElement.OuterXml ), XmlDictionaryReaderQuotas.Max ) )
System\IdentityModel\PreDigestedSignedInfo.cs (14)
245this.fragment1 = encoding.GetBytes(xml1); 246this.fragment2 = encoding.GetBytes(xml2); 247this.fragment3 = encoding.GetBytes(xml3); 248this.fragment4 = encoding.GetBytes(xml4); 249this.fragment4StrTransform = encoding.GetBytes(xml4WithStrTransform); 250this.fragment5 = encoding.GetBytes(xml5); 251this.fragment6 = encoding.GetBytes(xml6); 252this.fragment7 = encoding.GetBytes(xml7); 253this.sha1Digest = encoding.GetBytes(SecurityAlgorithms.Sha1Digest); 254this.sha256Digest = encoding.GetBytes(SecurityAlgorithms.Sha256Digest); 255this.hmacSha1Signature = encoding.GetBytes(SecurityAlgorithms.HmacSha1Signature); 256this.rsaSha1Signature = encoding.GetBytes(SecurityAlgorithms.RsaSha1Signature); 276return CanonicalFormWriter.Utf8WithoutPreamble.GetBytes(algorithm); 292return CanonicalFormWriter.Utf8WithoutPreamble.GetBytes(algorithm);
System\IdentityModel\ProtectedDataCookieTransform.cs (1)
29this.entropy = Encoding.UTF8.GetBytes( entropyString );
System\IdentityModel\RsaEncryptionCookieTransform.cs (2)
207byte[] hashedKey = hash.ComputeHash(Encoding.UTF8.GetBytes(key.ToXmlString(false))); 286rsaHash = hash.ComputeHash(Encoding.UTF8.GetBytes(encryptionKey.ToXmlString(false)));
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
346byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1685key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString()))); 1896using (XmlDictionaryReader dicReader = XmlDictionaryReader.CreateTextReader(Encoding.UTF8.GetBytes(attributeValue), XmlDictionaryReaderQuotas.Max))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
825key = Convert.ToBase64String(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString()))); 1446using (XmlDictionaryReader xmlReader = XmlDictionaryReader.CreateTextReader(Encoding.UTF8.GetBytes(attributeValue), XmlDictionaryReaderQuotas.Max))
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
359bytes = new UTF8Encoding().GetBytes(reader.ReadContentAsString());
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (1)
368byte[] rootbytes = utf8.GetBytes(root);
System.Runtime.Remoting (18)
channels\http\httpchannelhelper.cs (2)
316byte[] uriBytes = Encoding.UTF8.GetBytes(uri); 357byte[] uriBytes = Encoding.UTF8.GetBytes(uri);
channels\http\httpsocketmanager.cs (6)
33private static byte[] s_httpVersion = Encoding.ASCII.GetBytes("HTTP/1.1"); 34private static byte[] s_httpVersionAndSpace = Encoding.ASCII.GetBytes("HTTP/1.1 "); 122byte[] nameBytes = Encoding.ASCII.GetBytes(name); 123byte[] valueBytes = Encoding.ASCII.GetBytes(value); 133byte[] statusCodeBytes = Encoding.ASCII.GetBytes(statusCode); 134byte[] reasonPhraseBytes = Encoding.ASCII.GetBytes(reasonPhrase);
channels\http\httpstreams.cs (6)
94private static byte[] _trailer = Encoding.ASCII.GetBytes("0\r\n\r\n"); // 0-length, no trailer, end chunked 95private static byte[] _endChunk = Encoding.ASCII.GetBytes("\r\n"); 228return Encoding.ASCII.GetBytes(str); 335private static byte[] _trailer = Encoding.ASCII.GetBytes("0\r\n\r\n\r\n"); // 0-length, null trailer, end chunked 336private static byte[] _endChunk = Encoding.ASCII.GetBytes("\r\n"); 493private static byte[] _bufferhttpContinue = Encoding.ASCII.GetBytes("HTTP/1.1 100 Continue\r\n\r\n");
channels\tcp\tcpclientsocketmanager.cs (1)
33private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
channels\tcp\tcpsocketmanager.cs (2)
33private static byte[] s_protocolPreamble = Encoding.ASCII.GetBytes(".NET"); 335byte[] strBytes = Encoding.UTF8.GetBytes(str);
channels\tcp\tcpstreams.cs (1)
233private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
System.Runtime.Serialization (6)
System\Runtime\Serialization\DataContract.cs (1)
1939byte[] namespaceBytes = Encoding.UTF8.GetBytes(namespaces);
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
26MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(xmlContent));
System\Xml\ValueHandle.cs (1)
471return Base64Encoding.GetBytes(XmlConverter.StripWhitespace(GetString()));
System\Xml\XmlConverter.cs (1)
393return UTF8Encoding.GetBytes(value);
System\Xml\XmlDictionaryString.cs (1)
78buffer = System.Text.Encoding.UTF8.GetBytes(value);
System\Xml\XmlMtomReader.cs (1)
1273binHexStream = new MemoryStream(new BinHexEncoding().GetBytes(this.Value));
System.Security (24)
system\security\cryptography\pkcs\envelopedpkcs7.cs (5)
709byte[] objId = Encoding.ASCII.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId); 824byte[] objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgESDH); 840objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgCMSRC2wrap); 843objId = Encoding.ASCII.GetBytes(CAPI.szOID_RSA_SMIMEalgCMS3DESwrap); 873objId = Encoding.ASCII.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId);
system\security\cryptography\x509\x509utils.cs (1)
268byte[] ansiOid = Encoding.ASCII.GetBytes(oids[index].Value);
system\security\cryptography\xml\c14nutil.cs (15)
277rgbData = utf8.GetBytes(">"); 323rgbData = utf8.GetBytes(Utils.EscapeAttributeValue(this.Value)); 325rgbData = utf8.GetBytes("\""); 352byte[] rgbData = utf8.GetBytes(Utils.EscapeTextData(this.Value)); 380byte[] rgbData = utf8.GetBytes(Utils.EscapeWhitespaceData(this.Value)); 408byte[] rgbData = utf8.GetBytes(Utils.EscapeWhitespaceData(this.Value)); 452byte[] rgbData = utf8.GetBytes("(char) 10"); 455rgbData = utf8.GetBytes("<!--"); 459rgbData = utf8.GetBytes("-->"); 462rgbData = utf8.GetBytes("(char) 10"); 506rgbData = utf8.GetBytes("(char) 10"); 509rgbData = utf8.GetBytes("<?"); 517rgbData = utf8.GetBytes("?>"); 520rgbData = utf8.GetBytes("(char) 10"); 573byte[] rgbData = utf8.GetBytes(Utils.EscapeCData(this.Data));
system\security\cryptography\xml\canonicalxml.cs (1)
107return utf8.GetBytes(sb.ToString());
system\security\cryptography\xml\exccanonicalxml.cs (1)
63return utf8.GetBytes(sb.ToString());
system\security\cryptography\xml\transform.cs (1)
631byte[] buffer = utf8.GetBytes(sb.ToString());
System.ServiceModel (15)
System\ServiceModel\Channels\CorrelationKey.cs (1)
89byte[] keyBytes = Encoding.Unicode.GetBytes(keyString);
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
692byte[] inputBytes = new UTF8Encoding().GetBytes(inputString);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
57pwdBytes = UnicodeEncoding.Unicode.GetBytes(pwd.Trim());
System\ServiceModel\Channels\PipeConnection.cs (1)
2806byte[] canonicalBytes = Encoding.UTF8.GetBytes(canonicalName);
System\ServiceModel\Channels\WebSocketHelper.cs (1)
55byte[] bytes = Encoding.UTF8.GetBytes(fullString);
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (1)
174byte[] bytes = System.Text.Encoding.UTF8.GetBytes(value);
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (1)
829byte[] wsdlText = utf8.GetBytes(textWriter.ToString());
System\ServiceModel\Security\SecurityUtils.cs (1)
548combinedHashLabel = Encoding.UTF8.GetBytes(TrustApr2004Strings.CombinedHashLabel);
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
261(this.label != null ? Encoding.UTF8.GetBytes(this.label) : DefaultLabel), this.nonce, this.length * 8,
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (1)
132return hmac.ComputeHash(Encoding.Unicode.GetBytes(password));
System\ServiceModel\Security\WSUtilitySpecificationVersion.cs (4)
181this.fragment1 = encoding.GetBytes(xml1); 182this.fragment2 = encoding.GetBytes(xml2); 183this.fragment3 = encoding.GetBytes(xml3); 184this.fragment4 = encoding.GetBytes(xml4);
System\ServiceModel\Transactions\WsatProxy.cs (1)
431byte[] descriptionBytes = Encoding.UTF8.GetBytes(description);
System.ServiceModel.Internals (2)
System\Runtime\UrlUtility.cs (2)
136byte[] bytes = e.GetBytes(str); 157byte[] bytes = e.GetBytes(str);
System.ServiceModel.Web (8)
System\ServiceModel\Channels\JavascriptXmlWriterWrapper.cs (3)
22this.encodedClosingFunctionCall = this.encoding.GetBytes(");"); 96byte[] buffer = this.encoding.GetBytes(String.Format(CultureInfo.InvariantCulture, ",{0}", (int)this.JavascriptResponseMessageProperty.StatusCode)); 155byte[] buffer = this.encoding.GetBytes(String.Format(CultureInfo.InvariantCulture, "{0}(", this.JavascriptResponseMessageProperty.CallbackFunctionName));
System\ServiceModel\Channels\JsonMessageEncoderFactory.cs (3)
112this.encodedClosingFunctionCall = this.writeEncoding.GetBytes(");"); 329byte[] buffer = this.writeEncoding.GetBytes(String.Format(CultureInfo.InvariantCulture, "{0}(", javascriptResponseMessageProperty.CallbackFunctionName)); 342byte[] buffer = this.writeEncoding.GetBytes(String.Format(CultureInfo.InvariantCulture, ",{0}", (int)javascriptResponseMessageProperty.StatusCode));
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
180byte[] byteArray = Encoding.UTF8.GetBytes(parameter);
System\ServiceModel\Web\WebOperationContext.cs (1)
244byte[] bytes = encoding.GetBytes(text);
System.Web (23)
Configuration\IdentitySection.cs (1)
237byte[] bIn1 = System.Text.Encoding.Unicode.GetBytes(name + "\t" + password);
Configuration\MachineKeySection.cs (1)
737ab = Encoding.Unicode.GetBytes(s);
Hosting\ISAPIWorkerRequest.cs (1)
2926byte[] nameBytes = Encoding.Unicode.GetBytes(filename);
HttpCachePolicy.cs (1)
746_etag = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(sb.ToString())));
HttpResponse.cs (1)
677byte[] chunkPrefix = Encoding.ASCII.GetBytes(Convert.ToString(bufferedLength, 16) + "\r\n");
HttpRuntime.cs (2)
1630byte[] body = Encoding.ASCII.GetBytes("<html><body>Server Too Busy</body></html>"); 1653byte[] body = Encoding.ASCII.GetBytes("<html><body>Bad Request</body></html>");
httpserverutility.cs (3)
1390byte[] bytes = e.GetBytes(str); 1429return Encoding.ASCII.GetBytes(UrlEncodeUnicode(str)); 1485return UrlDecodeToBytes(e.GetBytes(str));
HttpWriter.cs (1)
591byte[] data = e.GetBytes(s);
Security\ADMembershipProvider.cs (1)
3400byte[] bIn = Encoding.Unicode.GetBytes(clearTextString);
Security\AnonymousIdentificationModule.cs (2)
329s_Modifier = Encoding.UTF8.GetBytes("AnonymousIdentification"); 343byte [] bufId = Encoding.UTF8.GetBytes(data.AnonymousId);
Security\AntiXss\AntiXssEncoder.cs (1)
43return Encoding.UTF8.GetBytes(result);
Security\Cryptography\Purpose.cs (1)
145_derivedKeyLabel = CryptoUtil.SecureUTF8Encoding.GetBytes(PrimaryPurpose);
Security\FormsAuthentication.cs (1)
76return CryptoUtil.BinaryToHex(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(password)));
Security\SQLMembershipProvider.cs (1)
1905byte[] bIn = Encoding.Unicode.GetBytes(pass);
State\OutOfProcStateClientManager.cs (1)
108string idHash = Convert.ToBase64String(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(appId)));
StringResourceManager.cs (1)
153byte[] data = encoding.GetBytes(s);
UI\LOSFormatter.cs (1)
59return Encoding.Unicode.GetBytes(s);
UI\Page.cs (1)
2009byte[] clearData = Encoding.UTF8.GetBytes(s);
Util\HttpEncoder.cs (1)
678byte[] bytes = e.GetBytes(str);
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
204byte[] data = System.Text.Encoding.UTF8.GetBytes("chart io controller file"); 1469byte[] data = Encoding.UTF8.GetBytes(sessionID + "/" + currentGuid);
System.Web.Extensions (2)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
551byte [] bufPass = Encoding.Unicode.GetBytes(password);
ClientServices\Providers\ProxyHelper.cs (1)
134return Encoding.UTF8.GetBytes(sb.ToString());
System.Web.Services (3)
System\Web\Services\Protocols\HttpServerProtocol.cs (1)
167string utf8MethodName = Encoding.UTF8.GetString(Encoding.Default.GetBytes(methodName));
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
558byte[] bytes = HashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(key));
System\Web\Services\Protocols\Scalars.cs (1)
94byte[] bytes = e.GetBytes(s);
System.Windows.Forms (21)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (4)
521byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml); 718byte[] modulus = Encoding.UTF8.GetBytes(snModulus.InnerXml); 719byte[] exponent = Encoding.UTF8.GetBytes(snExponent.InnerXml); 1028byte[] licenseXml = Encoding.UTF8.GetBytes(licenseDom.OuterXml);
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (4)
266byte[] licenseXml = Encoding.UTF8.GetBytes(licenseNode.OuterXml); 1344byte[] modulus = Encoding.UTF8.GetBytes(snModulus.InnerXml); 1345byte[] exponent = Encoding.UTF8.GetBytes(snExponent.InnerXml); 1856byte[] licenseXml = Encoding.UTF8.GetBytes(licenseDom.OuterXml);
winforms\Managed\System\WinForms\Control.cs (2)
7880bytes = Encoding.Default.GetBytes(value); 7884bytes = Encoding.Unicode.GetBytes(value);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
8216byte[] sourceBytes = Encoding.Unicode.GetBytes(sbContent.ToString()); 8227sourceBytes = Encoding.Unicode.GetBytes(sbContent.ToString());
winforms\Managed\System\WinForms\DataObject.cs (1)
1137byte[] bytes = encoding.GetBytes(str);
winforms\Managed\System\WinForms\ListView.cs (2)
6070byte[] buff = System.Text.Encoding.Default.GetBytes(text + "\0"); 6155byte[] byteBuf = System.Text.Encoding.Default.GetBytes(lvi.ToolTipText + "\0");
winforms\Managed\System\WinForms\RichTextBox.cs (4)
2902bytesFaceName = Encoding.Default.GetBytes(logfont.lfFaceName); 2916bytesFaceName = Encoding.Unicode.GetBytes(logfont.lfFaceName); 3001encodedBytes = Encoding.Unicode.GetBytes(str); 3004encodedBytes = Encoding.Default.GetBytes(str);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2078byte[] bytes = e.GetBytes(str);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
6569byte[] bytes = Encoding.Default.GetBytes(s);
System.Workflow.Runtime (2)
Tracking.cs (2)
1850data = ue.GetBytes(serviceFullTypeName); 1874data = ue.GetBytes(stringToHash);
System.Xml (1)
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
97return new MemoryStream(Encoding.Unicode.GetBytes(str));
WindowsBase (7)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
937byte [] userNameBytes = _unicodeEncoding.GetBytes(typePrefixedUserName); 940byte [] utf8Bytes = Encoding.UTF8.GetBytes(base64UserName); 1362byte[] bytes = encoding.GetBytes(s);
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
727byte[] byteArray = UTF8Encoding.UTF8.GetBytes(inputString);
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (1)
396_fileName = _encoding.GetBytes(fileBlock.FileName);
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (1)
54byte[] asciiName = encoding.GetBytes(fileName);
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6214byte[] bytes = Encoding.Default.GetBytes(s);
WsatConfig (1)
Configuration\ClusterRegistryConfigurationProvider.cs (1)
206byte[] temp = Encoding.Unicode.GetBytes(s);
WsatUI (1)
Configuration\ClusterRegistryConfigurationProvider.cs (1)
206byte[] temp = Encoding.Unicode.GetBytes(s);