6322 references to Value
aspire (67)
Aspire.Cli.Tests (13)
Agents\NpmProvenanceCheckerTests.cs (12)
21Assert.Equal(ProvenanceVerificationOutcome.Verified, result.Value.Outcome);
22Assert.Equal("https://github.com/microsoft/playwright-cli", result.Value.Provenance.SourceRepository);
23Assert.Equal(".github/workflows/publish.yml", result.Value.Provenance.WorkflowPath);
24Assert.Equal("https://slsa-framework.github.io/github-actions-buildtypes/workflow/v1", result.Value.Provenance.BuildType);
25Assert.Equal("https://github.com/actions/runner/github-hosted", result.Value.Provenance.BuilderId);
26Assert.Equal("refs/tags/v0.1.1", result.Value.Provenance.WorkflowRef);
37Assert.Equal(ProvenanceVerificationOutcome.Verified, result.Value.Outcome);
38Assert.Equal("https://github.com/attacker/malicious-package", result.Value.Provenance.SourceRepository);
62Assert.Equal(ProvenanceVerificationOutcome.SlsaProvenanceNotFound, result.Value.Outcome);
73Assert.Equal(ProvenanceVerificationOutcome.SlsaProvenanceNotFound, result.Value.Outcome);
117Assert.Equal(ProvenanceVerificationOutcome.SourceRepositoryNotFound, result.Value.Outcome);
139Assert.Equal(ProvenanceVerificationOutcome.PayloadDecodeFailed, result.Value.Outcome);
Aspire.Dashboard (133)
Components\Controls\Chart\ChartBase.cs (6)
67_currentDataStartTime = PauseManager.AreMetricsPaused(out var pausedAt) ? pausedAt.Value : GetCurrentDataTime();
81var inProgressDataTime = PauseManager.AreMetricsPaused(out var pausedAt) ? pausedAt.Value : GetCurrentDataTime();
165if (tickUpdate && TryCalculateHistogramPoints(dimensions, firstPointEndTime!.Value, inProgressDataTime, traces, exemplars))
196exemplars = exemplars.Where(p => p.Start <= startDate && p.Start >= lastPointStartTime!.Value).OrderBy(p => p.Start).ToList();
409if (tickUpdate && TryCalculatePoint(dimensions, firstPointEndTime!.Value, inProgressDataTime, exemplars, out var inProgressPointValue))
426trace.Tooltips.Add(FormatTooltip(yLabel, yValues[i]!.Value, xValues[i]));
Model\GenAI\GenAIVisualizerDialogViewModel.cs (4)
274var parts = DeserializeEventContent(index, type.Value, item.Message);
275viewModel.Items.Add(CreateMessage(viewModel, currentIndex, type.Value, parts, internalId: item.InternalId));
294var parts = DeserializeEventContent(index, type.Value, content);
295viewModel.Items.Add(CreateMessage(viewModel, currentIndex, type.Value, parts, internalId: null));
Aspire.Dashboard.Components.Tests (15)
Aspire.Dashboard.Tests (19)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (54)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.ServiceBus (32)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.CodeGeneration.Go (1)
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Python (1)
Aspire.Hosting.CodeGeneration.Rust (1)
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.DevTunnels (2)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.GitHub.Models (3)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.OpenAI (3)
Aspire.Hosting.PostgreSQL.Tests (4)
Aspire.Hosting.RabbitMQ.Tests (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Redis.Tests (5)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (16)
ProjectResourceTests.cs (8)
395e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
399e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p1");
403e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p2");
407e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p3");
454e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
484e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: $"p{index++}");
668e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
674e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p1");
Aspire.Hosting.Valkey.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.MongoDB.Driver (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Playground.Tests (2)
Aspire.Templates.Tests (5)
Aspire.TestUtilities (1)
AutobahnTestApp (1)
BasicWebSite (1)
BuildActionTelemetryTable (2)
CodeGenerator (1)
CookieSessionSample (1)
csc (2)
CSharpSyntaxGenerator (1)
dotnet-dev-certs (1)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-sql-cache (1)
dotnet-svcutil-lib (31)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
520return value.Value;
dotnet-svcutil-lib.Tests (2)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (87)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
GetDocument.Insider (1)
HealthChecksSample (1)
HttpStress (1)
IIS.FunctionalTests (4)
illink (51)
ILLink.RoslynAnalyzer (23)
ILLink.Tasks (6)
Infrastructure.Tests (5)
InMemory.FunctionalTests (5)
InProcessWebSite (3)
Interop.FunctionalTests (5)
InteropTests (2)
Metrics (66)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Metrics.Legacy (66)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Microsoft.Agents.AI.ProjectTemplates.Tests (4)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Local (3)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.App.Analyzers (29)
Microsoft.AspNetCore.App.Analyzers.Test (4)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.Cookies (10)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Components (36)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (9)
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.QuickGrid (4)
Microsoft.AspNetCore.Components.QuickGrid.Tests (2)
Microsoft.AspNetCore.Components.Server (17)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Tests (9)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (4)
Microsoft.AspNetCore.Components.WebAssembly (9)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.CookiePolicy (4)
Microsoft.AspNetCore.CookiePolicy.Test (4)
Microsoft.AspNetCore.Cors (4)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (5)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http (9)
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Client (4)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Results (14)
Microsoft.AspNetCore.Http.Results.Tests (18)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.HttpLogging (5)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.HttpsPolicy (3)
Microsoft.AspNetCore.Identity (6)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Mvc.Abstractions (7)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.Core (37)
Microsoft.AspNetCore.Mvc.Core.Test (19)
Microsoft.AspNetCore.Mvc.Cors.Test (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.TagHelpers (9)
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Microsoft.AspNetCore.OutputCaching (5)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.ResponseCaching (27)
ResponseCachingPolicyProvider.cs (21)
127context.ResponseTime!.Value >= context.ResponseExpires)
129context.Logger.ExpirationExpiresExceeded(context.ResponseTime.Value, context.ResponseExpires.Value);
135var age = context.ResponseTime!.Value - context.ResponseDate.Value;
140context.Logger.ExpirationSharedMaxAgeExceeded(age, context.ResponseSharedMaxAge.Value);
148context.Logger.ExpirationMaxAgeExceeded(age, context.ResponseMaxAge.Value);
154if (context.ResponseTime.Value >= context.ResponseExpires)
156context.Logger.ExpirationExpiresExceeded(context.ResponseTime.Value, context.ResponseExpires.Value);
168var age = context.CachedEntryAge!.Value;
175age += minFresh.Value;
176context.Logger.ExpirationMinFreshAdded(minFresh.Value);
186context.Logger.ExpirationSharedMaxAgeExceeded(age, cachedSharedMaxAge.Value);
205context.Logger.ExpirationMustRevalidate(age, lowestMaxAge.Value);
216context.Logger.ExpirationInfiniteMaxStaleSatisfied(age, lowestMaxAge.Value);
223context.Logger.ExpirationMaxStaleSatisfied(age, lowestMaxAge.Value, requestMaxStale.Value);
227context.Logger.ExpirationMaxAgeExceeded(age, lowestMaxAge.Value);
235context.ResponseTime!.Value >= expires)
237context.Logger.ExpirationExpiresExceeded(context.ResponseTime.Value, expires);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (10)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.Server.HttpSys (43)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (21)
Microsoft.AspNetCore.Server.IIS (21)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (50)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (9)
Microsoft.AspNetCore.Session (3)
Microsoft.AspNetCore.Session.Tests (6)
Microsoft.AspNetCore.Shared.Tests (19)
Microsoft.AspNetCore.SignalR.Client (1)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Core (5)
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticAssets (8)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.StaticFiles (6)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (5)
Microsoft.AspNetCore.StaticFiles.Tests (11)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.AspNetCore.WebSockets.Tests (3)
Microsoft.Build (74)
Microsoft.Build.BuildCheck.UnitTests (37)
EditorConfig_Tests.cs (36)
123SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc").Value;
135SectionNameMatcher matcher = TryCreateSectionNameMatcher("*").Value;
146SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.cs").Value;
163SectionNameMatcher matcher = TryCreateSectionNameMatcher("**.cs").Value;
173SectionNameMatcher matcher = TryCreateSectionNameMatcher("...").Value;
193SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab?def").Value;
206SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab\\\\c").Value;
217SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\***\\*\\**").Value;
229SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\??\\?*\\??").Value;
243SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\{\\}def").Value;
255SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\,def").Value;
268SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.{cs,vb,fs}").Value;
289SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs,subdir/test.vb}").Value;
312SectionNameMatcher matcher = TryCreateSectionNameMatcher("{}").Value;
324SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs}").Value;
350SectionNameMatcher matcher = TryCreateSectionNameMatcher("{test{.cs,.vb},other.{a{bb,cc}}}").Value;
370SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{-}cd{-,}ef").Value;
384SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{cs,vb,fs}cd").Value;
407var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
424var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
440var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
458var matcher = TryCreateSectionNameMatcher(matchString).Value;
482var matcher = TryCreateSectionNameMatcher("{0..}").Value;
489matcher = TryCreateSectionNameMatcher("{0..A}").Value;
504var matcher = TryCreateSectionNameMatcher("*.[cf]s").Value;
515var matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value;
528var matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value;
542var matcher = TryCreateSectionNameMatcher("[0-9]x").Value;
555var matcher = TryCreateSectionNameMatcher("[!0-9]x").Value;
568var matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value;
604var matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value;
620var matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value;
635var matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value;
650var matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value;
664var matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value;
679var matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;
Microsoft.Build.Engine.OM.UnitTests (3)
Microsoft.Build.Engine.UnitTests (8)
Microsoft.Build.Framework (18)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.Build.Tasks.Core (25)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (3)
Microsoft.CodeAnalysis (73)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (7)
167? GetCompletedAnalyzersForFile_NoLock(filterScope.Value.file, filterScope.Value.syntax)
218var completedAnalyzersForFile = GetCompletedAnalyzersForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis);
234AddCompletedAnalyzerForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis, analyzer);
240if (analysisScope.FilterFileOpt.Value.SourceTree != null)
461=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.FilterFileOpt!.Value.SourceTree, analysisScope.Analyzers, builder);
467=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.FilterFileOpt!.Value.AdditionalFile, analysisScope.Analyzers, builder);
Microsoft.CodeAnalysis.Analyzers (94)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
Microsoft.CodeAnalysis.AnalyzerUtilities (91)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (2)
401result.Value);
425result.Value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Microsoft.CodeAnalysis.BannedApiAnalyzers (77)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
Microsoft.CodeAnalysis.CodeStyle (100)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
105return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (18)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.Collections.Package (6)
Microsoft.CodeAnalysis.CSharp (78)
CommandLine\CSharpCommandLineParser.cs (15)
242if (valueMemory.Value.Length == 0)
248AddWarnings(noWarns, ReportDiagnostic.Suppress, valueMemory.Value);
371ParseConditionalCompilationSymbols(RemoveQuotesAndSlashesEx(valueMemory.Value), defines, out defineDiagnostics);
775if (TryParseResourceDescription(arg, valueMemory.Value, baseDirectory, diagnostics, isEmbedded: true, out var embeddedResource))
790if (TryParseResourceDescription(arg, valueMemory.Value, baseDirectory, diagnostics, isEmbedded: false, out var linkedResource))
928if (valueMemory.Value.Length == 0)
934AddWarnings(warnAsErrors, ReportDiagnostic.Error, valueMemory.Value);
956ParseWarnings(valueMemory.Value, builder);
1298errorLogOptions = ParseErrorLogOptions(valueMemory.Value, diagnostics, baseDirectory, out bool diagnosticAlreadyReported);
1301AddDiagnostic(diagnostics, ErrorCode.ERR_BadSwitchValue, valueMemory.Value.ToString(), "/errorlog:", ErrorLogOptionFormat);
1341ParseSeparatedFileArgument(valueMemory.Value, baseDirectory, filePathBuilder, diagnostics);
1356ParseSeparatedFileArgument(valueMemory.Value, baseDirectory, filePathBuilder, diagnostics);
1641foreach (string path in ParseSeparatedPaths(switchValue.Value.ToString()))
1936var value = valueMemory.Value;
2093isPublic.Value);
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
175matches.Add(match.Value);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (49)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (36)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (34)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenDeconstructTests.cs (10)
271Assert.Equal(ConversionKind.ImplicitNumeric, nested[0].Conversion.Value.Kind);
275Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
283Assert.Equal(ConversionKind.UnsetConversionKind, defaultInfo.Conversion.Value.Kind);
1121Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
1125Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
2301Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
2314Assert.Equal(ConversionKind.Identity, nested2[0].Conversion.Value.Kind);
2318Assert.Equal(ConversionKind.Identity, nested2[1].Conversion.Value.Kind);
4052Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind);
4056Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (28)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Features (45)
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (6)
135map.MultiAdd(extensionInfo.Value, extensionInfo.Value);
163semanticModel, specificExtension.Value.ClassDeclaration, cancellationToken);
167string.Format(CSharpFeaturesResources.Convert_0_extension_methods_to_extension, specificExtension.Value.FirstParameter.Type.ToDisplayString()),
169document, specificExtension.Value.ClassDeclaration, allExtensionMethods, specificExtension, cancellationToken),
231ConvertAndReplaceExtensions(allExtensionMethods[specificExtension.Value]);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
175matches.Add(match.Value);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (68)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (203)
Formatting\FormatCommandHandler.cs (5)
84changes = [.. ruleFactory.FilterFormattedChanges(document.Id, selectionOpt.Value, changes)];
152document, caretPosition.Value, cancellationToken).ConfigureAwait(true);
163document, typeCharArgs.SubjectBuffer, typeCharArgs.TypedChar, caretPosition.Value, cancellationToken).ConfigureAwait(true);
187var oldCaretPosition = caretPosition.Value.TranslateTo(snapshotAfterFormatting, PointTrackingMode.Negative);
188var newCaretPosition = newCaretPositionMarker.Value.TranslateTo(snapshotAfterFormatting, PointTrackingMode.Negative);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (79)
Completion\AbstractCompletionProviderTests.cs (23)
66options = options with { TargetTypedCompletionFilter = ShowTargetTypedCompletionFilter.Value };
69options = options with { ShowItemsFromUnimportedNamespaces = ShowImportCompletionItemsOptionValue.Value };
72options = options with { ForceExpandedCompletionIndexCreation = ForceExpandedCompletionIndexCreation.Value };
75options = options with { MemberDisplayOptions = new() { HideAdvancedMembers = HideAdvancedMembers.Value } };
78options = options with { ShowNameSuggestions = ShowNameSuggestions.Value };
81options = options with { ShowNewSnippetExperienceUserOption = ShowNewSnippetExperience.Value };
84options = options with { TriggerOnDeletion = TriggerOnDeletion.Value };
187trigger = RoslynCompletion.CompletionTrigger.CreateDeletionTrigger(deletedCharacter: deletedCharTrigger.Value);
197Assert.Equal(hasSuggestionModeItem.Value, completionList.SuggestionModeItem != null);
256if (result.Glyph.HasValue && !c.Tags.SequenceEqual(GlyphTags.GetTags(result.Glyph.Value)))
258if (result.MatchPriority.HasValue && c.Rules.MatchPriority != result.MatchPriority.Value)
262if (flags != null && flags.Value != c.Flags)
318SourceCodeKind[] evaluatedSourceCodeKinds = sourceCodeKind.HasValue ? [sourceCodeKind.Value] : [SourceCodeKind.Regular, SourceCodeKind.Script];
344SourceCodeKind[] evaluatedSourceCodeKinds = sourceCodeKind.HasValue ? [sourceCodeKind.Value] : [SourceCodeKind.Regular, SourceCodeKind.Script];
387await VerifyCustomCommitProviderWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, sourceCodeKind.Value, commitChar);
414await VerifyProviderCommitWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, commitChar, sourceCodeKind.Value);
634!CommitManager.IsCommitCharacter(service.GetRules(options), completionItem, commitChar.Value))
681!CommitManager.IsCommitCharacter(service.GetRules(options), completionItem, commitChar.Value))
961var position = testWorkspace.Documents.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
1018var position = testWorkspace.Documents.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
1047var position = testWorkspace.Documents.First().CursorPosition.Value;
1261var position = hostDocument.CursorPosition.Value;
1311var position = hostDocument.CursorPosition.Value;
SignatureHelp\AbstractSignatureHelpProviderTests.cs (9)
58await TestSignatureHelpWorkerAsync(markup, sourceCodeKind.Value, experimental, expectedOrderedItemsOrNull, usePreviousCharAsTrigger);
143await VerifyCurrentParameterNameWorkerAsync(markup, expectedParameterName, sourceCodeKind.Value);
172Assert.Equal(expectedParameterName, (await GetArgumentStateAsync(cursorPosition, document, signatureHelpProvider, triggerInfo, options)).Value.ArgumentName);
197if (expectedTestItem.CurrentParameterIndex.Value >= 0 && expectedTestItem.CurrentParameterIndex.Value < actualSignatureHelpItem.Parameters.Length)
199currentParameterIndex = expectedTestItem.CurrentParameterIndex.Value;
344var cursorPosition = testWorkspace.Documents.First(d => d.Name == "SourceDocument").CursorPosition.Value;
389if (!signatureHelpProvider.TriggerCharacters.Contains(triggerInfo.TriggerCharacter.Value))
464var cursorPosition = testWorkspace.Documents.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
Microsoft.CodeAnalysis.EditorFeatures.Text (5)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (32)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Extensions.Package (6)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (8)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (6)
Microsoft.CodeAnalysis.Features (273)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (19)
377Contract.ThrowIfTrue(startCharacter != text[firstCharIndex.Value]);
378Contract.ThrowIfTrue(lastCharacter != text[lastCharIndex.Value]);
381var totalText = text[firstCharIndex.Value..(lastCharIndex.Value + 1)];
516? new RegexClosedNumericRangeQuantifierNode(expression, openBraceToken, firstNumberToken, commaToken.Value, secondNumberToken.Value, closeBraceToken)
517: new RegexOpenNumericRangeQuantifierNode(expression, openBraceToken, firstNumberToken, commaToken.Value, closeBraceToken);
538firstNumberToken = firstNumber.Value;
557var secondNumberTokenLocal = secondNumberToken.Value;
744return ParseOptionsGroupingNode(openParenToken, questionToken, optionsToken.Value);
809var capture = captureToken.Value;
908if (comment.Value.Diagnostics.Length > 0)
910openParenToken = openParenToken.AddDiagnosticIfNone(comment.Value.Diagnostics[0]);
1011openParenToken, questionToken, openToken, captureToken.Value);
1025var capture = captureToken.Value;
1102var second = secondCapture.Value;
1727var numberToken = number.Value;
1810: captureToken.Value;
2016categoryToken = category.Value;
EmbeddedLanguages\StackFrame\StackFrameParser.cs (12)
54return new StackFrameParser(lexer.Value).TryParseTree();
155var (success, genericIdentifier) = TryScanGenericTypeIdentifier(currentIdentifer.Value);
219(success, rhs) = TryScanGenericTypeIdentifier(identifier.Value);
288return new StackFrameGeneratedMethodNameNode(lessThanToken, identifier.Value, greaterThanToken, dollarToken);
298return TryParseLocalMethodName(lessThanToken, identifier.Value, greaterThanToken);
301return TryParseStateMachineMethodName(lessThanToken, identifier.Value, greaterThanToken);
334return new StackFrameLocalMethodNameNode(encapsulatingMethod, generatedNameSeparator, generatedIdentifier.Value, suffixSeparator, suffix);
357return new StackFrameStateMachineMethodNameNode(encapsulatingMethod, generatedNameSeparator, dotToken, generatedIdentifier.Value);
388return new StackFrameGenericNameNode(identifierToken, graveAccentToken, arity.Value);
417while (currentIdentifier.HasValue && currentIdentifier.Value.Kind == StackFrameKind.IdentifierToken)
419builder.Add(new StackFrameIdentifierNameNode(currentIdentifier.Value));
531return new StackFrameParameterDeclarationNode(typeIdentifier, identifier.Value);
NavigationBar\IRemoteNavigationBarItemService.cs (7)
99RoslynNavigationBarItemKind.Symbol => new SymbolItem(Name!, Text, Glyph, IsObsolete, Location!.Value, ChildItems.SelectAsArray(i => i.Rehydrate()), Indent, Bolded),
100RoslynNavigationBarItemKind.GenerateDefaultConstructor => new GenerateDefaultConstructor(Text, DestinationTypeSymbolKey!.Value),
101RoslynNavigationBarItemKind.GenerateEventHandler => new GenerateEventHandler(Text, Glyph, ContainerName!, EventSymbolKey!.Value, DestinationTypeSymbolKey!.Value),
102RoslynNavigationBarItemKind.GenerateFinalizer => new GenerateFinalizer(Text, DestinationTypeSymbolKey!.Value),
103RoslynNavigationBarItemKind.GenerateMethod => new GenerateMethod(Text, Glyph, DestinationTypeSymbolKey!.Value, MethodToReplicateSymbolKey!.Value),
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
105return result.Value;
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Microsoft.CodeAnalysis.InteractiveHost (10)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (58)
Handler\References\FindUsagesLSPContext.cs (8)
131_workQueue.AddWork(definitionItem.Value);
135_definitionsWithoutReference.Add(_id, definitionItem.Value);
177_workQueue.AddWork(referenceItem.Value);
227Kind = symbolUsageInfo.HasValue ? ProtocolConversions.SymbolUsageInfoToReferenceKinds(symbolUsageInfo.Value) : [],
255return await ProtocolConversions.DocumentSpanToLocationAsync(documentSpan.Value, cancellationToken).ConfigureAwait(false);
310var document = documentSpan.Value.Document;
314documentSpan.Value, classifiedSpans: null, options, cancellationToken).ConfigureAwait(false);
318var classifiedTextRuns = GetClassifiedTextRuns(_id, definitionId, documentSpan.Value, isWrittenTo, classifiedSpans, docText);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (38)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (75)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (65)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Microsoft.CodeAnalysis.Remote.Workspaces (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (65)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
Microsoft.CodeAnalysis.Test.Utilities (31)
Microsoft.CodeAnalysis.Threading.Package (6)
Microsoft.CodeAnalysis.UnitTests (46)
Analyzers\AnalyzerConfigTests.cs (36)
376SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc").Value;
388SectionNameMatcher matcher = TryCreateSectionNameMatcher("*").Value;
399SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.cs").Value;
416SectionNameMatcher matcher = TryCreateSectionNameMatcher("**.cs").Value;
426SectionNameMatcher matcher = TryCreateSectionNameMatcher("...").Value;
446SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab?def").Value;
459SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab\\\\c").Value;
470SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\***\\*\\**").Value;
482SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\??\\?*\\??").Value;
496SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\{\\}def").Value;
508SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\,def").Value;
521SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.{cs,vb,fs}").Value;
542SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs,subdir/test.vb}").Value;
565SectionNameMatcher matcher = TryCreateSectionNameMatcher("{}").Value;
577SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs}").Value;
603SectionNameMatcher matcher = TryCreateSectionNameMatcher("{test{.cs,.vb},other.{a{bb,cc}}}").Value;
623SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{-}cd{-,}ef").Value;
637SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{cs,vb,fs}cd").Value;
660var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
677var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
693var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
711var matcher = TryCreateSectionNameMatcher(matchString).Value;
735var matcher = TryCreateSectionNameMatcher("{0..}").Value;
742matcher = TryCreateSectionNameMatcher("{0..A}").Value;
757var matcher = TryCreateSectionNameMatcher("*.[cf]s").Value;
768var matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value;
781var matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value;
795var matcher = TryCreateSectionNameMatcher("[0-9]x").Value;
808var matcher = TryCreateSectionNameMatcher("[!0-9]x").Value;
821var matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value;
857var matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value;
873var matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value;
888var matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value;
903var matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value;
917var matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value;
932var matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;
Microsoft.CodeAnalysis.VisualBasic (52)
Microsoft.CodeAnalysis.Workspaces (135)
PatternMatching\PatternMatcher.cs (7)
338matches.Add(match.Value);
367matches.Add(result.Value);
381tempMatches.Add(result.Value);
442camelCaseKind.Value, punctuationStripped, isCaseSensitive: false,
462camelCaseKind.Value, punctuationStripped, isCaseSensitive: true,
467camelCaseKindIgnoreCase.Value, punctuationStripped, isCaseSensitive: false,
523var camelCaseResult = new CamelCaseResult(firstMatch == 0, contiguous.Value, matchCount, null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (15)
Microsoft.CodeAnalysis.Workspaces.UnitTests (17)
FindSymbols\NavigateToSearchIndexTests.cs (10)
915Assert.Equal(expectedNameMatchKind, nameMatch.Value.Kind);
978Assert.Equal(actualPatternMatcherKind, nameMatch.Value.Kind);
1139Assert.Equal(PatternMatchKind.Exact, match.Value.Kind);
1161Assert.NotEqual(PatternMatchKind.Fuzzy, match.Value.Kind);
1187Assert.Equal(PatternMatchKind.LowercaseSubstring, match.Value.Kind);
1219Assert.Equal(PatternMatchKind.Fuzzy, match.Value.Kind);
1239Assert.Equal(PatternMatchKind.Exact, match.Value.Kind);
1259Assert.Equal(PatternMatchKind.Exact, match.Value.Kind);
1277Assert.Equal(PatternMatchKind.Exact, match.Value.Kind);
1295Assert.Equal(PatternMatchKind.Exact, match.Value.Kind);
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (3)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (17)
Microsoft.Data.Analysis.Tests (9)
Microsoft.DotNet.ArcadeAzureIntegration (2)
Microsoft.DotNet.ArcadeLogging (6)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (12)
Microsoft.DotNet.SignTool (13)
Microsoft.DotNet.StrongName (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.Evaluation (4)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.OpenAI (3)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Templates.Tests (4)
Microsoft.Extensions.AI.Tests (16)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.SqlServer (6)
Microsoft.Extensions.Caching.StackExchangeRedis (11)
Microsoft.Extensions.Compliance.Redaction (3)
Microsoft.Extensions.Configuration.Xml (3)
Microsoft.Extensions.DataIngestion (7)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.Http (19)
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.Logging.Console (4)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Gen.Logging (3)
Microsoft.Gen.Logging.Generated.Tests (7)
Microsoft.Interop.LibraryImportGenerator (6)
Microsoft.Interop.SourceGeneration (13)
Microsoft.JSInterop (4)
Microsoft.Maui (3)
Microsoft.Maui.Controls (16)
Microsoft.Maui.Controls.Build.Tasks (20)
SetPropertiesVisitor.cs (20)
308 if (TryCompileBindingPath(node, context, vardefref.VariableDefinition, bindingExtensionType.Value, out var instructions))
318 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
320 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "Mode"));
324 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
326 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "Converter"));
330 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
332 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "ConverterParameter"));
336 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
338 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "StringFormat"));
341 if (bindingExtensionType.Value.Item3 == "BindingExtension")
345 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
347 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "Source"));
351 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
353 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "UpdateSourceEventName"));
357 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
359 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "FallbackValue"));
363 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
365 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TargetNullValue"));
372 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
379 yield return Create(Callvirt, module.ImportPropertyGetterReference(context.Cache, bindingExtensionType.Value, propertyName: "TypedBinding"));
Microsoft.Maui.Controls.Foldable (1)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Resizetizer (6)
Microsoft.McpServer.ProjectTemplates.Tests (4)
Microsoft.ML.AutoML (29)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.CodeAnalyzer.Tests (1)
Microsoft.ML.CodeGenerator (1)
Microsoft.ML.Core (8)
Microsoft.ML.Core.Tests (81)
UnitTests\TestEntryPoints.cs (81)
474var avgScoreGetter = curs1.GetGetter<Single>(scoreColumn.Value);
478var medScoreGetter = curs2.GetGetter<Single>(scoreColumn.Value);
482var regScoreGetter = curs3.GetGetter<Single>(scoreColumn.Value);
488individualScoreGetters[i] = curs4.GetGetter<Single>(scoreColumn.Value);
1633var type = binaryScored.Schema[scoreCol.Value.Index].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnKind)?.Type;
1636binaryScored.Schema[scoreCol.Value.Index].Annotations.GetValue(AnnotationUtils.Kinds.ScoreColumnKind, ref kind);
1642type = regressionScored.Schema[scoreCol.Value.Index].Annotations.Schema[AnnotationUtils.Kinds.ScoreColumnKind].Type;
1644regressionScored.Schema[scoreCol.Value.Index].Annotations.GetValue(AnnotationUtils.Kinds.ScoreColumnKind, ref kind);
1650type = anomalyScored.Schema[scoreCol.Value.Index].Annotations.Schema[AnnotationUtils.Kinds.ScoreColumnKind].Type;
1652anomalyScored.Schema[scoreCol.Value.Index].Annotations.GetValue(AnnotationUtils.Kinds.ScoreColumnKind, ref kind);
1686var getter0 = curs0.GetGetter<Single>(scoreColumn.Value);
1689var getter1 = curs1.GetGetter<Single>(scoreColumn.Value);
1692var getter2 = curs2.GetGetter<Single>(scoreColumn.Value);
1695var getter3 = curs3.GetGetter<Single>(scoreColumn.Value);
1698var getter4 = curs4.GetGetter<Single>(scoreColumn.Value);
1701var getterReg = cursReg.GetGetter<Single>(scoreColumn.Value);
1704var getterBin = cursBin.GetGetter<Single>(scoreColumn.Value);
1707var getterBinCali = cursBinCali.GetGetter<Single>(scoreColumn.Value);
1710var getterSaved = cursSaved.GetGetter<Single>(scoreColumn.Value);
1713var getterAnom = cursAnom.GetGetter<Single>(scoreColumn.Value);
1912var getter0 = curs0.GetGetter<Single>(scoreColumn.Value);
1915var getter1 = curs1.GetGetter<Single>(scoreColumn.Value);
1918var getter2 = curs2.GetGetter<Single>(scoreColumn.Value);
1921var getter3 = curs3.GetGetter<Single>(scoreColumn.Value);
1924var getter4 = curs4.GetGetter<Single>(scoreColumn.Value);
1927var getterReg = cursReg.GetGetter<Single>(scoreColumn.Value);
1930var getterBin = cursBin.GetGetter<Single>(scoreColumn.Value);
1933var getterBinCali = cursBinCali.GetGetter<Single>(scoreColumn.Value);
1936var getterSaved = cursSaved.GetGetter<Single>(scoreColumn.Value);
2070var getter0 = curs0.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2073var getter1 = curs1.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2076var getter2 = curs2.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2079var getter3 = curs3.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2082var getter4 = curs4.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2085var getter = curs.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2088var getterSaved = cursSaved.GetGetter<VBuffer<Single>>(scoreColumn.Value);
2536var catGetter = cursor.GetGetter<ReadOnlyMemory<char>>(catColumn.Value);
2539var catValueGetter = cursor.GetGetter<ReadOnlyMemory<char>>(catValueCol.Value);
2542var keyGetter = cursor.GetGetter<uint>(keyColumn.Value);
3619var aucGetter = cursor.GetGetter<double>(aucCol.Value);
3724var aucGetter = cursor.GetGetter<double>(aucCol.Value);
3890var aucGetter = cursor.GetGetter<double>(aucCol.Value);
4082var aucGetter = cursor.GetGetter<double>(aucColumn.Value);
4426var predictedLabelGetter = cursor.GetGetter<ReadOnlyMemory<char>>(predictedLabelCol.Value);
4493using (var curs = view.GetRowCursor(treesCol.Value, leavesCol.Value, pathsCol.Value))
4495var treesGetter = curs.GetGetter<VBuffer<float>>(treesCol.Value);
4496var leavesGetter = curs.GetGetter<VBuffer<float>>(leavesCol.Value);
4497var pathsGetter = curs.GetGetter<VBuffer<float>>(pathsCol.Value);
4546var featGetter = cursor.GetGetter<VBuffer<float>>(featColumn.Value);
5001using (var cursor = data.GetRowCursor(aucCol.Value))
5003var getter = cursor.GetGetter<double>(aucCol.Value);
5179using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value, isWeightedCol.Value))
5181var getter = cursor.GetGetter<double>(metricCol.Value);
5182var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value);
5184var isWeightedGetter = cursor.GetGetter<bool>(isWeightedCol.Value);
5361using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value))
5363var getter = cursor.GetGetter<double>(metricCol.Value);
5364var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value);
5417var countGetter = curs.GetGetter<VBuffer<double>>(countCol.Value);
5418var foldGetter = curs.GetGetter<ReadOnlyMemory<char>>(foldCol.Value);
5587using (var cursor = warnings.GetRowCursor(warningCol.Value))
5589var getter = cursor.GetGetter<ReadOnlyMemory<char>>(warningCol.Value);
5770using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value))
5772var getter = cursor.GetGetter<double>(metricCol.Value);
5773var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value);
6070using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value))
6072var getter = cursor.GetGetter<VBuffer<double>>(metricCol.Value);
6073var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value);
6122using (var cursor = data.GetRowCursor(nameCol.Value))
6124var getter = cursor.GetGetter<ReadOnlyMemory<char>>(nameCol.Value);
6287using (var cursor = data.GetRowCursor(accCol.Value))
6289var getter = cursor.GetGetter<double>(accCol.Value);
6459using (var cursor = data.GetRowCursor(accCol.Value))
6461var getter = cursor.GetGetter<double>(accCol.Value);
Microsoft.ML.Data (159)
Evaluators\AnomalyDetectionEvaluator.cs (9)
102t = schema.Label.Value.Type;
104throw Host.ExceptSchemaMismatch(nameof(schema), "label", schema.Label.Value.Name, "Single or a Key with cardinality 2", t.ToString());
109return new Aggregator(Host, _aucCount, _numTopResults, _k, _p, _streaming, schema.Name == null ? -1 : schema.Name.Value.Index, stratName);
509_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index);
675var instanceGetter = cursor.GetGetter<ReadOnlyMemory<char>>(column.Value);
680var scoreGetter = cursor.GetGetter<Single>(column.Value);
685var labelGetter = cursor.GetGetter<Single>(column.Value);
729var numAnomGetter = cursor.GetGetter<long>(numAnom.Value);
795yield return schema.Label.Value.Name;
Evaluators\BinaryClassifierEvaluator.cs (9)
134t = schema.Label.Value.Type;
136throw host.ExceptSchemaMismatch(nameof(schema), "label", schema.Label.Value.Name, "Single, Double, Boolean, or a Key with cardinality 2", t.ToString());
176var labelCol = schema.Label.Value;
199return new BinaryPerInstanceEvaluator(Host, schema.Schema, scoreInfo.Name, probCol, schema.Label.Value.Name, _threshold, _useRaw);
627_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index);
642_weightGetter = row.GetGetter<Single>(schema.Weight.Value);
1351cols = AnnotationUtils.Prepend(cols, RoleMappedSchema.CreatePair(AnnotationUtils.Const.ScoreValueKind.Probability, probCol.Value.Name));
1478yield return schema.Label.Value.Name;
1487yield return probCol.Value.Name;
Evaluators\RankingEvaluator.cs (13)
98var t = schema.Label.Value.Type;
102"label", schema.Label.Value.Name, "Single or a Key", t.ToString());
114var t = schema.Group.Value.Type;
118"group", schema.Group.Value.Name, "Key", t.ToString());
126return i => i == schema.Group.Value.Index || pred(i);
142data.Schema.Label.Value.Name, scoreInfo.Name, data.Schema.Group.Value.Name, _truncationLevel, _labelGains);
460_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index);
462_newGroupDel = RowCursorUtils.GetIsNewGroupDelegate(row, schema.Group.Value.Index);
464_weightGetter = row.GetGetter<Single>(schema.Weight.Value);
468ValueGetter<StringBuilder> groupIdBuilder = RowCursorUtils.GetGetterAsStringBuilder(row, schema.Group.Value.Index);
947yield return schema.Group.Value.Name;
948yield return schema.Label.Value.Name;
Prediction\Calibrator.cs (3)
963new DataViewSchema.Column[] { labelCol, scoreCol, weightCol.Value } :
971RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, cursor, weightCol.Value.Index);
1024return TrainCalibrator(env, ch, caliTrainer, scored, data.Schema.Label.Value.Name, DefaultColumnNames.Score, data.Schema.Weight?.Name, maxRows);
Microsoft.ML.DataView (3)
Microsoft.ML.Ensemble (15)
Microsoft.ML.EntryPoints (6)
Microsoft.ML.FastTree (25)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (13)
Microsoft.ML.Mkl.Components (15)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.Parquet (1)
Microsoft.ML.PCA (1)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Predictor.Tests (12)
Microsoft.ML.Recommender (6)
Microsoft.ML.ResultProcessor (8)
Microsoft.ML.Samples (1)
Microsoft.ML.SearchSpace (4)
Microsoft.ML.StandardTrainers (49)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow.Tests (6)
Microsoft.ML.TestFramework (9)
Microsoft.ML.TimeSeries (9)
Microsoft.ML.Tokenizers (19)
Model\CodeGenTokenizer.cs (11)
382tokens.Add(new EncodedToken(BeginningOfSentenceId.Value, BeginningOfSentenceToken!, new Range(0, 0)));
402tokens.Add(new EncodedToken(EndOfSentenceId.Value, EndOfSentenceToken!, new Range(index, index)));
622ids.Add(BeginningOfSentenceId.Value);
648ids.Add(EndOfSentenceId.Value);
1262if (BeginningOfSentenceId.HasValue && id == BeginningOfSentenceId.Value)
1271if (EndOfSentenceId.HasValue && id == EndOfSentenceId.Value)
1280if (UnknownTokenId.HasValue && id == UnknownTokenId.Value)
1370if (BeginningOfSentenceId.HasValue && id == BeginningOfSentenceId.Value)
1393if (EndOfSentenceId.HasValue && id == EndOfSentenceId.Value)
1416if (UnknownTokenId.HasValue && id == UnknownTokenId.Value)
1669result.Add(GetToken(UnknownTokenId.Value, UnknownToken!, symbols[index].pieceSpan.Index, symbols[index].pieceSpan.Length, originalText, mapping));
Microsoft.ML.Tokenizers.Tests (43)
CodeGenTests.cs (43)
553idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value);
576idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value);
610Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
612Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
614Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
616Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
618Assert.NotEqual(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
620Assert.NotEqual(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
622Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
624Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
686idList.Add(codeGenTokenizer.EndOfSentenceId!.Value);
709idList.Add(codeGenTokenizer.EndOfSentenceId!.Value);
743Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
745Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
747Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
749Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
751Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
753Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
755Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
757Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
819idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value);
820idList.Add(codeGenTokenizer.EndOfSentenceId!.Value);
848idList.Insert(0, codeGenTokenizer.BeginningOfSentenceId!.Value);
849idList.Add(codeGenTokenizer.EndOfSentenceId!.Value);
890Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
891Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
893Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
894Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
896Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
897Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
899Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
900Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
902Assert.NotEqual(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
903Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
905Assert.NotEqual(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
906Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
908Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
909Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
911Assert.Equal(codeGenTokenizer.BeginningOfSentenceId.Value, ids[0]);
912Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
974Assert.Equal(codeGenTokenizer.EncodeToIds(DefaultSpecialToken)[0], codeGenTokenizer.BeginningOfSentenceId!.Value);
975Assert.Equal(codeGenTokenizer.EncodeToIds(DefaultSpecialToken)[0], codeGenTokenizer.EndOfSentenceId!.Value);
976Assert.Equal(codeGenTokenizer.EncodeToIds(DefaultSpecialToken)[0], codeGenTokenizer.UnknownTokenId!.Value);
Microsoft.ML.TorchSharp (2)
Microsoft.ML.Transforms (74)
Microsoft.ML.Vision (1)
Microsoft.Net.Http.Headers (7)
Microsoft.VisualStudio.Extensibility.Testing.Xunit (2)
Microsoft.VisualStudio.LanguageServices (112)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (9)
425mappedDocumentSpan.Value,
460mappedDocumentSpan.Value,
480var result = await DocumentExcerptHelper.TryExcerptAsync(document, sourceSpan, ExcerptMode.SingleLine, options.Value, cancellationToken).ConfigureAwait(false);
482return (result.Value, AbstractDocumentSpanEntry.GetLineContainingPosition(result.Value.Content, result.Value.MappedSpan.Start));
490documentSpan, classifiedSpans, options.Value, cancellationToken).ConfigureAwait(false);
496classifiedSpans.Value.HighlightSpan,
497classifiedSpans.Value.ClassifiedSpans,
Microsoft.VisualStudio.LanguageServices.CodeLens (4)
Microsoft.VisualStudio.LanguageServices.CSharp (10)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
Microsoft.VisualStudio.LanguageServices.DevKit (11)
Microsoft.VisualStudio.LanguageServices.Implementation (27)
MSBuild (6)
MSBuildTaskHost (3)
Mvc.Api.Analyzers.Test (12)
ActualApiResponseMetadataFactoryTest.cs (12)
101Assert.Equal(401, metadata.Value.StatusCode);
115Assert.True(metadata.Value.IsDefaultResponse);
129Assert.Equal(201, metadata.Value.StatusCode);
143Assert.Equal(204, metadata.Value.StatusCode);
157Assert.Equal(302, metadata.Value.StatusCode);
171Assert.Equal(422, metadata.Value.StatusCode);
185Assert.Equal(423, metadata.Value.StatusCode);
214Assert.Equal(400, metadata.Value.StatusCode);
228Assert.Equal("TestModel", metadata.Value.ReturnType.Name);
242Assert.Equal("TestModel", metadata.Value.ReturnType.Name);
256Assert.Equal("TestModel", metadata.Value.ReturnType.Name);
270Assert.Null(metadata.Value.ReturnType);
NativeIISSample (1)
PresentationBuildTasks (1)
PresentationCore (265)
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
99unit.Value,
System\Windows\Media\Animation\Clock.cs (44)
674(_parent.InternalNextTickNeededTime.HasValue && _parent.InternalNextTickNeededTime.Value < InternalNextTickNeededTime.Value)))
978_rootData.PendingSeekDestination = effectiveDuration.Value; // Seek to the end time
1243return expirationTime.Value;
1791_beginTime = CurrentGlobalTime - DivideTimeSpan(_rootData.PendingSeekDestination.Value, _appliedSpeedRatio);
1849double pendingSpeedRatio = _rootData.PendingSpeedRatio.Value * _timeline.SpeedRatio;
1867_currentIterationBeginTime = previewParentTime - MultiplyTimeSpan(previewParentTime - _currentIterationBeginTime.Value,
1872_beginTime = previewParentTime - MultiplyTimeSpan(previewParentTime - _beginTime.Value,
1884_rootData.InteractiveSpeedRatio = _rootData.PendingSpeedRatio.Value;
1920: InternalNextTickNeededTime.Value;
1943Debug.Assert(parentTime >= _beginTime.Value); // We are active or in postfill
1948TimeSpan beginTimeForOffsetComputation = _currentIterationBeginTime ?? _beginTime.Value;
2157if (!InternalNextTickNeededTime.HasValue || proposedNextTickTime < InternalNextTickNeededTime.Value)
2191TimeSpan offsetFromBegin = MultiplyTimeSpan(parentTime - _currentIterationBeginTime.Value, _appliedSpeedRatio);
2234newIteration = _currentIteration.HasValue ? iterationIncrement + (_currentIteration.Value - 1)
2275parentTime = expirationTime.Value; // Clamp parent time to expiration time
2519presentAndFutureIterations -= (_currentIteration.Value - 1);
2520previousIterationDuration = _currentIterationBeginTime.Value - _beginTime.Value;
2597activePeriod = TimeIntervalCollection.CreateClosedOpenInterval(_beginTime.Value, expirationTime.Value);
2602activePeriod = TimeIntervalCollection.CreateInfiniteClosedInterval(_beginTime.Value);
2800TimeIntervalCollection fillPeriod = TimeIntervalCollection.CreateInfiniteClosedInterval(endOfActivePeriod.Value);
2804TimeSpan relativeBeginTime = _currentIterationBeginTime ?? _beginTime.Value;
2806relativeBeginTime, endOfActivePeriod.Value,
2831TimeSpan relativeBeginTime = _currentIterationBeginTime ?? _beginTime.Value;
2901ComputeSyncSlip(ref parentIntervalCollection, parentTime.Value, parentSpeed.Value);
2927ComputeSyncEnter(ref parentIntervalCollection, parentTime.Value);
2948parentTimeValue = parentTime.Value;
2951if (ComputeNextTickNeededTime(expirationTime, parentTimeValue, parentSpeed.Value))
2957if (ComputeCurrentState(expirationTime, ref parentTimeValue, parentSpeed.Value, performTickOperations))
2963if (ComputeCurrentIteration(parentTimeValue, parentSpeed.Value,
3017TimeSpan timeUntilBegin = MultiplyTimeSpan(_beginTime.Value - parentTime, invertedParentSpeed);
3033TimeSpan timeUntilExpiration = MultiplyTimeSpan(expirationTime.Value - parentTime, invertedParentSpeed);
3036(!timeUntilNextBoundary.HasValue || timeUntilExpiration < timeUntilNextBoundary.Value))
3171if (_beginTime.HasValue && currentParentTimePT >= _beginTime.Value)
3173TimeSpan relativeBeginTimePT = _currentIterationBeginTime ?? _beginTime.Value;
3189if (!expirationTimePT.HasValue || currentParentTimePT < expirationTimePT.Value)
3234|| previousSyncParentTimeSPT.Value <= _syncData.SyncClockBeginTime)
3319(_syncData.PreviousRepeatTime + syncTimeST >= effectiveDurationST.Value))
3582_rootData.DesiredFrameRate = desiredFrameRate.Value;
4013return (_previousRepeatTime + _syncClock.GetCurrentTimeCore() >= _syncClockEffectiveDuration.Value);
4062return _syncClockBeginTime.Value;
PresentationFramework (155)
System\Windows\Controls\Calendar.cs (44)
220if (c.DisplayDateStart.HasValue && (date < c.DisplayDateStart.Value))
222value = c.DisplayDateStart.Value;
224else if (c.DisplayDateEnd.HasValue && (date > c.DisplayDateEnd.Value))
226value = c.DisplayDateEnd.Value;
278if (c.DisplayDateStart.HasValue && (date.Value < c.DisplayDateStart.Value))
284if (maxSelectedDate.HasValue && (date.Value < maxSelectedDate.Value))
341if (minSelectedDate.HasValue && (date.Value > minSelectedDate.Value))
556if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value))
559c.SelectedDates.Add(addedDate.Value);
568c.CurrentDate = addedDate.Value;
766return this.SelectedDate.Value.ToString(DateTimeHelper.GetDateFormat(DateTimeHelper.GetCulture(this)));
941this.DisplayDate = newDate.Value;
986DateTime d = date.Value.Date;
1021MoveDisplayTo(DateTimeHelper.DiscardDayTime(nextDate.Value));
1030MoveDisplayTo(DateTimeHelper.DiscardDayTime(nextDate.Value));
1102this.SelectedDates.AddRange(this.HoverStart.Value, this.CurrentDate);
1180this.SetCurrentValueInternal(DisplayDateProperty, selectedMonth.Value);
1184FocusDate(selectedMonth.Value);
1193this.SetCurrentValueInternal(DisplayDateProperty, selectedYear.Value);
1197FocusDate(selectedYear.Value);
1219if (c.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(c.SelectedDate.Value, c.DisplayDateInternal) == 0)
1221c.FocusDate(c.SelectedDate.Value);
1366if (DateTimeHelper.CompareYearMonth(DateTime.MaxValue, selectedDate.Value) > 0)
1369selectedDate = DateTimeHelper.AddMonths(selectedDate.Value, 1).Value;
1370selectedDate = DateTimeHelper.AddDays(selectedDate.Value, -1).Value;
1562OnDayClick(lastSelectedDate.Value);
1566if (lastSelectedDate != null && IsValidKeyboardSelection(this, lastSelectedDate.Value))
1582if (DateTime.Compare(this.HoverStart.Value, lastSelectedDate.Value) < 0)
1584range = new CalendarDateRange(this.HoverStart.Value, lastSelectedDate.Value);
1588range = new CalendarDateRange(lastSelectedDate.Value, this.HoverStart.Value);
1601this.HoverStart = this.HoverEnd = this.CurrentDate = lastSelectedDate.Value;
1603OnDayClick(lastSelectedDate.Value);
1609this.CurrentDate = lastSelectedDate.Value;
1613this.SelectedDates[0] = lastSelectedDate.Value;
1617this.SelectedDates.Add(lastSelectedDate.Value);
1620OnDayClick(lastSelectedDate.Value);
PresentationUI (9)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
162date.Value);
ReachFramework (8)
Roslyn.Diagnostics.Analyzers (75)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
Roslyn.Diagnostics.CSharp.Analyzers (55)
Roslyn.VisualStudio.Next.UnitTests (8)
RunTests (3)
Shared (2)
SignalRSamples (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (6)
System.Data.Common (9)
System.Data.Odbc (3)
System.Diagnostics.DiagnosticSource (4)
System.Diagnostics.Process (11)
System.Diagnostics.StackTrace (3)
System.Drawing.Common (1)
System.Formats.Asn1 (22)
System.Formats.Cbor (15)
System.Formats.Nrbf (1)
System.Formats.Tar (6)
System.IO.Compression (11)
System.IO.Compression.ZipFile (2)
System.IO.Packaging (1)
System.IO.Ports (2)
System.Linq.Expressions (3)
System.Linq.Parallel (13)
System.Net.Http (12)
System.Net.HttpListener (1)
System.Net.Sockets (1)
System.Net.WebProxy (1)
System.Net.WebSockets (1)
System.Private.CoreLib (3)
System.Private.DataContractSerialization (4)
System.Private.Windows.Core (18)
System.Private.Windows.Core.Tests (35)
System\Value\StoringEnum.cs (13)
33Assert.Equal(day.Value, outDay);
72Assert.Equal(@enum, nullResult!.Value);
77Assert.Equal(@enum, nullResult!.Value);
84Assert.Equal(@enum, nullResult!.Value);
89Assert.Equal(@enum, nullResult!.Value);
101Assert.Equal(@enum, nullResult!.Value);
106Assert.Equal(@enum, nullResult!.Value);
113Assert.Equal(@enum, nullResult!.Value);
118Assert.Equal(@enum, nullResult!.Value);
130Assert.Equal(@enum, nullResult!.Value);
135Assert.Equal(@enum, nullResult!.Value);
142Assert.Equal(@enum, nullResult!.Value);
147Assert.Equal(@enum, nullResult!.Value);
System.Private.Xml (3)
System.Reflection.Metadata (11)
System.Security.Cryptography (105)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (9)
53if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) ||
62writer.WriteEncodedValue(Certificate.Value.Span);
78if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) ||
87writer.WriteEncodedValue(ExtendedCertificate.Value.Span);
103if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) ||
112writer.WriteEncodedValue(AttributeCertificateV1.Value.Span);
128if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) ||
137writer.WriteEncodedValue(AttributeCertificateV2.Value.Span);
151OtherCertificateFormat.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 3));
System.Security.Cryptography.Cose (15)
System.Security.Cryptography.Pkcs (155)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (9)
53if (!Asn1Tag.TryDecode(Certificate.Value.Span, out Asn1Tag validateTag, out _) ||
62writer.WriteEncodedValue(Certificate.Value.Span);
78if (!Asn1Tag.TryDecode(ExtendedCertificate.Value.Span, out Asn1Tag validateTag, out _) ||
87writer.WriteEncodedValue(ExtendedCertificate.Value.Span);
103if (!Asn1Tag.TryDecode(AttributeCertificateV1.Value.Span, out Asn1Tag validateTag, out _) ||
112writer.WriteEncodedValue(AttributeCertificateV1.Value.Span);
128if (!Asn1Tag.TryDecode(AttributeCertificateV2.Value.Span, out Asn1Tag validateTag, out _) ||
137writer.WriteEncodedValue(AttributeCertificateV2.Value.Span);
151OtherCertificateFormat.Value.Encode(writer, new Asn1Tag(TagClass.ContextSpecific, 3));
System.ServiceModel.Federation (2)
System.ServiceModel.Http (2)
System.ServiceModel.Primitives (2)
System.ServiceModel.Syndication (5)
System.Text.Json (38)
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (16)
25public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<bool>(value.Value, JsonMetadataServices.BooleanConverter, options) : null;
41public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<byte>(value.Value, JsonMetadataServices.ByteConverter, options) : null;
57public static JsonValue? Create(char? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<char>(value.Value, JsonMetadataServices.CharConverter, options) : null;
73public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTime>(value.Value, JsonMetadataServices.DateTimeConverter, options) : null;
89public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<DateTimeOffset>(value.Value, JsonMetadataServices.DateTimeOffsetConverter, options) : null;
105public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<decimal>(value.Value, JsonMetadataServices.DecimalConverter, options) : null;
121public static JsonValue? Create(double? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<double>(value.Value, JsonMetadataServices.DoubleConverter, options) : null;
137public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<Guid>(value.Value, JsonMetadataServices.GuidConverter, options) : null;
153public static JsonValue? Create(short? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<short>(value.Value, JsonMetadataServices.Int16Converter, options) : null;
169public static JsonValue? Create(int? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<int>(value.Value, JsonMetadataServices.Int32Converter, options) : null;
185public static JsonValue? Create(long? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<long>(value.Value, JsonMetadataServices.Int64Converter, options) : null;
203public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<sbyte>(value.Value, JsonMetadataServices.SByteConverter, options) : null;
219public static JsonValue? Create(float? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<float>(value.Value, JsonMetadataServices.SingleConverter, options) : null;
246public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ushort>(value.Value, JsonMetadataServices.UInt16Converter, options) : null;
264public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<uint>(value.Value, JsonMetadataServices.UInt32Converter, options) : null;
282public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) => value.HasValue ? new JsonValuePrimitive<ulong>(value.Value, JsonMetadataServices.UInt64Converter, options) : null;
System.Text.Json.SourceGeneration (7)
System.Text.RegularExpressions (13)
System.Text.RegularExpressions.Generator (16)
RegexGenerator.Emitter.cs (11)
137rm.MatchTimeout is not null ? $"new({Literal(rm.Pattern)}, {Literal(rm.Options)}, {GetTimeoutExpression(rm.MatchTimeout.Value)});" :
171writer.WriteLine($" base.internalMatchTimeout = {GetTimeoutExpression(rm.MatchTimeout.Value)};");
1354indexOf = (primarySet.Range.Value.LowInclusive == primarySet.Range.Value.HighInclusive, primarySet.Negated) switch
1356(false, false) => $"{span}.IndexOfAnyInRange({Literal(primarySet.Range.Value.LowInclusive)}, {Literal(primarySet.Range.Value.HighInclusive)})",
1357(true, false) => $"{span}.IndexOf({Literal(primarySet.Range.Value.LowInclusive)})",
1358(false, true) => $"{span}.IndexOfAnyExceptInRange({Literal(primarySet.Range.Value.LowInclusive)}, {Literal(primarySet.Range.Value.HighInclusive)})",
1359(true, true) => $"{span}.IndexOfAnyExcept({Literal(primarySet.Range.Value.LowInclusive)})",
1500(RegexNode LoopNode, (char Char, string? String, StringComparison StringComparison, char[]? Chars) Literal) target = regexTree.FindOptimizations.LiteralAfterLoop.Value;
System.Threading.RateLimiting (4)
System.Threading.Tasks.Dataflow (1)
System.Windows.Controls.Ribbon (7)
System.Windows.Forms (27)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Primitives.TestUtilities (8)
System.Windows.Forms.PrivateSourceGenerators (2)
System.Windows.Forms.Tests (44)
System.Windows.Input.Manipulations (1)
System.Xaml (12)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (6)
Templates.Blazor.WebAssembly.Tests (6)
Templates.Mvc.Tests (6)
Templates.Tests (6)
Test.Utilities (65)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
TestProject.AppHost (1)
Text.Analyzers (75)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
49return result.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
65modifiers: modifiers.Value,
vbc (2)
VBCSCompiler (6)
VBCSCompiler.UnitTests (1)
WindowsBase.Tests (2)
xunit.assert (13)
Sdk\Exceptions\DoesNotContainException.cs (4)
50 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
77 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
144 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
171 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
Sdk\Exceptions\EqualException.cs (2)
124 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2}{3})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex, expectedTypeText);
129 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2}{3})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex, actualTypeText);
Sdk\Exceptions\NotEqualException.cs (2)
98 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex);
103 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex);