112 references to ASCII
mscorlib (8)
system\security\cryptography\base64transforms.cs (4)
59byte[] tempBytes = Encoding.ASCII.GetBytes(temp); 82byte[] tempBytes = Encoding.ASCII.GetBytes(temp); 180tempChar = Encoding.ASCII.GetChars(transformBuffer, 0, 4*numBlocks); 223tempChar = Encoding.ASCII.GetChars(transformBuffer, 0, 4*numBlocks);
system\security\permissions\permissionattributes.cs (1)
1141Encoding.ASCII,
system\security\principal\windowsidentity.cs (1)
1034Encoding.ASCII.GetBytes(Win32Native.MICROSOFT_KERBEROS_NAME, 0, Win32Native.MICROSOFT_KERBEROS_NAME.Length, arrayPackageName, 0);
system\security\util\tokenizer.cs (1)
232if (encoding == System.Text.Encoding.ASCII)
system\text\encoding.cs (1)
520result = ASCII;
PresentationCore (2)
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (2)
280string strPBrush = System.Text.Encoding.ASCII.GetString(rawData, pHeader.headersize + 12, 6); 288byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
System (51)
net\System\Net\_DigestClient.cs (1)
1269byte[] hash = digestChallenge.MD5provider.ComputeHash(Encoding.ASCII.GetBytes(hashMe));
net\System\Net\_SecureChannel.cs (1)
1117GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() buffer:[" + Encoding.ASCII.GetString(buffer, 0, Math.Min(buffer.Length,128)) + "]");
net\System\Net\HttpWebRequest.cs (11)
4698offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4796offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4798offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4801offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4862offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4864offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset); 4865offset += Encoding.ASCII.GetBytes(userInfo, 0, userInfo.Length, WriteBuffer, offset); 4868offset += Encoding.ASCII.GetBytes(path, 0, path.Length, WriteBuffer, offset); 4900offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0); 4902offset += Encoding.ASCII.GetBytes(pathAndQuery, 0, pathAndQuery.Length, WriteBuffer, offset); 5104if (Logging.On) Logging.PrintInfo(Logging.Web, this, "Request: "+Encoding.ASCII.GetString(WriteBuffer, 0, offset));
net\System\Net\mail\Attachment.cs (2)
126encoding = Text.Encoding.ASCII; 177encoding = Text.Encoding.ASCII;
net\System\Net\mail\Base64Stream.cs (1)
330return ASCIIEncoding.ASCII.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\EncodedStreamFactory.cs (1)
68return Encoding.ASCII.GetBytes(header);
net\System\Net\mail\MailMessage.cs (1)
201bodyEncoding = Text.Encoding.ASCII;
net\System\Net\mail\MimeBasePart.cs (1)
76byte[] buffer = ASCIIEncoding.ASCII.GetBytes(subStrings[3]);
net\System\Net\mail\MimeWriter.cs (1)
31this.boundaryBytes = Encoding.ASCII.GetBytes(boundary);
net\System\Net\mail\QEncodedStream.cs (1)
292return ASCIIEncoding.ASCII.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\QuotedPrintableStream.cs (1)
326return ASCIIEncoding.ASCII.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
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\webclient.cs (3)
633boundaryBytes = Encoding.ASCII.GetBytes("\r\n--" + boundary + "--\r\n"); 762byte[] buffer = Encoding.ASCII.GetBytes(values.ToString()); 1680return Encoding.ASCII.GetString(UrlEncodeToBytes(str, e));
net\System\Net\WebHeaderCollection.cs (1)
1566GlobalLog.Enter("WebHeaderCollection::ParseHeadersStrict(): size:" + size.ToString() + ", unparsed:" + unparsed.ToString() + " buffer:[" + Encoding.ASCII.GetString(buffer, unparsed, Math.Min(256, size-unparsed)) + "]");
security\system\security\cryptography\x509\x509extension.cs (1)
497Encoding.ASCII.GetBytes(objId, 0, objId.Length, szObjId, 0);
security\system\security\cryptography\x509\x509utils.cs (2)
317Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 512byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
sys\system\io\ports\SerialPort.cs (3)
71private Encoding encoding = System.Text.Encoding.ASCII; // ASCII is default encoding for modem communication, etc. 72private Decoder decoder = System.Text.Encoding.ASCII.GetDecoder(); 73private int maxByteCountForSingleChar = System.Text.Encoding.ASCII.GetMaxByteCount(1);
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
1026Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0);
System.Data.Entity (1)
System\Data\Metadata\Edm\EntityType.cs (1)
308.ComputeHash(Encoding.ASCII.GetBytes(BuildEntityTypeDescription()));
System.Data.Services (2)
parent\Client\System\Data\Services\Client\BatchStream.cs (2)
1023return Encoding.ASCII; 1081return Encoding.ASCII;
System.Data.Services.Client (2)
System\Data\Services\Client\BatchStream.cs (2)
1023return Encoding.ASCII; 1081return Encoding.ASCII;
System.Drawing (2)
commonui\System\Drawing\ImageConverter.cs (2)
216string strPBrush = System.Text.Encoding.ASCII.GetString(rawData, pHeader.headersize + 12, 6); 224byte[] searchArray = System.Text.Encoding.ASCII.GetBytes("BM");
System.IdentityModel (1)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
346byte[] ansiOid = Encoding.ASCII.GetBytes(oidStrs[index]);
System.Runtime.Remoting (18)
channels\core\corechannel.cs (1)
670String base64String = Encoding.ASCII.GetString(byteArray,0, byteArray.Length);
channels\core\socketmanager.cs (1)
609String str = Encoding.ASCII.GetString(strBytes);
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\sinks\soapformattersinks.cs (1)
280sb.Append(Encoding.ASCII.GetString(buffer, 0, readCount));
channels\tcp\tcpclientsocketmanager.cs (1)
33private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
channels\tcp\tcpsocketmanager.cs (1)
33private static byte[] s_protocolPreamble = Encoding.ASCII.GetBytes(".NET");
channels\tcp\tcpstreams.cs (1)
233private static byte[] s_endOfLineBytes = Encoding.ASCII.GetBytes("\r\n");
System.Runtime.Serialization (2)
System\Xml\XmlMtomReader.cs (1)
1791content = new StreamReader(s, System.Text.Encoding.ASCII, false, 256).ReadToEnd();
System\Xml\XmlMtomWriter.cs (1)
1014Encoding.ASCII.GetBytes(boundary, 0, boundary.Length, boundaryBytes, MimeGlobals.BoundaryPrefix.Length);
System.Security (9)
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\pkcs\pkcsutils.cs (2)
266return new Oid(Encoding.ASCII.GetString(contentType)); 667Encoding.ASCII.GetBytes(attribute.Oid.Value, 0, attribute.Oid.Value.Length, objId, 0);
system\security\cryptography\x509\x509utils.cs (2)
129Encoding.ASCII.GetBytes(s, 0, s.Length, arr, 0); 268byte[] ansiOid = Encoding.ASCII.GetBytes(oids[index].Value);
System.ServiceModel (2)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3578&& notFoundTestString == UTF8Encoding.ASCII.GetString(responseBytes))
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
70System.Text.Encoding.ASCII.GetChars(bytes, 0, size, buffer, 0);
System.ServiceModel.Internals (2)
System\Runtime\UrlUtility.cs (2)
75return Encoding.ASCII.GetString(UrlEncodeToBytes(str, encoding)); 138return Encoding.ASCII.GetString(bytes);
System.Web (9)
HttpRequest.cs (1)
1115return Encoding.ASCII.GetBytes(b.ToCharArray());
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 (4)
1346return Encoding.ASCII.GetString(UrlEncodeToBytes(str, e)); 1360return Encoding.ASCII.GetString(UrlEncodeToBytes(bytes)); 1370return Encoding.ASCII.GetString(UrlEncodeToBytes(bytes, offset, count)); 1429return Encoding.ASCII.GetBytes(UrlEncodeUnicode(str));
Util\HttpEncoder.cs (1)
680return Encoding.ASCII.GetString(encodedBytes);