17 writes to Chars
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (1)
466sb[idx] = (char)(digit + '0');
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
567builder[i] = '_';
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1901stringBuilder[i] = ch;
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
1656sb[i] = Path.DirectorySeparatorChar;
Microsoft.CodeAnalysis (1)
CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishBuildToMaestro.cs (1)
603builder[index] = '/';
PresentationCore (1)
System\Windows\Media\mediaeventshelper.cs (1)
396stringBuilder[i] = (char)reader.ReadUInt16();
System.ComponentModel.TypeConverter (3)
System\ComponentModel\MaskedTextProvider.cs (3)
718_testString[position] = _promptChar; 1938_testString[testPosition] = _promptChar; 2071_testString[position] = input;
System.Private.Xml (4)
System\Xml\Xsl\QIL\QilXmlWriter.cs (4)
383_name[_len] = _start; 386_name[i] = _start; 394_name[i]++; 397_name[_len] = ++c;
xunit.console (1)
common\Json.cs (1)
326_codePointBuffer[i] = (char)next;
100 references to Chars
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
184public override char this[int position] => _builder[position];
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (2)
481if (sb[sb.Length - 1] == 'P') 487if (sb[sb.Length - 1] == 'P')
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
1451if (builder[builder.Length - 1] == '.') 1479|| (builder.Length > 1 && builder[builder.Length - 1] != '.')))
InteractiveHost.UnitTests (1)
SynchronizedTextWriter.cs (1)
57while (j < mark.Length && builder[i + j] == mark[j])
Microsoft.AspNetCore.InternalTesting (1)
TestFileOutputContext.cs (1)
131if (sb.Length > 0 && sb[sb.Length - 1] != '_')
Microsoft.AspNetCore.Routing (1)
UriBuildingContext.cs (1)
253if (AppendTrailingSlash && _path[_path.Length - 1] != '/')
Microsoft.Build (1)
Construction\Solution\SolutionProjectGenerator.cs (1)
565if (!XmlUtilities.IsValidSubsequentElementNameCharacter(builder[i]))
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
145if (quoteCount == 2 && builder[0] == '"' && builder[builder.Length - 1] == '"')
Microsoft.Build.Tasks.Core (3)
CreateManifestResourceName.cs (1)
367if ((builder.Length - length) == 1 && builder[length] == '_')
GenerateResource.cs (1)
3633if (name[name.Length - 1] == ' ')
ManifestUtil\Util.cs (1)
97if (sb[i] < ' ')
Microsoft.Build.Utilities.Core (3)
CommandLineBuilder.cs (1)
222else if (CommandLine[CommandLine.Length - 1] != ' ')
ToolTask.cs (2)
1654if (sb[i] == '\\' && (i == length - 1 || sb[i + 1] != '"'))
Microsoft.CodeAnalysis (7)
CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
InternalUtilities\CommandLineUtilities.cs (1)
145if (quoteCount == 2 && builder[0] == '"' && builder[builder.Length - 1] == '"')
Syntax\SyntaxDiffer.cs (4)
800if (oldText[commonLeadingCount] != newText[commonLeadingCount]) 812if (oldText[oldText.Length - commonTrailingCount - 1] != newText[newText.Length - commonTrailingCount - 1])
Text\StringBuilderText.cs (1)
70return _builder[position];
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
348hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
715if (array[i] != text[i])
Microsoft.CodeAnalysis.CSharp (4)
Parser\Lexer_RawStringLiteral.cs (4)
398var currentLineChar = currentLineWhitespace[i]; 399var indentationLineChar = indentationLineWhitespace[i]; 437if (sb[i] != value[i])
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
348hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (1)
398builder[i] = ToLower(builder[i]);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
145if (quoteCount == 2 && builder[0] == '"' && builder[builder.Length - 1] == '"')
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
348hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
715if (array[i] != text[i])
Microsoft.Extensions.FileProviders.Embedded (1)
EmbeddedFileProvider.cs (1)
272if ((builder.Length - length) == 1 && builder[length] == '_')
Microsoft.Extensions.Telemetry (1)
Http\HttpRouteFormatter.cs (1)
165if (formattedHttpPath[index] == ForwardSlashSymbol)
Microsoft.Maui.Controls (1)
Shapes\PathFigureCollectionConverter.cs (1)
668 if (sb[sb.Length - 1] == ' ')
Microsoft.Maui.Controls.Xaml (1)
MarkupExpressionParser.cs (1)
228 while (piece.Length > 0 && char.IsWhiteSpace(piece[piece.Length - 1]))
Microsoft.ML.Core (7)
CommandLine\CmdLexer.cs (4)
335if (sb[ich] == '{') 357if (sb[ichSrc] != sb[ichSrc + cch]) 453if (sb[ichDst + ichSrc] != str[ichSrc])
Utilities\Hashing.cs (2)
293uint ch = toUpper ? char.ToUpperInvariant(data[ich]) : data[ich];
Utilities\NormStr.cs (1)
190if (value.Span[ich] != sb[ich])
Microsoft.ML.Data (1)
DataLoadSave\Text\TextSaver.cs (1)
639if (sb[ich] != def[ich])
Microsoft.ML.Transforms (1)
Expression\Lexer.cs (1)
349u = checked(u * 10 + (ulong)LexCharUtils.GetDecVal(_sb[ich]));
Microsoft.NET.StringTools.net35 (4)
InternableString.Simple.cs (3)
60public readonly char Current => (_string._builder == null ? _string.FirstString[_charIndex] : _string._builder[_charIndex]); 152if (other[i] != _builder[i]) 218hash = HashOneCharacter(hash, _builder[i], isOddIndex);
SpanBasedStringBuilder.Simple.cs (1)
38public readonly char Current => _builder[_charIndex];
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
173sb.Chars(iIndex) = chPeriod ' change decimal separator to "."
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1185while(Char.IsWhiteSpace(sb[i]))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
1266if (!IsWhiteSpace(textValueStringBuilder[i])) 1283char lastChar = textValueStringBuilder[textValueStringBuilder.Length - 1];
PresentationCore (1)
System\Windows\Media\GlyphsSerializer.cs (1)
143if (sb[trailingCharIndex] != trailingCharacter)
PresentationFramework (3)
System\Windows\Documents\RtfToXamlReader.cs (2)
8447if (sb[uriIndex] == '\\' && uriIndex + 1 < sb.Length && sb[uriIndex + 1] == '\\')
System\Windows\Markup\MarkupExtensionParser.cs (1)
1185while(Char.IsWhiteSpace(sb[i]))
ReachFramework (2)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (2)
44if (resString[i] == '&') 46char next = resString[i + 1];
System.ComponentModel.TypeConverter (13)
System\ComponentModel\MaskedTextProvider.cs (13)
496clonedProvider.Replace(_testString[position], position); 797return _testString[index]; 1315if (!TestChar(_testString[srcPos], dstPos, out tempHint)) 1353SetChar(_testString[srcPos], dstPos); 1591char srcCh = _testString[srcPos]; 1631char srcCh = _testString[srcPos]; 1888if (!TestChar(_testString[srcPos], dstPos, out tempHint)) 1914SetChar(_testString[srcPos], dstPos); 2178if (SkipLiterals && (input == _testString[position])) 2330if (input == _testString[position] && charDex.IsAssigned) // setting char would not make any difference 2358return SkipLiterals && input == _testString[position]; 2494st.Append(IsEditPosition(chDex) && chDex.IsAssigned ? _passwordChar : _testString[position]); 2624char ch = _testString[index];
System.Data.Common (4)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
159while ((0 < count) && char.IsWhiteSpace(buffer[count - 1])) 172while ((index < count) && char.IsWhiteSpace(buffer[index])) 176while ((0 < count) && char.IsWhiteSpace(buffer[count - 1]))
System\Data\Common\DbConnectionOptions.cs (1)
69if ((0 < builder.Length) && (';' != builder[builder.Length - 1]))
System.Data.Odbc (4)
Common\System\Data\Common\DbConnectionOptions.cs (1)
131if ((0 < builder.Length) && (';' != builder[builder.Length - 1]))
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
159while ((0 < count) && char.IsWhiteSpace(buffer[count - 1])) 172while ((index < count) && char.IsWhiteSpace(buffer[index])) 176while ((0 < count) && char.IsWhiteSpace(buffer[count - 1]))
System.Diagnostics.Process (3)
System\Diagnostics\AsyncStreamReader.cs (3)
166char ch = _sb[currentIndex]; 174if ((ch == '\r') && (lineStart < len) && (_sb[lineStart] == '\n')) 187if ((len > 0) && _sb[len - 1] == '\r')
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
972char c = builder[builder.Length - 1];
System.IO.Ports (1)
System\IO\Ports\SerialPort.cs (1)
1115if (value[value.Length - i] != currentLine[currentLine.Length - i])
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
700if (afterLength == (1 + beforeLength) && sb[beforeLength] == '=')
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfo.cs (2)
63int c = (int)s[index]; 69int temp2 = (int)s[index + 1] - LOW_SURROGATE_START; // temp2 = 000000xxxxxxxxxx
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (2)
736if (char.IsSurrogate(output[iUseInsertLocation])) 772if (char.IsLowSurrogate(output[iTest]))
System.Private.Xml (2)
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
380char c = _name[_len]; 385for (; i-- > _zero && _name[i] == _end;)
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
1543if (builder[builder.Length - 1] == '.') 1571|| (builder.Length > 1 && builder[builder.Length - 1] != '.')))
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\Utils.cs (1)
164if (sb[i] == oldChar)
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\DateTimeHelper.cs (1)
81for (timeZoneStartIndex = dateTimeStringBuilder.Length - 1; dateTimeStringBuilder[timeZoneStartIndex] != ' '; timeZoneStartIndex--)
System.Xaml (1)
System\Xaml\Parser\XamlText.cs (1)
134if (IsWhitespaceChar(_sb[_sb.Length-1]))