38 writes to Value
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1326Interlocked.Add(ref totalTicks.Value, elapsed);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
275completed.Value = true;
Microsoft.CodeAnalysis.CSharp (1)
CodeGen\EmitStatement.cs (1)
481EmitCondBranch(top.condition, ref top.destBox.Value, top.sense);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
InteractiveSessionTests.cs (3)
2030globals.Value = cancellationSource; 2064globals.Value = cancellationSource; 2098globals.Value = cancellationSource;
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\EnumFlagsSetting.cs (1)
46return _valueStorage.Value = _conversions.From(flags);
EditorConfigSettings\Data\Setting.cs (1)
78valueStorage.Value = initialValue;
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
275completed.Value = true;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\RequestContext.cs (1)
333_lspSolution.Value = default;
Microsoft.CodeAnalysis.Scripting (1)
ScriptExecutionState.cs (1)
151exceptionHolderOpt.Value = exception;
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\HostDiagnosticAnalyzers.cs (2)
345box.Value ??= ImmutableDictionary<string, SkippedHostAnalyzersInfo>.Empty; 350box.Value = box.Value.Add(project.Language, info);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (2)
110_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 130_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
103counter.Value++;
Microsoft.VisualStudio.Extensibility.Testing.Xunit (3)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\DataCollectionService.cs (1)
158logged.Value = true;
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Threading\IdeFactDiscoverer.cs (1)
229result.Value = merge(value, result.Value);
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Threading\IdeInstanceTestCase.cs (1)
46var testCase = ImmutableInterlocked.GetOrAdd(ref lazyInstances.Value, visualStudioInstanceKey, candidateTestCase);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\CheckBoxEnumFlagsViewModel.cs (2)
54_valueStorage.Value = flags; 80_valueStorage.Value = _conversions.From(flags);
System.Collections.Concurrent (5)
System\Collections\Concurrent\PartitionerStatic.cs (5)
428_localOffset.Value++; 463_localOffset.Value = 0; 924return _enumerable.GrabChunk(_localList, requestedChunkSize, ref _currentChunkSize!.Value); 1112_currentChunkSize!.Value = (int)(newSharedIndex - oldSharedIndex); 1113_localOffset!.Value = -1;
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1704nullCase.Value = caseOffset;
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (2)
33Value = value; 39set => Value = (T)value!;
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
950m_lockObjAndDisposed.Value = true;
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoderSettings.cs (1)
235return ref newBitmap.Value;
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
2122_completed.Value = Task;
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\ParallelRangeManager.cs (2)
121fixed (long* indexPtr = &sharedCurrentIndexOffset.Value) 129nMyOffset = Interlocked.Add(ref sharedCurrentIndexOffset.Value, _nIncrementValue) - _nIncrementValue;
System.Windows.Forms (1)
System\Windows\Forms\PropertyStore.cs (1)
225storedValue.Value = value;
System.Windows.Forms.UI.IntegrationTests (3)
Infra\DataCollectionService.cs (1)
142logged.Value = true;
Infra\DenyExecutionSynchronizationContext.cs (2)
54_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 73_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
184 references to Value
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Metrics (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Metrics.Legacy (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
234return _analyzerExecutionTimeMap.ToImmutableDictionary(pair => pair.Key, pair => TimeSpan.FromTicks(pair.Value.Value)); 1660return TimeSpan.FromTicks(executionTime.Value);
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (19)
386this.GetOrCreateAnalyzerActions().Value.AddCompilationStartAction(analyzerAction); 392GetOrCreateAnalyzerActions().Value.EnableConcurrentExecution(); 502return this.GetOrCreateAnalyzerActions().Value; 508this.GetOrCreateAnalyzerActions().Value.AddCompilationAction(analyzerAction); 514this.GetOrCreateAnalyzerActions().Value.AddCompilationEndAction(analyzerAction); 520this.GetOrCreateAnalyzerActions().Value.AddSemanticModelAction(analyzerAction); 526this.GetOrCreateAnalyzerActions().Value.AddSyntaxTreeAction(analyzerAction); 532this.GetOrCreateAnalyzerActions().Value.AddAdditionalFileAction(analyzerAction); 538this.GetOrCreateAnalyzerActions().Value.AddSymbolAction(analyzerAction); 600this.GetOrCreateAnalyzerActions().Value.AddSymbolStartAction(analyzerAction); 606this.GetOrCreateAnalyzerActions().Value.AddSymbolEndAction(analyzerAction); 612this.GetOrCreateAnalyzerActions().Value.AddCodeBlockStartAction(analyzerAction); 618this.GetOrCreateAnalyzerActions().Value.AddCodeBlockEndAction(analyzerAction); 624this.GetOrCreateAnalyzerActions().Value.AddCodeBlockAction(analyzerAction); 630this.GetOrCreateAnalyzerActions().Value.AddSyntaxNodeAction(analyzerAction); 636this.GetOrCreateAnalyzerActions().Value.AddOperationBlockStartAction(analyzerAction); 642this.GetOrCreateAnalyzerActions().Value.AddOperationBlockEndAction(analyzerAction); 648this.GetOrCreateAnalyzerActions().Value.AddOperationBlockAction(analyzerAction); 654this.GetOrCreateAnalyzerActions().Value.AddOperationAction(analyzerAction);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
237return _lazySuppressMessageAttribute.Value; 253return _lazyUnconditionalSuppressMessageAttribute.Value;
InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
216if (completed.Value) 239if (completed.Value) 268if (!completed.Value && !context.FilterSpan.HasValue)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\EmitStatement.cs (3)
437object? fallThrough = top.destBox.Value; 475dest = destBox.Value; 486dest = destBox.Value;
Compilation\CSharpCompilation.cs (1)
5272if (typeDecl.MemberNames.Value.Contains(_name))
Declarations\DeclarationTable.cs (2)
255t => t.MemberNames.Value.Contains(name), 269foreach (var name in t.MemberNames.Value)
Declarations\DeclarationTreeBuilder.cs (3)
1067memberNames = previousMemberNames.Value.Count == memberNamesBuilder.Count && previousMemberNames.Value.SetEquals(memberNamesBuilder) 1077if (memberNames.Value.Count > 0)
Declarations\MergedTypeDeclaration.cs (1)
263var names = UnionCollection<string>.Create(this.Declarations, d => d.MemberNames.Value);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
102return lazyNullableContext.Value;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
428return uncommon.LazyExtensionParameter.Value;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
112return _lazyExtensionParameter.Value;
Symbols\Source\SourcePropertySymbolBase.cs (2)
787return _lazyMergedBackingField.Value; 807Debug.Assert((object?)_lazyMergedBackingField.Value == backingField);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
507return _lazyExtensionParameter.Value;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
DeclarationTests.cs (26)
521Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 526Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 534Assert.True(type3.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "w", "x", "y", "z" })); 574Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 579Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 617Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 622Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 670Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 673Assert.True(type1b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 678Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 681Assert.True(type2b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 725Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 728Assert.True(type1b.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "a", "b", "c" })); 733Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 774Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 779Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 817Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 822Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 864Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 869Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 909Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 914Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 954Assert.True(type1a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 959Assert.True(type2a.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 988Assert.True(type1.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" })); 989Assert.True(type2.MergedDeclaration.Declarations[0].MemberNames.Value.SetEquals(new[] { "x", "y", "z" }));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
208return hasAliases.Value;
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\EnumFlagsSetting.cs (2)
36var flags = _conversions.To(_valueStorage.Value); 50=> (_conversions.To(_valueStorage.Value) & _flag) == _flag;
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
521itemData = boxedItemData.Value;
Microsoft.CodeAnalysis.Features (7)
AddImport\AbstractAddImportFeatureService.cs (1)
405static reference => new StrongBox<bool>(ComputeIsInPackagesDirectory(reference))).Value;
Common\AbstractProjectExtensionProvider.cs (2)
39extensions = providers.Value; 63=> s_referencesToExtensionsMap.GetValue(analyzerReferences, _ => new(ComputeExtensions(language, analyzerReferences))).Value;
Diagnostics\Service\DiagnosticAnalyzerService.HostAnalyzerInfo.cs (1)
93return lazyAnalyzers.Value;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
216if (completed.Value) 239if (completed.Value) 268if (!completed.Value && !context.FilterSpan.HasValue)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\RequestContext.cs (4)
76return _lspSolution.Value.Workspace ?? throw new InvalidOperationException(); 95return _lspSolution.Value.Solution ?? throw new InvalidOperationException(); 139if (_lspSolution.Value.Workspace is null) 144return _lspSolution.Value.Document;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
132var generatorPresence = analyzerReferenceMap.GetValue(analyzerReference, callback).Value;
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
583return new ScriptState<T>(executionState, this, result, exceptionOpt?.Value);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
236Return _lazyOverloadResolutionPriority.Value
Symbols\Source\SourceModuleSymbol.vb (1)
717diagnostics.AddRange(Me._lazyBoundImportsAdditionalDiagnostics.Value, allowMismatchInDependencyAccumulation:=True)
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\HostDiagnosticAnalyzers.cs (4)
338if (box.Value != null && box.Value.TryGetValue(project.Language, out var info)) 347if (!box.Value.TryGetValue(project.Language, out info)) 350box.Value = box.Value.Add(project.Language, info);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
49tuple.Value.checksum != checksum) 64return await tuple.Value.lazyProjectIndex.GetValueAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
128var textAndDirectivesChecksum = CodeAnalysis.Checksum.Create(textChecksum, directivesChecksum.Value);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Workspace\Solution\FileTextLoader.cs (1)
68GetType(), _ => new StrongBox<bool>(new Func<Stream, Workspace, SourceText>(CreateText).Method.DeclaringType != typeof(FileTextLoader))).Value;
Workspace\Solution\StateChecksums.cs (2)
595return checksumCollection.Value; 600=> s_objectToChecksumCollectionCache.GetValue(value, _ => new StrongBox<TResult>(checksumCreator(value, arg))).Value;
Workspace\Solution\TextLoader.cs (1)
65_ => new StrongBox<bool>(new Func<Workspace, DocumentId, CancellationToken, Task<TextAndVersion>>(LoadTextAndVersionAsync).Method.DeclaringType != typeof(TextLoader))).Value)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (4)
91if (_failedTransfer.Value == null) 96_failedTransfer.Value.Throw(); 103if (_failedTransfer.Value == null) 123if (_failedTransfer.Value == null)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
102Assert.Equal(0, counter.Value);
Microsoft.VisualStudio.Extensibility.Testing.Xunit (3)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Harness\DataCollectionService.cs (1)
152if (logged.Value)
src\VisualStudio\IntegrationTest\Harness\XUnitShared\Threading\IdeFactDiscoverer.cs (2)
229result.Value = merge(value, result.Value); 238return result.Value;
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\Logging\RoslynWorkspaceStructureLogger.cs (1)
348new XAttribute("objectId", compilationId.Value),
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\CheckBoxEnumFlagsViewModel.cs (2)
70var flags = _conversions.To(_valueStorage.Value); 82Info.SetOptionAndUpdatePreview(_valueStorage.Value, Option, GetPreview());
Roslyn.Diagnostics.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
System.Collections.Concurrent (24)
System\Collections\Concurrent\PartitionerStatic.cs (24)
425if (_localOffset.Value < _currentChunkSize.Value - 1) 437Debug.Assert(_localOffset.Value == _currentChunkSize.Value - 1 || _currentChunkSize.Value == 0); 441if (_currentChunkSize.Value == 0) //first time grabbing from source enumerator 447requestedChunkSize = _currentChunkSize.Value; 451requestedChunkSize = Math.Min(_currentChunkSize.Value * 2, _maxChunkSize); 462Debug.Assert(_currentChunkSize.Value <= requestedChunkSize && _currentChunkSize.Value > 0); 951Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 952return (_localList[_localOffset.Value]); 1221Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 1222return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1223_sharedReader[_startIndex + _localOffset.Value]); 1305Debug.Assert(_localOffset!.Value >= 0 && _localOffset.Value < _currentChunkSize.Value); 1306return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value, 1307_sharedReader[_startIndex + _localOffset.Value]);
System.Console (3)
System\Console.cs (3)
260return redirected.Value; 275return redirected.Value; 290return redirected.Value;
System.Linq.Expressions (3)
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
91return ((StrongBox<object[]>)locals[0]).Value!;
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (1)
775return _nullCase.Value;
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
1702if (nullCase.Value == 1)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (1)
38get => Value;
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
977ObjectDisposedException.ThrowIf(m_lockObjAndDisposed.Value, this);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
356try { m_cancellationRegistration.Value.Dispose(); }
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoderSettings.cs (1)
232newBitmap.Value.AllowChar((char)allowedCodePoint);
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
2110if (_completed.Value != null || base.Task.IsCompleted) return DataflowMessageStatus.DecliningPermanently;
System.Windows.Forms (3)
System\Windows\Forms\PropertyStore.cs (3)
46? foundValue.GetValue<StrongBox<T>>().Value 90? foundValue.GetValue<StrongBox<T>>().Value 171? foundValue.GetValue<StrongBox<T>>().Value
System.Windows.Forms.UI.IntegrationTests (5)
Infra\DataCollectionService.cs (1)
136if (logged.Value)
Infra\DenyExecutionSynchronizationContext.cs (4)
35if (_failedTransfer.Value is null) 40_failedTransfer.Value.Throw(); 47if (_failedTransfer.Value is null) 66if (_failedTransfer.Value is null)
Test.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Text.Analyzers (2)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;