Base:
method
ToString
System.ValueType.ToString()
110 references to ToString
mscorlib (17)
system\globalization\compareinfo.cs (3)
229
return(IsSortable(ch.
ToString
()));
788
return source.IndexOf(value.
ToString
(), startIndex, count, StringComparison.OrdinalIgnoreCase);
994
return source.LastIndexOf(value.
ToString
(), startIndex, count, StringComparison.OrdinalIgnoreCase);
system\globalization\datetimeformat.cs (1)
665
result.Append(FormatCustomized(dateTime, ((char)nextChar).
ToString
(), dtfi, offset));
system\globalization\timespanformat.cs (1)
249
result.Append(TimeSpanFormat.FormatCustomized(value, ((char)nextChar).
ToString
(), dtfi));
system\io\isolatedstorage\isolatedstoragefile.cs (1)
563
if (fullPath.EndsWith(Path.DirectorySeparatorChar.
ToString
(), StringComparison.Ordinal)) {
system\io\longpath.cs (5)
741
if (fullPath.EndsWith(Path.DirectorySeparatorChar.
ToString
(), StringComparison.Ordinal))
962
if (fullPath.EndsWith(Path.DirectorySeparatorChar.
ToString
(), StringComparison.Ordinal)
963
|| fullPath.EndsWith(Path.AltDirectorySeparatorChar.
ToString
(), StringComparison.Ordinal))
970
if (!(fullPath.EndsWith(Path.DirectorySeparatorChar.
ToString
(), StringComparison.Ordinal)
971
|| fullPath.EndsWith(Path.AltDirectorySeparatorChar.
ToString
(), StringComparison.Ordinal)))
system\runtime\remoting\soapinteroptypes.cs (3)
98
stringBuffer.Replace(Char.MinValue.
ToString
(), "�", index, stringBuffer.Length - index);
974
String s = c.
ToString
();
977
s = c.
ToString
();
system\security\securityelement.cs (2)
512
return c.
ToString
();
579
return str[index].
ToString
();
system\stubhelpers.cs (1)
44
int cbLength = managedChar.
ToString
().ConvertToAnsi(bufferPtr, cbAllocLength, fBestFit, fThrowOnUnmappableChar);
PresentationBuildTasks (3)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
274
if (!_outputPath.EndsWith((Path.DirectorySeparatorChar).
ToString
(), StringComparison.Ordinal))
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1067
ThrowException(SRID.ParserMarkupExtensionInvalidClosingBracketCharacers, args[i].
ToString
(), lineNumber, linePosition);
1111
ThrowException(SRID.ParserMarkupExtensionMalformedBracketCharacers, bracketCharacterStack.Peek().
ToString
(), lineNumber, linePosition);
PresentationCore (1)
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (1)
204
return returnValue + _percentCharacter[0].
ToString
();
PresentationFramework (8)
src\Framework\Microsoft\Win32\FileDialog.cs (1)
1446
if (!directory.EndsWith(Path.DirectorySeparatorChar.
ToString
(), StringComparison.Ordinal))
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
123
return match.Value[1].
ToString
();
src\Framework\System\Windows\Controls\AccessText.cs (2)
622
string accessKeyMarker = AccessKeyMarker.
ToString
();
681
string accessKeyMarker = AccessKeyMarker.
ToString
();
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
387
AccessKeyManager.Register(key.
ToString
(), this);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1067
ThrowException(SRID.ParserMarkupExtensionInvalidClosingBracketCharacers, args[i].
ToString
(), lineNumber, linePosition);
1111
ThrowException(SRID.ParserMarkupExtensionMalformedBracketCharacers, bracketCharacterStack.Peek().
ToString
(), lineNumber, linePosition);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1666
r.Append(c.
ToString
().ToLower(CultureInfo.InvariantCulture));
System (43)
compmod\system\componentmodel\MaskedTextProvider.cs (4)
437
locSymbol = ch.
ToString
();
1305
return InsertAt(input.
ToString
(), position);
1318
return InsertAt(input.
ToString
(), position, out testPosition, out resultHint);
1885
return Replace( input.
ToString
(), startPosition, endPosition, out testPosition, out resultHint );
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
398
invalidChar = ch.
ToString
();
regex\system\text\regularexpressions\RegexCharClass.cs (30)
377
tempCategories["Cc"] = groups[1].
ToString
(); // Control
379
tempCategories["Cf"] = groups[2].
ToString
(); // Format
381
tempCategories["Cn"] = groups[3].
ToString
(); // Not assigned
383
tempCategories["Co"] = groups[4].
ToString
(); // Private use
385
tempCategories["Cs"] = groups[5].
ToString
(); // Surrogate
392
tempCategories["Ll"] = groups[1].
ToString
(); // Lowercase
394
tempCategories["Lm"] = groups[2].
ToString
(); // Modifier
396
tempCategories["Lo"] = groups[3].
ToString
(); // Other
398
tempCategories["Lt"] = groups[4].
ToString
(); // Titlecase
400
tempCategories["Lu"] = groups[5].
ToString
(); // Uppercase
412
tempCategories["Mc"] = groups[1].
ToString
(); // Spacing combining
414
tempCategories["Me"] = groups[2].
ToString
(); // Enclosing
416
tempCategories["Mn"] = groups[3].
ToString
(); // Non-spacing
425
tempCategories["Nd"] = groups[1].
ToString
(); // Decimal digit
427
tempCategories["Nl"] = groups[2].
ToString
(); // Letter
429
tempCategories["No"] = groups[3].
ToString
(); // Other
438
tempCategories["Pc"] = groups[1].
ToString
(); // Connector
440
tempCategories["Pd"] = groups[2].
ToString
(); // Dash
442
tempCategories["Pe"] = groups[3].
ToString
(); // Close
444
tempCategories["Po"] = groups[4].
ToString
(); // Other
446
tempCategories["Ps"] = groups[5].
ToString
(); // Open
448
tempCategories["Pf"] = groups[6].
ToString
(); // Inital quote
450
tempCategories["Pi"] = groups[7].
ToString
(); // Final quote
458
tempCategories["Sc"] = groups[1].
ToString
(); // Currency
460
tempCategories["Sk"] = groups[2].
ToString
(); // Modifier
462
tempCategories["Sm"] = groups[3].
ToString
(); // Math
464
tempCategories["So"] = groups[4].
ToString
(); // Other
471
tempCategories["Zl"] = groups[1].
ToString
(); // Line
473
tempCategories["Zp"] = groups[2].
ToString
(); // Paragraph
475
tempCategories["Zs"] = groups[3].
ToString
(); // Space
regex\system\text\regularexpressions\RegexNode.cs (2)
503
prev._str += at._ch.
ToString
();
509
prev._str = at._ch.
ToString
() + prev._str;
regex\system\text\regularexpressions\RegexParser.cs (6)
344
SR.GetString(SR.NestedQuantify, ch.
ToString
()) :
518
throw MakeException(SR.GetString(SR.BadClassInCharRange, ch.
ToString
()));
527
throw MakeException(SR.GetString(SR.BadClassInCharRange, ch.
ToString
()));
536
throw MakeException(SR.GetString(SR.BadClassInCharRange, ch.
ToString
()));
546
throw MakeException(SR.GetString(SR.BadClassInCharRange, ch.
ToString
()));
1415
throw MakeException(SR.GetString(SR.UnrecognizedEscape, ch.
ToString
()));
System.Core (3)
Microsoft\Scripting\Ast\DebugViewWriter.cs (3)
286
Out(open.
ToString
());
298
Out(separator.
ToString
(), Flow.NewLine);
317
Out(close.
ToString
(), Flow.Break);
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
503
sqlVal = new SqlString(((char)comVal).
ToString
());
System.Data.Services (1)
System\Data\Services\Serializers\DataStringEscapeBuilder.cs (1)
83
this.output.Append(Uri.EscapeDataString(current.
ToString
()));
System.Runtime.Serialization (7)
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1602
XmlExceptionHelper.ThrowTokenExpected(this, ((char)characterToSkip).
ToString
(), (char)BufferReader.GetByte());
System\Runtime\Serialization\Json\XmlJsonWriter.cs (2)
498
WriteString(ch.
ToString
());
1252
SR.GetString(SR.JsonOnlyWhitespace, c.
ToString
(), "WriteWhitespace"));
System\Xml\ValueHandle.cs (1)
889
return ((char)ch).
ToString
();
System\Xml\XmlBaseWriter.cs (1)
980
WriteAttributeText(ch.
ToString
());
System\Xml\XmlExceptionHelper.cs (1)
193
ThrowXmlException(reader, SR.XmlTokenExpected, expected, found.
ToString
());
System\Xml\XmlUTF8TextReader.cs (1)
575
XmlExceptionHelper.ThrowTokenExpected(this, ((char)quoteChar).
ToString
(), (char)ch);
System.ServiceModel (1)
System\ServiceModel\Channels\WebSocketHelper.cs (1)
183
invalidChar = ch.
ToString
();
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\ServiceRoute.cs (1)
45
if (routePrefix.EndsWith(PathSeperator.
ToString
(), StringComparison.CurrentCultureIgnoreCase)
System.Web (5)
UI\WebControls\MenuItem.cs (1)
316
_internalValuePath = String.Join(TreeView.InternalPathSeparator.
ToString
(), pathParts.ToArray());
UI\WebControls\TreeNode.cs (2)
358
_internalValuePath = String.Join(TreeView.InternalPathSeparator.
ToString
(), pathParts.ToArray());
662
_valuePath = String.Join(Owner.PathSeparator.
ToString
(), splitValuePath);
UI\WebControls\TreeView.cs (2)
2395
EscapeSequenceForPathSeparator, InternalPathSeparator.
ToString
()).Replace(
2396
EscapeSequenceForEscapeCharacter, EscapeCharacter.
ToString
());
System.Windows.Forms (8)
winforms\Managed\System\WinForms\Control.cs (3)
7704
Debug.WriteLineIf(ControlKeyboardRouting.TraceVerbose, " ...& found... char=" + c1.
ToString
());
10451
Debug.WriteLineIf(ControlKeyboardRouting.TraceVerbose, "Control.ProcessDialogChar [" + charCode.
ToString
() + "]");
16893
Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Mnemonic: " + ch.
ToString
());
winforms\Managed\System\WinForms\NumericUpDown.cs (2)
529
string keyInput = e.KeyChar.
ToString
();
888
Size digitSize = TextRenderer.MeasureText(ch.
ToString
(), this.Font);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
391
if (int.TryParse(versionInfo.ProductVersion[0].
ToString
(), out parsedValue)) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1365
string addString = buttons[x].Text + '\0'.
ToString
();
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4128
return (mnemonic == (char) 0) ? string.Empty : mnemonic.
ToString
();
System.Workflow.Activities (4)
Designers\StateDesigner.cs (4)
2637
if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.
ToString
()) && Path.IsPathRooted(value))
2668
if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.
ToString
()) && Path.IsPathRooted(value))
2735
if (!relativePath.Contains(Path.DirectorySeparatorChar.
ToString
()))
2743
if (path.Contains(Path.DirectorySeparatorChar.
ToString
()) && directory.Length > 0)
System.Workflow.ComponentModel (5)
AuthoringOM\Design\DesignerHelpers.cs (2)
1466
if (!relativePath.Contains(Path.DirectorySeparatorChar.
ToString
()))
1474
if (path.Contains(Path.DirectorySeparatorChar.
ToString
()) && directory.Length > 0)
AuthoringOM\Design\Themes.cs (3)
1074
if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.
ToString
()) && Path.IsPathRooted(value))
1502
if (!String.IsNullOrEmpty(value) && value.Contains(Path.DirectorySeparatorChar.
ToString
()) && Path.IsPathRooted(value))
2553
if (!String.IsNullOrEmpty(value) && value.Contains(Path.DirectorySeparatorChar.
ToString
()) && Path.IsPathRooted(value))
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1576
return s[iPosShortCut + 1].
ToString
();
WindowsBase (1)
Base\System\IO\Packaging\PackUriHelper.cs (1)
762
characterString = c.
ToString
();