Base:
method
ToString
System.ValueType.ToString()
228 references to ToString
Aspire.Dashboard (1)
Extensions\StringExtensions.cs (1)
55return s[0].ToString().ToUpperInvariant();
ClientSample (1)
UploadSample.cs (1)
49await channel.Writer.WriteAsync(c.ToString());
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
193if (!directoryArgValue.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)) 231string invalidCharacter = value[invalidCharacterIndex].ToString();
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
66if (!directory.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
dotnet-svcutil-lib (11)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (3)
43return char.ToUpperInvariant(identifier[0]).ToString() + identifier.Substring(1); 58return char.ToLowerInvariant(identifier[0]).ToString() + identifier.Substring(1); 105if (Decimal.TryParse(c.ToString(), out d))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
698return value.ToString();
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (1)
227aStringList[0] = invChar.ToString();
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
839return ((char)ch).ToString();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (1)
1093WriteAttributeText(ch.ToString());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (1)
184ThrowXmlException(reader, SRSerialization.XmlTokenExpected, expected, found.ToString());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
834XmlExceptionHelper.ThrowTokenExpected(this, ((char)quoteChar).ToString(), (char)ch);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
96invalidChar = ch.ToString();
OutputPathHelper.cs (1)
55if (!directory.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
HttpStress (1)
Program.cs (1)
432await context.Response.WriteAsync(contentSource[i].ToString());
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
230await connection.Send(c.ToString()); 243await connection.Receive(c.ToString());
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
230await connection.Send(c.ToString()); 243await connection.Receive(c.ToString());
InMemory.FunctionalTests (1)
RequestHeadersTimeoutTests.cs (1)
136await connection.Send(ch.ToString());
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualChar.cs (1)
140=> SurrogateChar != 0 ? SurrogateChar.ToString() : Rune.ToString();
Microsoft.AspNetCore.Components.Forms.Tests (1)
ReverseStringBuilderTest.cs (1)
152builder.InsertFront(c.ToString());
Microsoft.AspNetCore.DataProtection (2)
Internal\HostingApplicationDiscriminator.cs (2)
14private readonly string DirectorySeparator = Path.DirectorySeparatorChar.ToString(); 15private readonly string AltDirectorySeparator = Path.AltDirectorySeparatorChar.ToString();
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1754(() => Results.File(Path.Join(Path.DirectorySeparatorChar.ToString(), "rooted", "path"), null, null, null, null, false), typeof(PhysicalFileHttpResult)),
Microsoft.AspNetCore.Http.Tests (1)
RequestCookiesCollectionTests.cs (1)
71Assert.Equal(c.ToString(), cookies.Single().Value);
Microsoft.AspNetCore.HttpOverrides.Tests (2)
ForwardedHeadersMiddlewareTest.cs (2)
412data.Add(ch.ToString()); 708data.Add(ch.ToString());
Microsoft.AspNetCore.Mvc.TagHelpers (2)
TagHelperOutputExtensions.cs (2)
149var encodedSpaceChars = SpaceChars.Where(x => !x.Equals('\u0020')).Select(x => htmlEncoder.Encode(x.ToString())).ToArray(); 203var encodedSpaceChars = SpaceChars.Where(x => !x.Equals('\u0020')).Select(x => htmlEncoder.Encode(x.ToString())).ToArray();
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Buffers\ViewBufferTextWriter.cs (3)
77Buffer.AppendHtml(value.ToString()); 180Buffer.AppendHtml(value.ToString()); 221Buffer.AppendHtml(value.ToString());
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheEntryFormatterTests.cs (1)
121_ => throw new ArgumentOutOfRangeException(nameof(value), "token is not hex: " + value.ToString())
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\HttpUtilities.cs (1)
184sb.Append(ch < 0x20 || ch >= 0x7F ? $"\\x{ch:X2}" : ((char)ch).ToString());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HttpUtilitiesTest.cs (1)
206data.Add(ch.ToString());
Microsoft.Build (9)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (2)
253sb.Append(Regex.Escape(lexer.EatCurrentCharacter().ToString())); 363sb.Append(Regex.Escape(currentChar.ToString()));
Construction\Solution\SolutionProjectGenerator.cs (1)
2275if (!directoryName.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
Evaluation\Expander.cs (1)
4947arg1 = ch.ToString();
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
FrameworkLocationHelper.cs (3)
557Path.DirectorySeparatorChar.ToString(), 1010var endedWithASlash = path.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal) 1012Path.AltDirectorySeparatorChar.ToString(),
Graph\GraphBuilder.cs (1)
296if (!solutionDirectoryName.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
Microsoft.Build.Engine.OM.UnitTests (1)
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
Microsoft.Build.Engine.UnitTests (13)
BackEnd\TaskBuilder_Tests.cs (1)
456string slashAndBracket = Path.DirectorySeparatorChar.ToString() + "]";
Definition\ToolsVersion_Tests.cs (1)
964string pathWithoutTrailingSlash = path.EndsWith(Path.DirectorySeparatorChar.ToString())
Evaluation\Expander_Tests.cs (2)
41private static readonly string s_rootPathPrefix = NativeMethodsShared.IsWindows ? "C:\\" : Path.VolumeSeparatorChar.ToString(); 2154Assert.Equal(Path.Combine(Path.DirectorySeparatorChar.ToString(), "my", "project", "is", "here.proj"), result);
FileMatcher_Tests.cs (6)
2229normalized = path.Replace("\\", Path.DirectorySeparatorChar.ToString()); 2241string doubleSeparator = Path.DirectorySeparatorChar.ToString() + Path.DirectorySeparatorChar.ToString(); 2242normalized = normalized.Replace(doubleSeparator, Path.DirectorySeparatorChar.ToString()); 2243normalized = normalized.Replace(doubleSeparator, Path.DirectorySeparatorChar.ToString()); 2244normalized = normalized.Replace(doubleSeparator, Path.DirectorySeparatorChar.ToString());
Globbing\MSBuildGlob_Tests.cs (3)
75Assert.Throws<ArgumentException>(() => MSBuildGlob.Parse(invalidPathChar.ToString(), "*")); 187Assert.False(glob.IsMatch(invalidPathChar.ToString())); 197Assert.False(glob.IsMatch(invalidFileChar.ToString()));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
797var intermediatePath = intermediatePathDir + Path.DirectorySeparatorChar.ToString();
Microsoft.Build.Tasks.Core (1)
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
190protected static readonly string s_rootPathPrefix = NativeMethodsShared.IsWindows ? "C:\\" : Path.VolumeSeparatorChar.ToString();
Microsoft.Build.Utilities.Core (6)
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
FrameworkLocationHelper.cs (3)
557Path.DirectorySeparatorChar.ToString(), 1010var endedWithASlash = path.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal) 1012Path.AltDirectorySeparatorChar.ToString(),
ToolLocationHelper.cs (1)
2252Path.DirectorySeparatorChar.ToString(),
TrackedDependencies\FileTracker.cs (1)
121private static readonly string pathSeparator = Path.PathSeparator.ToString();
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
370return c.ToString();
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (2)
245sb.Append(Regex.Escape(lexer.EatCurrentCharacter().ToString())); 355sb.Append(Regex.Escape(currentChar.ToString()));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
119=> SurrogateChar != 0 ? SurrogateChar.ToString() : Rune.ToString();
Microsoft.CodeAnalysis.CSharp (8)
Parser\Lexer.cs (4)
2258return SyntaxFactory.EndOfLine(ch.ToString()); 3037errorArgs = new[] { ch.ToString() }; 3052errorArgs = new[] { ch.ToString() }; 3533info.Text = info.StringValue = TextWindow.NextChar().ToString();
Parser\Lexer_StringLiteral.cs (2)
1022TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString())); 1054TrySetError(_lexer.MakeError(_lexer.TextWindow.Position, 1, ErrorCode.ERR_SyntaxError, endingChar.ToString()));
Utilities\ValueSetFactory.EnumeratedValueSet.cs (2)
61if (this.Any(BinaryOperatorKind.Equal, (T)(object)c.ToString())) 62return _tc.ToConstantValue((T)(object)c.ToString());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (1)
53=> SendTypeChar(ch, _commandHandler.ExecuteCommand, () => EditorOperations.InsertText(ch.ToString()));
EventHookup\EventHookupTestState.cs (1)
94SendTypeChar(ch, _commandHandler.ExecuteCommand, () => EditorOperations.InsertText(ch.ToString()));
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (1)
76=> SendTypeChar(ch, _commandHandler.ExecuteCommand, () => EditorOperations.InsertText(ch.ToString()));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
29032var name = ((char)('a' + i)).ToString();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PatternMatchingTests3.cs (2)
7270.Aggregate("", (s, c) => s + $"{ObjectDisplay.FormatPrimitive(c.ToString(), ObjectDisplayOptions.EscapeNonPrintableCharacters | ObjectDisplayOptions.UseQuotes)} => 0, ")} 7291.Aggregate("", (s, c) => s + $"{ObjectDisplay.FormatPrimitive(c.ToString(), ObjectDisplayOptions.EscapeNonPrintableCharacters | ObjectDisplayOptions.UseQuotes)} => 0, ")}
Microsoft.CodeAnalysis.CSharp.Features (1)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
194=> char.ToLower(correspondingPropertyName[0]).ToString() + correspondingPropertyName[1..];
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\ReferenceManagerTests.cs (1)
846return newParts.Join(Path.DirectorySeparatorChar.ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
IncrementalParsing\IncrementalParsingTests.cs (4)
1188syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 1208syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 1227syntaxTree = syntaxTree.WithInsertBefore("} // Point", c.ToString()); 3727var newText = oldText.WithChanges(new TextChange(new TextSpan(oldText.Length, 0), newChar.ToString()));
LexicalAndXml\RawStringLiteralLexingTests.cs (2)
250"\"\"\"" + charValue + "\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, charValue.ToString(), testOutput: false); 263"\"\"\"\r\n" + charValue + "\r\n\"\"\"", SyntaxKind.MultiLineRawStringLiteralToken, charValue.ToString(), testOutput: false);
Syntax\SyntaxListTests.cs (1)
305string expectedArgName = ((char)('a' + (position / 2))).ToString();
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\FilterSet.cs (1)
128accessKey.ToString(),
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
423!string.Equals(_filterText, typedChar.ToString(), StringComparison.OrdinalIgnoreCase) &&
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
AbstractCommandHandlerTestState.cs (1)
339SendTypeChar(ch, commandHandler, () => EditorOperations.InsertText(localCh.ToString()));
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
25Type(session, session.OpeningBrace.ToString());
CompleteStatement\AbstractCompleteStatementTests.cs (1)
81var nextHandler = CreateInsertTextHandler(view, Semicolon.ToString());
Completion\AbstractCompletionProviderTests.cs (1)
618var textChange = new TextChange(new TextSpan(firstItem.Span.End, 0), commitChar.ToString());
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
39var nextHandler = CreateInsertTextHandler(view, DocumentationCommentCharacter.ToString());
DocumentationComments\AbstractXmlTagCompletionTests.cs (1)
37var nextHandler = CreateInsertTextHandler(view, typeChar.ToString());
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
284item.CommitCharacters = commitCharacters.Value.Select(c => c.ToString()).ToArray();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestState.vb (1)
622ExecuteTypeCharCommand(New TypeCharCommandArgs(view, buffer, localCh), Sub() EditorOperations.InsertText(localCh.ToString()), TestCommandExecutionContext.Create())
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
2890state.SendTypeChars(c.ToString())
Microsoft.CodeAnalysis.Features (5)
BraceCompletion\AbstractBraceCompletionService.cs (1)
64var braceTextEdit = new TextChange(TextSpan.FromBounds(closingPoint, closingPoint), ClosingBrace.ToString());
EncapsulateField\AbstractEncapsulateFieldService.cs (1)
431return firstCharacter.ToString() + baseName[1..];
ExtractMethod\MethodExtractor.cs (1)
303: prefix + char.ToUpper(name[0]).ToString() + name[1..];
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
139return "'" + c.ToString();
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
29private static readonly string PathSeparatorString = Path.DirectorySeparatorChar.ToString();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionFeaturesTests.cs (3)
414var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 462var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 805var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray();
Microsoft.CodeAnalysis.UnitTests (7)
InternalUtilities\JsonWriterTests.cs (1)
74WriteInMultiplePositionsAndCheck(expected, value.ToString());
MetadataReferences\AssemblyIdentityTests.cs (2)
340ai = new AssemblyIdentity(c.ToString()); 343Assert.Equal(c.ToString(), an.Name);
MetadataReferences\FusionAssemblyIdentityTests.cs (2)
221nameObject = FusionAssemblyIdentity.ToAssemblyNameObject(new AssemblyName { Name = c.ToString() }); 223Assert.Equal(c.ToString(), name.Name);
Text\TextChangeTests.cs (2)
356text = text.Replace(50 + i, 0, c.ToString()); 376text = text.Replace(i, 1, c.ToString());
Microsoft.CodeAnalysis.VisualBasic (1)
SymbolDisplay\ObjectDisplay.vb (1)
150c.ToString())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
362Dim pieces = StringPiece.Split(c.ToString())
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (1)
src\Compilers\VisualBasic\Portable\SymbolDisplay\ObjectDisplay.vb (1)
150c.ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
362Dim pieces = StringPiece.Split(c.ToString())
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
119=> SurrogateChar != 0 ? SurrogateChar.ToString() : Rune.ToString();
Workspace\ProjectSystem\IFileChangeWatcher.cs (1)
33if (!path.EndsWith(System.IO.Path.DirectorySeparatorChar.ToString()))
Microsoft.Data.Analysis (3)
DataFrame.IO.cs (3)
377parser.SetDelimiters(separator.ToString()); 456parser.SetDelimiters(separator.ToString()); 661if (cultureInfo.NumberFormat.NumberDecimalSeparator.Equals(separator.ToString()))
Microsoft.DotNet.SignTool (1)
src\SignToolTask.cs (1)
348return string.Join(Path.DirectorySeparatorChar.ToString(), result);
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
37builder.Add(Key, string.Join(Delimiter.ToString(), missingMemberNames));
Microsoft.ML.CodeGenerator (4)
Templates\Azure\Console\AzureModelBuilder.cs (1)
59this.Write(this.ToStringHelper.ToStringWithCulture(Regex.Escape(Separator.ToString())));
Templates\Console\ModelBuilder.cs (2)
65this.Write(this.ToStringHelper.ToStringWithCulture(Regex.Escape(Separator.ToString()))); 77this.Write(this.ToStringHelper.ToStringWithCulture(Regex.Escape(Separator.ToString())));
Utils.cs (1)
146return sanitizedInput.First().ToString().ToUpper() + sanitizedInput.Substring(1);
Microsoft.ML.Data (6)
DataLoadSave\Text\TextLoader.cs (2)
468internal string Separator = Defaults.Separator.ToString(); 1215separators.Add(NormalizeSeparator(c.ToString()));
DataLoadSave\Text\TextLoaderSaverCatalog.cs (1)
299var saver = new TextSaver(env, new TextSaver.Arguments { Dense = forceDense, Separator = separatorChar.ToString(), OutputHeader = headerRow, OutputSchema = schema });
DataLoadSave\Text\TextSaver.cs (3)
37public string Separator = Defaults.Separator.ToString(); 273_sepStr = _sepChar.ToString(); 322return separator.ToString();
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
712truncPath = String.Join(Path.DirectorySeparatorChar.ToString(), segments);
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
644Assert.Equal(name.ToString(), schema[i].Name);
Microsoft.ML.Tokenizers (3)
Model\BPETokenizer.cs (1)
859string s = c.ToString();
Model\CodeGenTokenizer.cs (1)
1627string tokenValue = (uint)c < charToString.Length ? charToString[c] : c.ToString();
Utils\ByteToUnicodeEncoding.cs (1)
43CharToString[c] = c.ToString();
Microsoft.ML.Tokenizers.Tests (1)
TokenizerTests.cs (1)
115tokens.Add(new EncodedToken(c - 'a', c.ToString(), new Range(count, count + 1)));
Microsoft.ML.Transforms (2)
Text\TokenizingByCharacters.cs (1)
260IEnumerable<string> charStrings = Enumerable.Range(0, 65535).Select(x => ((char)x).ToString());
Text\WordTokenizing.cs (1)
415string[] separators = column.SeparatorsArray.Select(c => c.ToString()).ToArray();
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2161Return Value.ToString()
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
36Return Value.ToString()
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageClient\XamlCapabilities.cs (1)
23AllCommitCharacters = RoslynCompletion.CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray()
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
142var commitCharacters = xamlCommitCharacters.Characters.Select(c => new VSInternalCommitCharacter { Character = c.ToString(), Insert = !xamlCommitCharacters.NonInsertCharacters.Contains(c) }).ToImmutableArray();
MSBuild (2)
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
XMake.cs (1)
3717CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
MSBuildTaskHost (1)
FileUtilities.cs (1)
118internal static readonly string DirectorySeparatorString = Path.DirectorySeparatorChar.ToString();
PresentationBuildTasks (10)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
268if (!_outputPath.EndsWith((Path.DirectorySeparatorChar).ToString(), StringComparison.Ordinal))
MS\Internal\MarkupCompiler\PathInternal.cs (1)
88if (relativeToLength == pathLength && commonLength >= relativeToLength) return CurrentDir.ToString();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1052ThrowException(nameof(SR.ParserMarkupExtensionInvalidClosingBracketCharacers), args[i].ToString(), lineNumber, linePosition); 1096ThrowException(nameof(SR.ParserMarkupExtensionMalformedBracketCharacers), bracketCharacterStack.Peek().ToString(), lineNumber, linePosition);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (6)
96return _startChars.Contains(ch.ToString()) || _endChars.Contains(ch.ToString()); 101return _startChars.Contains(ch.ToString()); 106return _endChars.Contains(ch.ToString()); 111return _endChars.IndexOf(end.ToString(), StringComparison.Ordinal) == _startChars.IndexOf(start.ToString(), StringComparison.Ordinal);
PresentationCore (1)
MS\Internal\TextFormatting\NumberSubstitution.cs (1)
500digits[i] = ((char)(firstDigit + i)).ToString();
PresentationFramework (12)
MS\Internal\Globalization\BamlResourceContent.cs (1)
119return match.Value[1].ToString();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (6)
96return _startChars.Contains(ch.ToString()) || _endChars.Contains(ch.ToString()); 101return _startChars.Contains(ch.ToString()); 106return _endChars.Contains(ch.ToString()); 111return _endChars.IndexOf(end.ToString(), StringComparison.Ordinal) == _startChars.IndexOf(start.ToString(), StringComparison.Ordinal);
System\Windows\Controls\AccessText.cs (2)
621string accessKeyMarker = AccessKeyMarker.ToString(); 680string accessKeyMarker = AccessKeyMarker.ToString();
System\Windows\Interop\ActiveXHost.cs (1)
357AccessKeyManager.Register(key.ToString(), this);
System\Windows\Markup\MarkupExtensionParser.cs (2)
1052ThrowException(nameof(SR.ParserMarkupExtensionInvalidClosingBracketCharacers), args[i].ToString(), lineNumber, linePosition); 1096ThrowException(nameof(SR.ParserMarkupExtensionMalformedBracketCharacers), bracketCharacterStack.Peek().ToString(), lineNumber, linePosition);
System.ComponentModel.TypeConverter (4)
System\ComponentModel\MaskedTextProvider.cs (4)
414locSymbol = ch.ToString(); 1207return InsertAt(input.ToString(), position); 1220return InsertAt(input.ToString(), position, out testPosition, out resultHint); 1752return Replace(input.ToString(), startPosition, endPosition, out testPosition, out resultHint);
System.IO.Packaging (1)
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (1)
294path = path.Replace(c.ToString(), Uri.HexEscape(c));
System.Linq.Expressions (3)
System\Linq\Expressions\DebugViewWriter.cs (3)
252Out(open.ToString()); 270Out(separator.ToString(), Flow.NewLine); 289Out(close.ToString(), Flow.Break);
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
50? invalidChar.ToString() // ASCII separator
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
50? invalidChar.ToString() // ASCII separator
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
50? invalidChar.ToString() // ASCII separator
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
1901return value.ToString();
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
318return c.ToString();
src\System\StubHelpers.cs (1)
36int cbLength = Marshal.StringToAnsiString(managedChar.ToString(), bufferPtr, cbAllocLength, fBestFit, fThrowOnUnmappableChar);
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1522XmlExceptionHelper.ThrowTokenExpected(this, ((char)characterToSkip).ToString(), (char)BufferReader.GetByte());
System\Runtime\Serialization\Json\XmlJsonWriter.cs (2)
395WriteString(ch.ToString()); 1061throw new ArgumentException(SR.Format(SR.JsonOnlyWhitespace, ws[pos].ToString(), "WriteWhitespace"), nameof(ws));
System\Xml\ValueHandle.cs (1)
871return ((char)ch).ToString();
System\Xml\XmlBaseWriter.cs (1)
1109WriteAttributeText(ch.ToString());
System\Xml\XmlExceptionHelper.cs (1)
212ThrowXmlException(reader, SR.XmlTokenExpected, expected, found.ToString());
System\Xml\XmlUTF8TextReader.cs (1)
813XmlExceptionHelper.ThrowTokenExpected(this, ((char)quoteChar).ToString(), (char)ch);
System.Private.Xml (2)
System\Xml\XmlConvert.cs (1)
611return value.ToString();
System\Xml\XmlException.cs (1)
254aStringList[0] = invChar.ToString();
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\PathUtilities.cs (1)
20(Array.IndexOf(Path.GetInvalidFileNameChars(), '*') >= 0 ? DirectorySeparatorChar : AltDirectorySeparatorChar).ToString();
System.Text.Json (1)
System\Text\Json\ThrowHelper.cs (1)
371return IsPrintable(value) ? ((char)value).ToString() : $"0x{value:X2}";
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexCharClass.cs (1)
2022>= ' ' and <= '~' => ch.ToString(),
System\Text\RegularExpressions\RegexNode.cs (1)
1595prev.Str = prev.Ch.ToString();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (2)
104possibleEndings.Add(ChooseChar(random, asciiWordCharacters, ascii, charSetSolver).ToString()); 110possibleEndings.Add(ChooseChar(random, asciiNonWordCharacters, ascii, charSetSolver).ToString());
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
53if (whitespaceRegex.IsMatch(ch.ToString()))
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
2022>= ' ' and <= '~' => ch.ToString(),
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
1595prev.Str = prev.Ch.ToString();
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
80return mnemonic == '\0' ? string.Empty : mnemonic.ToString();
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
459string keyInput = e.KeyChar.ToString();
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeConverterHelper.cs (1)
55output[i] = (T)converter.ConvertFromString(context, culture, text[tokens[i]].ToString())!;
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (6)
96return _startChars.Contains(ch.ToString()) || _endChars.Contains(ch.ToString()); 101return _startChars.Contains(ch.ToString()); 106return _endChars.Contains(ch.ToString()); 111return _endChars.IndexOf(end.ToString(), StringComparison.Ordinal) == _startChars.IndexOf(start.ToString(), StringComparison.Ordinal);
System\Xaml\Parser\MeScanner.cs (2)
395throw new XamlParseException(this, SR.Format(SR.InvalidClosingBracketCharacers, ch.ToString())); 489throw new XamlParseException(this, SR.Format(SR.MalformedBracketCharacters, ch.ToString()));
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
1564return s[iPosShortCut + 1].ToString();
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
492string upperKey = Char.ToUpper(charCode, CultureInfo.CurrentCulture).ToString();
xunit.console (1)
common\Json.cs (1)
102_token.Value = ((char)first).ToString();