112 references to ASCII
mscorlib (8)
system\security\cryptography\base64transforms.cs (4)
59
byte[] tempBytes = Encoding.
ASCII
.GetBytes(temp);
82
byte[] tempBytes = Encoding.
ASCII
.GetBytes(temp);
180
tempChar = Encoding.
ASCII
.GetChars(transformBuffer, 0, 4*numBlocks);
223
tempChar = Encoding.
ASCII
.GetChars(transformBuffer, 0, 4*numBlocks);
system\security\permissions\permissionattributes.cs (1)
1141
Encoding.
ASCII
,
system\security\principal\windowsidentity.cs (1)
1034
Encoding.
ASCII
.GetBytes(Win32Native.MICROSOFT_KERBEROS_NAME, 0, Win32Native.MICROSOFT_KERBEROS_NAME.Length, arrayPackageName, 0);
system\security\util\tokenizer.cs (1)
232
if (encoding == System.Text.Encoding.
ASCII
)
system\text\encoding.cs (1)
520
result =
ASCII
;
PresentationCore (2)
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (2)
280
string strPBrush = System.Text.Encoding.
ASCII
.GetString(rawData, pHeader.headersize + 12, 6);
288
byte[] searchArray = System.Text.Encoding.
ASCII
.GetBytes("BM");
System (51)
net\System\Net\_DigestClient.cs (1)
1269
byte[] hash = digestChallenge.MD5provider.ComputeHash(Encoding.
ASCII
.GetBytes(hashMe));
net\System\Net\_SecureChannel.cs (1)
1117
GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() buffer:[" + Encoding.
ASCII
.GetString(buffer, 0, Math.Min(buffer.Length,128)) + "]");
net\System\Net\HttpWebRequest.cs (11)
4698
offset = Encoding.
ASCII
.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0);
4796
offset = Encoding.
ASCII
.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0);
4798
offset += Encoding.
ASCII
.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset);
4801
offset += Encoding.
ASCII
.GetBytes(path, 0, path.Length, WriteBuffer, offset);
4862
offset = Encoding.
ASCII
.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0);
4864
offset += Encoding.
ASCII
.GetBytes(scheme, 0, scheme.Length, WriteBuffer, offset);
4865
offset += Encoding.
ASCII
.GetBytes(userInfo, 0, userInfo.Length, WriteBuffer, offset);
4868
offset += Encoding.
ASCII
.GetBytes(path, 0, path.Length, WriteBuffer, offset);
4900
offset = Encoding.
ASCII
.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length, WriteBuffer, 0);
4902
offset += Encoding.
ASCII
.GetBytes(pathAndQuery, 0, pathAndQuery.Length, WriteBuffer, offset);
5104
if (Logging.On) Logging.PrintInfo(Logging.Web, this, "Request: "+Encoding.
ASCII
.GetString(WriteBuffer, 0, offset));
net\System\Net\mail\Attachment.cs (2)
126
encoding = Text.Encoding.
ASCII
;
177
encoding = Text.Encoding.
ASCII
;
net\System\Net\mail\Base64Stream.cs (1)
330
return ASCIIEncoding.
ASCII
.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\EncodedStreamFactory.cs (1)
68
return Encoding.
ASCII
.GetBytes(header);
net\System\Net\mail\MailMessage.cs (1)
201
bodyEncoding = Text.Encoding.
ASCII
;
net\System\Net\mail\MimeBasePart.cs (1)
76
byte[] buffer = ASCIIEncoding.
ASCII
.GetBytes(subStrings[3]);
net\System\Net\mail\MimeWriter.cs (1)
31
this.boundaryBytes = Encoding.
ASCII
.GetBytes(boundary);
net\System\Net\mail\QEncodedStream.cs (1)
292
return ASCIIEncoding.
ASCII
.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\QuotedPrintableStream.cs (1)
326
return ASCIIEncoding.
ASCII
.GetString(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\SmtpCommands.cs (19)
656
internal readonly static byte[] Auth = Encoding.
ASCII
.GetBytes("AUTH ");
657
internal readonly static byte[] CRLF = Encoding.
ASCII
.GetBytes("\r\n");
658
internal readonly static byte[] Data = Encoding.
ASCII
.GetBytes("DATA\r\n");
659
internal readonly static byte[] DataStop = Encoding.
ASCII
.GetBytes("\r\n.\r\n");
660
internal readonly static byte[] EHello = Encoding.
ASCII
.GetBytes("EHLO ");
661
internal readonly static byte[] Expand = Encoding.
ASCII
.GetBytes("EXPN ");
662
internal readonly static byte[] Hello = Encoding.
ASCII
.GetBytes("HELO ");
663
internal readonly static byte[] Help = Encoding.
ASCII
.GetBytes("HELP");
664
internal readonly static byte[] Mail = Encoding.
ASCII
.GetBytes("MAIL FROM:");
665
internal readonly static byte[] Noop = Encoding.
ASCII
.GetBytes("NOOP\r\n");
666
internal readonly static byte[] Quit = Encoding.
ASCII
.GetBytes("QUIT\r\n");
667
internal readonly static byte[] Recipient = Encoding.
ASCII
.GetBytes("RCPT TO:");
668
internal readonly static byte[] Reset = Encoding.
ASCII
.GetBytes("RSET\r\n");
669
internal readonly static byte[] Send = Encoding.
ASCII
.GetBytes("SEND FROM:");
670
internal readonly static byte[] SendAndMail= Encoding.
ASCII
.GetBytes("SAML FROM:");
671
internal readonly static byte[] SendOrMail = Encoding.
ASCII
.GetBytes("SOML FROM:");
672
internal readonly static byte[] Turn = Encoding.
ASCII
.GetBytes("TURN\r\n");
673
internal readonly static byte[] Verify = Encoding.
ASCII
.GetBytes("VRFY ");
674
internal readonly static byte[] StartTls = Encoding.
ASCII
.GetBytes("STARTTLS");
net\System\Net\webclient.cs (3)
633
boundaryBytes = Encoding.
ASCII
.GetBytes("\r\n--" + boundary + "--\r\n");
762
byte[] buffer = Encoding.
ASCII
.GetBytes(values.ToString());
1680
return Encoding.
ASCII
.GetString(UrlEncodeToBytes(str, e));
net\System\Net\WebHeaderCollection.cs (1)
1566
GlobalLog.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)
497
Encoding.
ASCII
.GetBytes(objId, 0, objId.Length, szObjId, 0);
security\system\security\cryptography\x509\x509utils.cs (2)
317
Encoding.
ASCII
.GetBytes(s, 0, s.Length, arr, 0);
512
byte[] ansiOid = Encoding.
ASCII
.GetBytes(oidStrs[index]);
sys\system\io\ports\SerialPort.cs (3)
71
private Encoding encoding = System.Text.Encoding.
ASCII
; // ASCII is default encoding for modem communication, etc.
72
private Decoder decoder = System.Text.Encoding.
ASCII
.GetDecoder();
73
private int maxByteCountForSingleChar = System.Text.Encoding.
ASCII
.GetMaxByteCount(1);
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
1026
Encoding.
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)
1023
return Encoding.
ASCII
;
1081
return Encoding.
ASCII
;
System.Data.Services.Client (2)
System\Data\Services\Client\BatchStream.cs (2)
1023
return Encoding.
ASCII
;
1081
return Encoding.
ASCII
;
System.Drawing (2)
commonui\System\Drawing\ImageConverter.cs (2)
216
string strPBrush = System.Text.Encoding.
ASCII
.GetString(rawData, pHeader.headersize + 12, 6);
224
byte[] searchArray = System.Text.Encoding.
ASCII
.GetBytes("BM");
System.IdentityModel (1)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
346
byte[] ansiOid = Encoding.
ASCII
.GetBytes(oidStrs[index]);
System.Runtime.Remoting (18)
channels\core\corechannel.cs (1)
670
String base64String = Encoding.
ASCII
.GetString(byteArray,0, byteArray.Length);
channels\core\socketmanager.cs (1)
609
String str = Encoding.
ASCII
.GetString(strBytes);
channels\http\httpsocketmanager.cs (6)
33
private static byte[] s_httpVersion = Encoding.
ASCII
.GetBytes("HTTP/1.1");
34
private static byte[] s_httpVersionAndSpace = Encoding.
ASCII
.GetBytes("HTTP/1.1 ");
122
byte[] nameBytes = Encoding.
ASCII
.GetBytes(name);
123
byte[] valueBytes = Encoding.
ASCII
.GetBytes(value);
133
byte[] statusCodeBytes = Encoding.
ASCII
.GetBytes(statusCode);
134
byte[] reasonPhraseBytes = Encoding.
ASCII
.GetBytes(reasonPhrase);
channels\http\httpstreams.cs (6)
94
private static byte[] _trailer = Encoding.
ASCII
.GetBytes("0\r\n\r\n"); // 0-length, no trailer, end chunked
95
private static byte[] _endChunk = Encoding.
ASCII
.GetBytes("\r\n");
228
return Encoding.
ASCII
.GetBytes(str);
335
private static byte[] _trailer = Encoding.
ASCII
.GetBytes("0\r\n\r\n\r\n"); // 0-length, null trailer, end chunked
336
private static byte[] _endChunk = Encoding.
ASCII
.GetBytes("\r\n");
493
private static byte[] _bufferhttpContinue = Encoding.
ASCII
.GetBytes("HTTP/1.1 100 Continue\r\n\r\n");
channels\sinks\soapformattersinks.cs (1)
280
sb.Append(Encoding.
ASCII
.GetString(buffer, 0, readCount));
channels\tcp\tcpclientsocketmanager.cs (1)
33
private static byte[] s_endOfLineBytes = Encoding.
ASCII
.GetBytes("\r\n");
channels\tcp\tcpsocketmanager.cs (1)
33
private static byte[] s_protocolPreamble = Encoding.
ASCII
.GetBytes(".NET");
channels\tcp\tcpstreams.cs (1)
233
private static byte[] s_endOfLineBytes = Encoding.
ASCII
.GetBytes("\r\n");
System.Runtime.Serialization (2)
System\Xml\XmlMtomReader.cs (1)
1791
content = new StreamReader(s, System.Text.Encoding.
ASCII
, false, 256).ReadToEnd();
System\Xml\XmlMtomWriter.cs (1)
1014
Encoding.
ASCII
.GetBytes(boundary, 0, boundary.Length, boundaryBytes, MimeGlobals.BoundaryPrefix.Length);
System.Security (9)
system\security\cryptography\pkcs\envelopedpkcs7.cs (5)
709
byte[] objId = Encoding.
ASCII
.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId);
824
byte[] objId = Encoding.
ASCII
.GetBytes(CAPI.szOID_RSA_SMIMEalgESDH);
840
objId = Encoding.
ASCII
.GetBytes(CAPI.szOID_RSA_SMIMEalgCMSRC2wrap);
843
objId = Encoding.
ASCII
.GetBytes(CAPI.szOID_RSA_SMIMEalgCMS3DESwrap);
873
objId = Encoding.
ASCII
.GetBytes(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId);
system\security\cryptography\pkcs\pkcsutils.cs (2)
266
return new Oid(Encoding.
ASCII
.GetString(contentType));
667
Encoding.
ASCII
.GetBytes(attribute.Oid.Value, 0, attribute.Oid.Value.Length, objId, 0);
system\security\cryptography\x509\x509utils.cs (2)
129
Encoding.
ASCII
.GetBytes(s, 0, s.Length, arr, 0);
268
byte[] 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)
70
System.Text.Encoding.
ASCII
.GetChars(bytes, 0, size, buffer, 0);
System.ServiceModel.Internals (2)
System\Runtime\UrlUtility.cs (2)
75
return Encoding.
ASCII
.GetString(UrlEncodeToBytes(str, encoding));
138
return Encoding.
ASCII
.GetString(bytes);
System.Web (9)
HttpRequest.cs (1)
1115
return Encoding.
ASCII
.GetBytes(b.ToCharArray());
HttpResponse.cs (1)
677
byte[] chunkPrefix = Encoding.
ASCII
.GetBytes(Convert.ToString(bufferedLength, 16) + "\r\n");
HttpRuntime.cs (2)
1630
byte[] body = Encoding.
ASCII
.GetBytes("<html><body>Server Too Busy</body></html>");
1653
byte[] body = Encoding.
ASCII
.GetBytes("<html><body>Bad Request</body></html>");
httpserverutility.cs (4)
1346
return Encoding.
ASCII
.GetString(UrlEncodeToBytes(str, e));
1360
return Encoding.
ASCII
.GetString(UrlEncodeToBytes(bytes));
1370
return Encoding.
ASCII
.GetString(UrlEncodeToBytes(bytes, offset, count));
1429
return Encoding.
ASCII
.GetBytes(UrlEncodeUnicode(str));
Util\HttpEncoder.cs (1)
680
return Encoding.
ASCII
.GetString(encodedBytes);