482 references to Value
Aspire.Dashboard.Tests (2)
ConsoleLogsTests\UrlParserTests.cs (2)
93Assert.Equal("http://www.localhost:8080", match.Value.ToLowerInvariant()); 106Assert.Equal(expected, match.Value.ToLowerInvariant());
Aspire.EndToEnd.Tests (3)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
124if (matches[0].Groups["tfm"].Value != tfmToUseString) 126throw new XunitException($"Expected to find {tfmToUseString} but found '{matches[0].Groups["tfm"].Value}' in {csprojPath}: {csprojContent}"); 197DashboardUrl = m.Groups["url"].Value;
Aspire.Hosting (1)
Dashboard\DashboardService.cs (1)
48Match { Success: true } match => match.Groups["name"].Value,
Aspire.Microsoft.Data.SqlClient (9)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (9)
177string serverHostName = match.Groups[2].Value; 189string maybeProtocol = match.Groups[1].Value; 195string pipeName = match.Groups[3].Value; 201instanceName = namedInstancePipeMatch.Groups[1].Value; 224instanceName = match.Groups[3].Value; 225port = match.Groups[4].Value; 231else if (int.TryParse(match.Groups[3].Value, out int parsedPort)) 233port = parsedPort == 1433 ? null : match.Groups[3].Value; 238instanceName = match.Groups[3].Value;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (9)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (9)
177string serverHostName = match.Groups[2].Value; 189string maybeProtocol = match.Groups[1].Value; 195string pipeName = match.Groups[3].Value; 201instanceName = namedInstancePipeMatch.Groups[1].Value; 224instanceName = match.Groups[3].Value; 225port = match.Groups[4].Value; 231else if (int.TryParse(match.Groups[3].Value, out int parsedPort)) 233port = parsedPort == 1433 ? null : match.Groups[3].Value; 238instanceName = match.Groups[3].Value;
Aspire.Workload.Tests (4)
BuildAndRunTemplateTests.cs (1)
90return match.Groups[1].Value;
tests\Shared\WorkloadTesting\AspireProject.cs (3)
124if (matches[0].Groups["tfm"].Value != tfmToUseString) 126throw new XunitException($"Expected to find {tfmToUseString} but found '{matches[0].Groups["tfm"].Value}' in {csprojPath}: {csprojContent}"); 197DashboardUrl = m.Groups["url"].Value;
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
114var packageId = match.Groups[1].Value;
dotnet-dev-certs (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
dotnet-svcutil-lib (10)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (6)
580ce.FileName = m.Groups[2].Value; 581ce.Line = int.Parse(m.Groups[4].Value, CultureInfo.InvariantCulture); 582ce.Column = int.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture); 584if (string.Compare(m.Groups[full ? 6 : 1].Value, "warning", StringComparison.OrdinalIgnoreCase) == 0) 588ce.ErrorNumber = m.Groups[full ? 7 : 2].Value; 589ce.ErrorText = m.Groups[full ? 8 : 3].Value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (4)
69object varA = ILG.GetVariable(match.Groups["a"].Value); 71object varIA = ILG.GetVariable(match.Groups["ia"].Value); 192Debug.Assert(match.Groups["arg"].Value == Arg); 193Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type));
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
323var processId = int.Parse(processIdMatch.Groups[1].Value, CultureInfo.InvariantCulture); 359var time = DateTime.Parse(prefixMatch.Groups[1].Value, CultureInfo.InvariantCulture).ToUniversalTime(); 360var prefixProcessId = int.Parse(prefixMatch.Groups[2].Value, CultureInfo.InvariantCulture);
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
323var processId = int.Parse(processIdMatch.Groups[1].Value, CultureInfo.InvariantCulture); 359var time = DateTime.Parse(prefixMatch.Groups[1].Value, CultureInfo.InvariantCulture).ToUniversalTime(); 360var prefixProcessId = int.Parse(prefixMatch.Groups[2].Value, CultureInfo.InvariantCulture);
illink (2)
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
162Name = numberListMatch.Groups["name"].Value,
InteropTests (1)
Helpers\WebsiteProcess.cs (1)
72ServerPort = m.Groups["port"].Value;
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (2)
46identifier = match.Groups["identifier"].Value; 48options = optionGroup.Captures.OfType<Capture>().Select(c => c.Value);
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (2)
79matches.Add((namedSpanStartMatch.Index, namedSpanStartMatch.Value)); 144var name = namedSpanStartMatch.Groups[1].Value;
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (10)
UserJwtsTests.cs (10)
114var id = matches.SingleOrDefault().Groups[1].Value; 148var id = matches.SingleOrDefault().Groups[1].Value; 293var id = matches.SingleOrDefault().Groups[1].Value; 312var id = matches.SingleOrDefault().Groups[1].Value; 332var id = matches.SingleOrDefault().Groups[1].Value; 353var id = matches.SingleOrDefault().Groups[1].Value; 475var id = matches.SingleOrDefault().Groups[1].Value; 568var key = printMatches.SingleOrDefault().Groups[1].Value; 573var resetKey = resetMatches.SingleOrDefault().Groups[1].Value; 594var key = printMatches.SingleOrDefault().Groups[1].Value;
Microsoft.AspNetCore.Components.Endpoints.Tests (34)
EndpointHtmlRendererTest.cs (34)
64var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 87var preamble = match.Groups["preamble"].Value; 94var prerenderedContent = match.Groups["content"].Value; 97var epilogue = match.Groups["epilogue"].Value; 130var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 167var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 202var preamble = match.Groups["preamble"].Value; 218var prerenderedContent = match.Groups["content"].Value; 221var epilogue = match.Groups["epilogue"].Value; 251var preamble = match.Groups["preamble"].Value; 266var prerenderedContent = match.Groups["content"].Value; 269var epilogue = match.Groups["epilogue"].Value; 310var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 342var preamble = match.Groups["preamble"].Value; 357var prerenderedContent = match.Groups["content"].Value; 360var epilogue = match.Groups["epilogue"].Value; 407var preamble = firstMatch.Groups["preamble"].Value; 418var marker = secondMatch.Groups[1].Value; 461var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 500var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 539var preamble = match.Groups["preamble"].Value; 563var prerenderedContent = match.Groups["content"].Value; 566var epilogue = match.Groups["epilogue"].Value; 590var preamble = match.Groups["preamble"].Value; 614var prerenderedContent = match.Groups["content"].Value; 617var epilogue = match.Groups["epilogue"].Value; 1071var markerText = serverMarkerMatch.Groups[1].Value; 1072var innerHtml = serverMarkerMatch.Groups[2].Value; 1101var markerText = serverNonPrerenderedMarkerMatch.Groups[1].Value; 1128var markerText = webAssemblyMarkerMatch.Groups[1].Value; 1129var innerHtml = webAssemblyMarkerMatch.Groups[2].Value; 1142var markerText = webAssemblyNonPrerenderedMarkerMatch.Groups[1].Value; 1172var preamble = match.Groups["preamble"].Value; 1177var prerenderedContent = match.Groups["content"].Value;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (2)
219capturedUrl = matchFirefox.Groups["url"].Value; 226capturedUrl = match.Groups["url"].Value;
Microsoft.AspNetCore.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (5)
32int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 33string hashAlgorithm = Regex.Match(validationAlgorithm.ToString(), @"^HMAC(?<hashAlgorithm>.*)$").Groups["hashAlgorithm"].Value; 60int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 86int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 123int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
69var dateTime = match.Groups["datetime"].Value; 70var subseconds = match.Groups["subseconds"].Value; 71var offset = match.Groups["offset"].Value; 184var sign = match.Groups["sign"].Value; 185var secondsText = match.Groups["int"].Value; 191var subseconds = match.Groups["subseconds"].Value;
Microsoft.AspNetCore.Grpc.Swagger (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
69var dateTime = match.Groups["datetime"].Value; 70var subseconds = match.Groups["subseconds"].Value; 71var offset = match.Groups["offset"].Value; 184var sign = match.Groups["sign"].Value; 185var secondsText = match.Groups["int"].Value; 191var subseconds = match.Groups["subseconds"].Value;
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1365var url = WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value); 1377return WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value);
Microsoft.AspNetCore.Rewrite (1)
BackReferenceCollection.cs (1)
18_backReferences.Add(references[i].Value);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
158actualUrl = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
214url = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Microsoft.AspNetCore.SpaServices.Extensions (1)
AngularCli\AngularCliMiddleware.cs (1)
88var uri = new Uri(openBrowserLine.Groups[1].Value);
Microsoft.Build (53)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (3)
103var sectionName = sectionMatches[0].Groups[1].Value; 114var key = propMatches[0].Groups[1].Value.ToLower(); 115var value = propMatches[0].Groups[2].Value;
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
59if (!int.TryParse(match.Groups[i + 1].Value, out int matchedNum) ||
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
Construction\Solution\SolutionFile.cs (9)
1059string referenceGuid = match.Groups["PROPERTYNAME"].Value.Trim(); 1077string propertyName = match.Groups["PROPERTYNAME"].Value.Trim(); 1078string propertyValue = match.Groups["PROPERTYVALUE"].Value.Trim(); 1509string projectTypeGuid = match.Groups["PROJECTTYPEGUID"].Value.Trim(); 1510proj.ProjectName = match.Groups["PROJECTNAME"].Value.Trim(); 1511proj.RelativePath = match.Groups["RELATIVEPATH"].Value.Trim(); 1512proj.ProjectGuid = match.Groups["PROJECTGUID"].Value.Trim(); 1609string projectGuid = match.Groups["PROPERTYNAME"].Value.Trim(); 1610string parentProjectGuid = match.Groups["PROPERTYVALUE"].Value.Trim();
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
Evaluation\Expander.cs (5)
1079string metadataName = itemMetadataMatch.Groups[RegularExpressions.NameGroup].Value; 1085itemType = itemMetadataMatch.Groups[RegularExpressions.ItemTypeGroup].Value; 1089string metadataValue = itemMetadataMatch.Value; 3053string name = match.Groups[RegularExpressions.NameGroup].Value; 3055ProjectErrorUtilities.VerifyThrowInvalidProject(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
Evaluation\IntrinsicFunctions.cs (1)
286return Path.Combine(NativeMethodsShared.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
ProjectWriter.cs (7)
152Match itemVectorTransform = itemVectorTransformPattern.Value.Match(itemVectorTransforms[i].Value); 158base.WriteString(itemVectorTransform.Groups["PREFIX"].Value); 159base.WriteString(itemVectorTransform.Groups["TYPE"].Value); 160base.WriteRaw(itemVectorTransform.Groups["ARROW"].Value); 161base.WriteString(itemVectorTransform.Groups["TRANSFORM"].Value); 162base.WriteString(itemVectorTransform.Groups["SEPARATOR_SPECIFICATION"].Value); 163base.WriteString(itemVectorTransform.Groups["SUFFIX"].Value);
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildServer_Tests.cs (1)
348return int.Parse(match.Groups[1].Value);
Microsoft.Build.Engine.OM.UnitTests (1)
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
Microsoft.Build.Engine.UnitTests (5)
Evaluation\ExpressionShredder_Tests.cs (5)
610Assert.Equal(match.Value, capture.Value); 618Assert.Equal(transformGroup.Captures[i].Value, capture.Captures[i].Value); 1128result.Add(itemVector.Groups["TYPE"].Value); 1171string metadataName = embeddedMetadataReference.Groups["NAME"].Value; 1178itemName = embeddedMetadataReference.Groups["TYPE"].Value;
Microsoft.Build.Tasks.CodeAnalysis (19)
CanonicalError.cs (19)
308string origin = match.Groups["ORIGIN"].Value.Trim(); 309string category = match.Groups["CATEGORY"].Value.Trim(); 310parsedMessage.code = match.Groups["CODE"].Value.Trim(); 311parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 312parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 338string location = match.Groups["LOCATION"].Value.Trim(); 339parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 354parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 361parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 362parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 369parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 370parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 377parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 378parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 379parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 388parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 389parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
Microsoft.Build.Tasks.Core (40)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (2)
105_targetRuntimeVersion = match.Groups["TARGETRUNTIMEVERSION"].Value.Trim(); 106_assemblyFolderConfigFile = match.Groups["ASSEMBLYFOLDERCONFIGFILE"].Value.Trim();
BootstrapperUtil\BuildMessage.cs (1)
31HelpId = int.Parse(match.Value, CultureInfo.InvariantCulture);
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
FindInvalidProjectReferences.cs (2)
123platformIdentity = match.Groups[PlatformSimpleNameGroup].Value.Trim(); 125string rawVersion = match.Groups[PlatformVersionGroup].Value.Trim();
NativeMethods.cs (6)
1398match.Groups[2].Value) 1400match.Groups[2].Value) 1403if (!string.IsNullOrEmpty(match.Groups[1].Value)) 1405name.Version = new Version(match.Groups[1].Value); 1407if (!string.IsNullOrWhiteSpace(match.Groups[3].Value)) 1409var value = match.Groups[3].Value;
ResolveSDKReference.cs (2)
585sdkSimpleName = match.Groups[SDKsimpleNameGroup].Value.Trim(); 587rawSdkVersion = match.Groups[SDKVersionGroup].Value.Trim();
Microsoft.Build.Utilities.Core (27)
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
Microsoft.CodeAnalysis (6)
CommandLine\AnalyzerConfig.cs (3)
226var sectionName = sectionMatches[0].Groups[1].Value; 238var key = propMatches[0].Groups[1].Value; 239var value = propMatches[0].Groups[2].Value;
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
54if (!int.TryParse(match.Groups[i + 1].Value, out int matchedNum) ||
Diagnostic\DiagnosticInfo.cs (1)
140int value = int.Parse(match.Value[1..^1]);
SourceGeneration\AdditionalSourcesCollection.cs (1)
72throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameInvalidSegment, hintName, match.Value, match.Index), nameof(hintName));
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
347var textInsideBrackets = match.Groups[1].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
72var sectionName = sectionMatches[0].Groups[1].Value; 86var key = propMatches[0].Groups[1].Value; 87var value = propMatches[0].Groups[2].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (10)
140var innerText = singleMatch.Groups[1].Value; 144var firstExtension = fileExtensionMatches[0].Value; 145var secondExtension = fileExtensionMatches[1].Value; 184var innerText = singleMatch.Groups[1].Value; 190if (fileExtensionMatch?.Value == mustMatchFileExtension) 196fileExtensionMatch?.Value == mustNotMatchFileExtension) 227var innerText = singleMatch.Groups[1].Value; 233if (match?.Value == firstFileExtension) 238if (match?.Value == secondFileExtension) 318if (!int.TryParse(match.Groups[i + 1].Value, out var matchedNum) ||
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Synthesized\GeneratedNameParser.cs (2)
219displayFileName = groups[1].Value; 221var checksumString = groups[2].Value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (3)
2574Assert.True(long.TryParse(m.Groups[1].Value, NumberStyles.HexNumber, null, out long rva), $"Expected {m.Value} to parse as hex long."); 2689string[] actual = Regex.Matches(il, @"\.class nested assembly explicit ansi sealed '([^']*?)'").Cast<Match>().Select(m => m.Groups[1].Value).ToArray();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
219displayFileName = groups[1].Value; 221var checksumString = groups[2].Value;
Microsoft.CodeAnalysis.EditorFeatures (6)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
144if (match.Success && match.Groups["key"].Value is string isolatedKey &&
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (5)
228var untrimmedKey = groups[1].Value.ToString(); 230var value = groups[2].Value.ToString(); 231var severitySuffixInValue = groups[3].Value.ToString(); 232var commentValue = groups[4].Value.ToString(); 246mostRecentHeaderText = groups[1].Value.ToString().ToLowerInvariant();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Semantics\SpeculationAnalyzerTestsBase.cs (2)
33var initialExpression = initialMatch.Groups["content"].Value; 35var initialTree = Parse(UnderTestRegex.Replace(code, m => m.Groups["content"].Value));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
219displayFileName = groups[1].Value; 221var checksumString = groups[2].Value;
Microsoft.CodeAnalysis.Features (11)
CodeFixes\Configuration\ConfigurationUpdater.cs (8)
373parts = (optionName: match.Groups[1].Value.Trim(), 374optionValue: match.Groups[2].Value.Trim()); 463var untrimmedKey = groups[1].Value.ToString(); 465var value = groups[2].Value.ToString(); 466var severitySuffixInValue = groups[3].Value.ToString(); 467var commentValue = groups[4].Value.ToString(); 568var mostRecentHeaderText = groups[1].Value.ToString().ToLowerInvariant(); 601var match = headerRegex.Match(relativePath).Value;
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (2)
43identifier = match.Groups["identifier"].Value; 49options = optionGroup.Captures.OfType<Capture>().Select(c => c.Value);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
347var textInsideBrackets = match.Groups[1].Value;
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\SourceMarkers.cs (6)
41=> from ids in match.Groups["Id"].Value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries) 52if (match.Groups["Name"].Value != tagName) 57var isStartingTag = match.Groups["IsEnd"].Value == "" || match.Groups["IsStartAndEnd"].Value != ""; 58var isEndingTag = match.Groups["IsEnd"].Value != "" || match.Groups["IsStartAndEnd"].Value != "";
Microsoft.CodeAnalysis.Test.Utilities (10)
CompilationVerifier.cs (2)
213return s_codeSizeCommentsRegex.Replace(output, match => match.Groups[0].Value.Replace(match.Groups[1].Value, ""));
Diagnostics\DiagnosticDescription.cs (1)
476var fmtSpecifier = match.Groups.Count > 1 && match.Groups[1].Success ? match.Groups[1].Value : "";
MarkedSource\MarkupTestFile.cs (2)
81matches.Add((namedSpanStartMatch.Index, namedSpanStartMatch.Value)); 146var name = namedSpanStartMatch.Groups[1].Value;
MarkedSource\SourceWithMarkedNodes.cs (5)
58var syntaxKindOpt = match.Groups["SyntaxKind"].Value; 59var idOpt = match.Groups["Id"].Value; 61var parentIdOpt = match.Groups["ParentId"].Value; 66yield return new MarkedSpan(new TextSpan(absoluteOffset, markedSyntax.Length), new TextSpan(match.Index, match.Length), tagName.Value, parsedKind, id, parentId); 68foreach (var nestedSpan in GetSpansRecursive(markedSyntax.Value, absoluteOffset, getSyntaxKind))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenVBCore.vb (1)
3211Dim indent = captures(captures.Count - 1).Value
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
72var sectionName = sectionMatches[0].Groups[1].Value; 86var key = propMatches[0].Groups[1].Value; 87var value = propMatches[0].Groups[2].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (10)
140var innerText = singleMatch.Groups[1].Value; 144var firstExtension = fileExtensionMatches[0].Value; 145var secondExtension = fileExtensionMatches[1].Value; 184var innerText = singleMatch.Groups[1].Value; 190if (fileExtensionMatch?.Value == mustMatchFileExtension) 196fileExtensionMatch?.Value == mustNotMatchFileExtension) 227var innerText = singleMatch.Groups[1].Value; 233if (match?.Value == firstFileExtension) 238if (match?.Value == secondFileExtension) 318if (!int.TryParse(match.Groups[i + 1].Value, out var matchedNum) ||
Workspace\Solution\ProjectInfo.cs (2)
529return match.Success ? (match.Groups["name"].Value, match.Groups["flavor"].Value) : default;
Microsoft.DotNet.Arcade.Sdk (3)
src\CheckRequiredDotNetVersion.cs (1)
89var minSdkVersionStr = match.Groups[1].Value;
src\GenerateResxSource.cs (1)
507.Select(m => m.Groups[1].Value)
src\LocateDotNet.cs (1)
68var sdkVersion = match.Groups[1].Value;
Microsoft.DotNet.Build.Tasks.Feed (12)
src\BlobFeedAction.cs (5)
46AccountName = m.Groups["accountname"].Value; 47ContainerName = m.Groups["containername"].Value; 48RelativePath = m.Groups["relativepath"].Value; 50feedUrl = m.Groups["feedurl"].Value; 51hasToken = !string.IsNullOrEmpty(m.Groups["token"].Value);
src\BlobUrlInfo.cs (4)
44AccountName = hostNameMatch.Groups["accountname"].Value; 45Endpoint = hostNameMatch.Groups["endpoint"].Value; 57ContainerName = containerAndBlobMatch.Groups["containername"].Value; 58BlobPath = containerAndBlobMatch.Groups["blobpath"].Value;
src\BuildModelFactory.cs (1)
287string replacementUri = $"{Regex.Unescape(AzureDevOpsHostPattern)}/{m.Groups["account"].Value}";
src\common\AzureConnectionStringBuildTask.cs (2)
45AccountName = matches[0].Groups["name"].Value; 46AccountKey = matches[0].Groups["key"].Value;
Microsoft.DotNet.Build.Tasks.Feed.Tests (3)
PublishArtifactsInManifestTests.cs (3)
67matches.Groups["account"]?.Value.Should().Be(account); 68matches.Groups["visibility"]?.Value.Should().Be(visibility); 69matches.Groups["feed"]?.Value.Should().Be(feed);
Microsoft.DotNet.Build.Tasks.Installers (3)
src\GenerateCurrentVersion.cs (3)
103if (!DateTime.TryParseExact(match.Groups[1].Value, dateFormat, enUS, DateTimeStyles.AssumeLocal, out buildIdDate)) 105Log.LogError("The OfficialBuildId doesn't follow the expected({0}.rr) format: '{1}'", dateFormat, match.Groups[1].Value); 110GeneratedRevision = match.Groups[2].Value;
Microsoft.DotNet.Git.IssueManager (5)
Clients\AzureDevOpsClient.cs (3)
81return (m.Groups["account"].Value, 82m.Groups["project"].Value, 83m.Groups["repo"].Value);
Clients\GitHubClient.cs (2)
109return (match.Groups["owner"].Value, match.Groups["repo"].Value);
Microsoft.DotNet.Helix.JobSender (2)
JobDefinition.cs (2)
286queueAlias = queueInfoSplit.Groups[1].Value; 287queueId = queueInfoSplit.Groups[2].Value;
Microsoft.DotNet.SourceBuild.Tasks (2)
src\WriteBuildOutputProps.cs (2)
123match => match.Groups?["FirstPartChar"].Value.ToUpperInvariant() 133match => match.Groups?["FirstPartChar"].Value.ToUpperInvariant()
Microsoft.DotNet.VersionTools (2)
Dependencies\FileRegexUpdater.cs (2)
75string match = m.Value; 78originalValue = group.Value;
Microsoft.DotNet.XliffTasks (1)
StringExtensions.cs (1)
48int index = int.Parse(placeholder.Groups[1].Value);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
169DateTimeOffset[] createdAts = Regex.Matches(Output, @"2024.*?Z").Cast<Match>().Select(m => DateTimeOffset.Parse(m.Value)).ToArray();
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
101""", suppliedSchemaMatch.Groups[1].Value.Trim());
Microsoft.ML.Data (6)
Dirty\IniFileUtils.cs (1)
43string count = match.Groups[1].Value;
EntryPoints\EntryPointNode.cs (5)
1081match.Groups["Name"].Value, 1082int.Parse(match.Groups["NumericAccessor"].Value)); 1088match.Groups["Name"].Value, 1089match.Groups["StringAccessor"].Value); 1092return new SimpleVariableBinding(match.Groups["Name"].Value);
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
123yield return match.Value;
Microsoft.ML.ResultProcessor (11)
ResultProcessor.cs (11)
612timeElapsed = mc.Groups["timeElapsed"].Value; 613executionDate = mc.Groups["executionDate"].Value; 621if (mc.Groups["memoryType"].Value == "Virtual") 622virtualMemory = mc.Groups["memoryUsage"].Value; 623else if (mc.Groups["memoryType"].Value == "Physical") 624physicalMemory = mc.Groups["memoryUsage"].Value; 798string name = matchNameValueDeviation.Groups["name"].Value; 799Double doubleValue = Double.Parse(matchNameValueDeviation.Groups["value"].Value, CultureInfo.InvariantCulture); 801float deviation = (float)Double.Parse(matchNameValueDeviation.Groups["deviation"].Value, CultureInfo.InvariantCulture); 818string name = matchNameValue.Groups["name"].Value; 819float value = float.Parse(matchNameValue.Groups["value"].Value, CultureInfo.InvariantCulture);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
UnifiedSettings\UnifiedSettingsTests.vb (1)
75Dim match = regexExp.Match(pkdDefFile, 0).Value
MSBuild (1)
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1341switch (match.Value) 1354return match.Value;
PresentationFramework (5)
MS\Internal\Globalization\BamlResourceContent.cs (5)
106switch (match.Value) 116Debug.Assert(match.Value.Length > 0 && match.Value[0] == BamlConst.EscapeChar); 117if (match.Value.Length == 2) 119return match.Value[1].ToString();
SemanticSearch.BuildTask (3)
GenerateFilteredReferenceAssembliesTask.cs (3)
136var inclusion = match.Groups["Inclusion"].Value; 137var kinds = match.Groups["Kinds"].Value; 138var metadataName = match.Groups["MetadataName"].Value;
System.Data.Common (3)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
452string keyname = (firstKey ? keypair.Value : keypair.Value.Replace("==", "=")).ToLowerInvariant(); 453string? keyvalue = keyvalues[indexValue++].Value;
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
452string keyname = (firstKey ? keypair.Value : keypair.Value.Replace("==", "=")).ToLowerInvariant(); 453string? keyvalue = keyvalues[indexValue++].Value;
System.Private.Xml (24)
System\Xml\Serialization\SourceInfo.cs (4)
75object varA = ILG.GetVariable(match.Groups["a"].Value); 77object varIA = ILG.GetVariable(match.Groups["ia"].Value); 196Debug.Assert(match.Groups["arg"].Value == Arg); 197Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type!));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (20)
2739Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA2"].Value); 2740Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA3"].Value); 2741Debug.Assert(match.Groups["locI1"].Value == match.Groups["locI2"].Value); 2743LocalBuilder localA = ilg.GetLocal(match.Groups["locA1"].Value); 2744LocalBuilder localI = ilg.GetLocal(match.Groups["locI1"].Value); 2785System.Diagnostics.Debug.Assert(CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)).IsArray); 2786ilg.Load(ilg.GetVariable(match.Groups["a"].Value)); 2787ilg.Load(ilg.GetVariable(match.Groups["ia"].Value)); 2831object oVar = ilg.GetVariable(match.Groups["locA1"].Value); 2867Type varType = CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)); 3563ilg.Ldstr(match.Groups["qnames"].Value); 3572LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3575ilg.Ldstr(match.Groups["qnames"].Value); 3584LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3596LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3610ilg.Ldc(int.Parse(match.Groups["index"].Value, CultureInfo.InvariantCulture)); 3623ilg.Ldc(int.Parse(match.Groups["index"].Value, CultureInfo.InvariantCulture));
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Capture.cs (1)
37public override string ToString() => Value;
System\Text\RegularExpressions\Regex.Split.cs (2)
103state.results.Add(match.Groups[i].Value); 131state.results.Add(match.Groups[i].Value);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
197string key = match.Value;
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
315string propertyName = match.Groups["name"].Value.Trim();
Templates.Blazor.Tests (4)
BlazorWasmTemplateTest.cs (1)
121var serviceWorkerAssetsManifestVersionJson = serviceWorkerAssetsManifestVersionMatch.Groups[1].Captures[0].Value;
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Mvc.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
VersioningWebSite (3)
VersionRouteAttribute.cs (3)
59var lowerBound = match.Groups["lb"].Value; 60var higherBound = match.Groups["hb"].Value; 61var range = match.Groups["range"].Value;
XmlFileLogger (2)
XmlFileLogger.cs (2)
139_build.SetTaskAssembly(match.Groups["task"].Value, match.Groups["assembly"].Value);
xunit.assert (3)
Sdk\Exceptions\ExceptionUtility.cs (3)
75 var file = match.Groups["file"].Value; 76 return string.Format(CultureInfo.InvariantCulture, "{0}{1}({2},0): at {3}", indent, file, match.Groups["line"].Value, match.Groups["method"].Value);
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
110var arch = match?.Groups?["arch"]?.Value;