106 references to IsDigit
Aspire.Hosting.Analyzers (1)
src\Aspire.Hosting\ApplicationModel\ModelName.cs (1)
103return IsAsciiLetter(c) || char.IsDigit(c);
dotnet-svcutil-lib (1)
CodeDomFixup\CodeDomHelpers.cs (1)
237if (char.IsDigit(builder[0]))
illink (3)
Infrastructure.Common (1)
FrameworkHelper.cs (1)
90&& Char.IsDigit(frameworkName[5]))
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualChar.cs (1)
95=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(Rune);
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
75if (char.IsDigit(assemblyNameOrDotNetObjectId[0]))
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
646else if (char.IsDigit(input[i]))
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
646else if (char.IsDigit(input[i]))
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Validation\ValidatableTypeInfoTests.cs (1)
718var hasDigit = password.Any(c => char.IsDigit(c));
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
80else if (char.IsDigit(key[indexOpen + 1]))
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
167if (char.IsDigit(buffer[c]) && c < buffer.Length / 2)
Microsoft.Build (5)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
579else if (char.IsDigit(currentChar))
Evaluation\Conditionals\CharacterUtilities.cs (3)
12return candidate == '+' || candidate == '-' || candidate == '.' || char.IsDigit(candidate); 22return IsSimpleStringStart(candidate) || char.IsDigit(candidate); 27return char.IsDigit(candidate) || ((uint)((candidate | 0x20) - 'a') <= 'f' - 'a');
Evaluation\Conditionals\Scanner.cs (1)
775while (_parsePoint < _expression.Length && char.IsDigit(_expression[_parsePoint]))
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
574else if (char.IsDigit(currentChar))
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
DocumentationCommentId.cs (3)
1087if (char.IsDigit(PeekNextChar(id, index))) 1096if (char.IsDigit(PeekNextChar(id, index))) 1556while (index < id.Length && char.IsDigit(id[index]))
VersionHelper.cs (1)
112if (!char.IsDigit(elements[i][idx]))
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
1303if (!ruleId[2..].All(char.IsDigit))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (1)
358bool isDigit = char.IsDigit(ch);
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\DocumentationCommentIdParser.cs (1)
105while (index < id.Length && char.IsDigit(id[index]))
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
DocumentationCommentIdParser.cs (1)
105while (index < id.Length && char.IsDigit(id[index]))
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.CodeAnalysis.CodeStyle (7)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.Lexer.cs (1)
157else if (char.IsDigit(currentChar))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
90=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(Rune);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
361if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
71else if (char.IsDigit(firstChar)) 164while (current < length && char.IsDigit(identifier[current]))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
41!char.IsDigit(diagnosticId[^1]) ||
Microsoft.CodeAnalysis.Features (2)
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
296while (_index < _name.Length && char.IsDigit(_name[_index])) 714else if (!char.IsDigit(nextChar) && nextChar != '.')
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.Lexer.cs (1)
157else if (char.IsDigit(currentChar))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
90=> SurrogateChar != 0 ? char.IsDigit(SurrogateChar) : Rune.IsDigit(Rune);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
361if (index + 1 < name.Length && !char.IsDigit(name[index + 1]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (2)
71else if (char.IsDigit(firstChar)) 164while (current < length && char.IsDigit(identifier[current]))
Microsoft.Extensions.ApiDescription.Client (1)
CSharpIdentifier.cs (1)
23return char.IsDigit(character) ||
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Linux\LinuxUtilizationParserCgroupV1.cs (2)
388if (numberStart == buffer.Length || !char.IsDigit(buffer[numberStart])) 397while (numberEnd < buffer.Length && char.IsDigit(buffer[numberEnd]))
Linux\LinuxUtilizationParserCgroupV2.cs (2)
578if (numberStart == buffer.Length || !char.IsDigit(buffer[numberStart])) 587while (numberEnd < buffer.Length && char.IsDigit(buffer[numberEnd]))
Microsoft.Maui.Controls (1)
Button\Button.cs (1)
595 var spacingFirst = char.IsDigit(parts[0][0]);
Microsoft.Maui.Controls.DesignTools (1)
ButtonContentDesignTypeConverter.cs (1)
29 if (char.IsDigit(parts[0][0]))
Microsoft.Maui.Graphics (3)
PathBuilder.cs (3)
91 if (char.IsDigit(c) || c == '.' || c == '-') 240 if (char.IsDigit(firstLetter)) 259 if (_lastCommand != '~' && (char.IsDigit(c) || c == '-'))
Microsoft.ML.InternalCodeAnalyzer (1)
Utils.cs (1)
36if (char.IsDigit(c))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (1)
1438If Not Char.IsDigit(c) Then
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\VersionHelper.cs (1)
120if (!char.IsDigit(elements[i][idx]))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
2539else if (Char.IsDigit(i))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
733else if (Char.IsDigit(attribValue[i]))
PresentationFramework (4)
System\Windows\Controls\DefinitionBase.cs (1)
558bool isDigit = Char.IsDigit(id[i]);
System\Windows\Documents\DocumentSequence.cs (1)
159if (Char.IsDigit(elementID[0]))
System\Windows\Documents\FixedDocument.cs (1)
201if (Char.IsDigit(elementID[0]))
System\Windows\Markup\XamlTypeMapper.cs (1)
733else if (Char.IsDigit(attribValue[i]))
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
310return (Char.IsDigit(c));
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
436return (Char.IsDigit(c)) || (c == ',') || (c == '.') || (c == '%');
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (3)
41if (char.IsDigit(c)) 55if (!(char.IsDigit(c) 117if (!char.IsDigit(c))
System.ComponentModel.TypeConverter (4)
System\ComponentModel\MaskedTextProvider.cs (4)
1385return char.IsLetter(c) || char.IsDigit(c); 2232if (!char.IsDigit(input) && (input != '-') && (input != '+') && input != SPACE_CHAR) 2240if (!char.IsDigit(input)) 2248if (!char.IsDigit(input) && input != SPACE_CHAR)
System.Configuration.ConfigurationManager (1)
System\Configuration\GenericEnumConverter.cs (1)
33if ((!char.IsDigit(value[0])) && (value[0] != '-') && (value[0] != '+') &&
System.Console (1)
System\IO\KeyParser.cs (1)
119: char.IsDigit(input[SequencePrefixLength + 1]) ? 2 : 1;
System.IO.Packaging (2)
System\IO\Packaging\ZipPackagePartPiece.cs (2)
97&& char.IsDigit(path[searchPosition - 1]); 104for (digitStart = searchPosition; digitStart > 1 && char.IsDigit(path[digitStart - 1]); digitStart--) ;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
204if (!char.IsDigit(value[endIndex]))
System.Net.Requests (3)
System\Net\FtpControlStream.cs (3)
1192if (!(char.IsDigit(responseString[0]) && char.IsDigit(responseString[1]) && char.IsDigit(responseString[2]) && (responseString[3] == ' ' || responseString[3] == '-')))
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
236if (char.IsDigit(keyValue[i]))
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\DateTimeHelper.cs (1)
56while (dateTimeString.Length > i && char.IsDigit(dateTimeString[i]))
System.Text.Json (3)
System\Text\Json\JsonHelpers.cs (1)
439Debug.Assert(char.IsDigit((char)span[0]), "leading plus not allowed in valid JSON numbers.");
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (2)
49if (!char.IsDigit(source[0]) || !char.IsDigit(source[^1]))
System.Windows.Forms (6)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
457if (char.IsDigit(e.KeyChar))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (3)
201while (!char.IsDigit(styleString[nextIndex])) 208while ((nextIndex < styleString.Length) && (char.IsDigit(styleString[nextIndex]))) 219if (char.IsDigit(styleString[nextIndex]))
System\Windows\Forms\SendKeys\SendKeys.cs (2)
460if (char.IsDigit(keys[j])) 463while (j < keysLen && char.IsDigit(keys[j]))
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
46while (char.IsDigit(listViewGroupName[^1]))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1749if (char.IsDigit(c))
System.Xaml (1)
System\Xaml\Parser\XamlName.cs (1)
74if (IsValidNameStartChar(ch) || char.IsDigit(ch))
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
Text.Analyzers (2)
IdentifiersShouldBeSpelledCorrectly.cs (1)
398static bool IsWordNumeric(string word) => char.IsDigit(word[0]);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
647return char.IsDigit(c);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2470for (pos = cChars - 1; pos > 0 && cChars - pos <= 2 && Char.IsDigit (menuText [pos]); pos--)