32 writes to Value
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1216Interlocked.Add(ref totalTicks.Value, elapsed);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
289completed.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)
2029globals.Value = cancellationSource; 2063globals.Value = cancellationSource; 2097globals.Value = cancellationSource;
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\Setting.cs (1)
78valueStorage.Value = initialValue;
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
289completed.Value = true;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\RequestContext.cs (1)
361_lspSolution.Value = default;
Microsoft.CodeAnalysis.Scripting (1)
ScriptExecutionState.cs (1)
152exceptionHolderOpt.Value = exception;
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\HostDiagnosticAnalyzers.cs (2)
310box.Value ??= ImmutableDictionary<string, SkippedHostAnalyzersInfo>.Empty; 315box.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++;
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)
900m_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)
2120_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)
149logged.Value = true;
Infra\DenyExecutionSynchronizationContext.cs (2)
54_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 73_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
108 references to Value
Microsoft.CodeAnalysis (6)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
185return _analyzerExecutionTimeMap.ToImmutableDictionary(pair => pair.Key, pair => TimeSpan.FromTicks(pair.Value.Value));
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
382GetOrCreateAnalyzerActions().Value.EnableConcurrentExecution();
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
237return _lazySuppressMessageAttribute.Value; 253return _lazyUnconditionalSuppressMessageAttribute.Value;
InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
230if (completed.Value) 253if (completed.Value) 282if (!completed.Value && !context.FilterSpan.HasValue)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (2)
88return box.Value; 106return box.Value;
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\EmitStatement.cs (3)
437object? fallThrough = top.destBox.Value; 475dest = destBox.Value; 486dest = destBox.Value;
Compilation\CSharpCompilation.cs (1)
5084if (typeDecl.MemberNames.Value.Contains(_name))
Declarations\DeclarationTable.cs (2)
284t => t.MemberNames.Value.Contains(name), 298foreach (var name in t.MemberNames.Value)
Declarations\DeclarationTreeBuilder.cs (1)
1056if (memberNames.Value.Count > 0)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
108return _lazyExtensionParameter.Value;
Symbols\Source\SourcePropertySymbolBase.cs (2)
786return _lazyMergedBackingField.Value; 806Debug.Assert((object?)_lazyMergedBackingField.Value == backingField);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
505return _lazyExtensionParameter.Value;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
208return hasAliases.Value;
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
521itemData = boxedItemData.Value;
Microsoft.CodeAnalysis.Features (14)
AddImport\AbstractAddImportFeatureService.cs (1)
403static 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\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (3)
44tupleBox.Value.checksum != checksum || 45!analyzers.IsSubsetOf(tupleBox.Value.analyzers)) 65return tupleBox.Value.compilationWithAnalyzersPair;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (3)
122analyzers.IsSubsetOf(box.Value.analyzers)) 125if (box.Value.checksum == checksum) 126return box.Value.diagnosticAnalysisResults;
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (2)
45box.Value.checksum != checksum) 61var (_, analyzers, projectAnalysisData) = box.Value;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
230if (completed.Value) 253if (completed.Value) 282if (!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.Scripting (1)
Script.cs (1)
584return 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)
716diagnostics.AddRange(Me._lazyBoundImportsAdditionalDiagnostics.Value, allowMismatchInDependencyAccumulation:=True)
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\HostDiagnosticAnalyzers.cs (4)
303if (box.Value != null && box.Value.TryGetValue(project.Language, out var info)) 312if (!box.Value.TryGetValue(project.Language, out info)) 315box.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)
597return checksumCollection.Value; 602=> 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);
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)
259return redirected.Value; 274return redirected.Value; 289return 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)
781return _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)
927ObjectDisposedException.ThrowIf(m_lockObjAndDisposed.Value, this);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
283try { 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)
2108if (_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)
143if (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)