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