1253 instantiations of Object
Aspire.Dashboard (3)
Model\ResourceOutgoingPeerResolver.cs (1)
17private readonly object _lock = new();
Otlp\Storage\TelemetryRepository.cs (1)
26private readonly object _lock = new();
ResourceService\DashboardClient.cs (1)
47private readonly object _lock = new();
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
150object outputLock = new();
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
110object outputLock = new();
Aspire.Hosting (3)
ApplicationModel\ResourceLoggerService.cs (1)
313private readonly object _lock = new();
ApplicationModel\ResourceNotificationService.cs (1)
291private readonly object _onResourceUpdatedLock = new();
Dashboard\ResourcePublisher.cs (1)
21private readonly object _syncLock = new();
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
27private readonly object _lockObj = new();
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
150object outputLock = new();
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
110object outputLock = new();
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
229new object[] { new() },
dotnet-svcutil-lib (11)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (1)
70Object o = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
2347_thisLock = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\InMemoryNonceCache.cs (1)
51private static object s_dummyItem = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
41private object _thisLock = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
41private Object _thisLock = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\SpnEndpointIdentity.cs (2)
19private Object _thisLock = new Object(); 21private static Object s_typeLock = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
19_sync = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
18_sync = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\UpnEndpointIdentity.cs (1)
23private Object _thisLock = new Object();
Metadata\MetadataDocumentLoader.cs (1)
47private readonly Object _thisLock = new Object();
KeyManagementSimulator (1)
Program.cs (1)
476private readonly object _lock = new();
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManager.cs (1)
28private object _lock = new();
Microsoft.AspNetCore.Components (1)
RenderTree\Renderer.cs (1)
27private readonly object _lockObject = new();
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
23private readonly object _lock = new();
Microsoft.AspNetCore.Components.Server (1)
ComponentHub.cs (1)
38private static readonly object CircuitKey = new();
Microsoft.AspNetCore.Components.Web (3)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
10private static readonly object _key = new();
Head\HeadOutlet.cs (2)
17internal static readonly object HeadSectionId = new(); 18internal static readonly object TitleSectionId = new();
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
113_descriptorLock = descriptor is null ? new() : null;
Microsoft.AspNetCore.Http.Results.Tests (13)
ResultsTests.cs (13)
1731(() => Results.Accepted(null, new()), typeof(Accepted<object>)), 1733(() => Results.AcceptedAtRoute("routeName", (object)null, new()), typeof(AcceptedAtRoute<object>)), 1735(() => Results.AcceptedAtRoute("routeName", null, new()), typeof(AcceptedAtRoute<object>)), 1737(() => Results.BadRequest(new()), typeof(BadRequest<object>)), 1741(() => Results.Conflict(new()), typeof(Conflict<object>)), 1746(() => Results.Created("/path", new()), typeof(Created<object>)), 1748(() => Results.CreatedAtRoute("routeName", (object)null, new()), typeof(CreatedAtRoute<object>)), 1750(() => Results.CreatedAtRoute("routeName", null, new()), typeof(CreatedAtRoute<object>)), 1758(() => Results.InternalServerError<object>(new()), typeof(InternalServerError<object>)), 1759(() => Results.Json(new(), (JsonSerializerOptions)null, null, null), typeof(JsonHttpResult<object>)), 1762(() => Results.NotFound(new()), typeof(NotFound<object>)), 1764(() => Results.Ok(new()), typeof(Ok<object>)), 1779(() => Results.UnprocessableEntity(new()), typeof(UnprocessableEntity<object>)),
Microsoft.AspNetCore.InternalTesting (1)
AssemblyTestLog.cs (1)
29private static readonly object _lock = new();
Microsoft.AspNetCore.OutputCaching (2)
Memory\MemoryOutputCacheStore.cs (1)
13private readonly object _tagsLock = new();
Policies\NamedPolicy.cs (1)
16private readonly object _synLock = new();
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
331private readonly object synLock = new();
Microsoft.AspNetCore.Routing (1)
CompositeEndpointDataSource.cs (1)
19private readonly object _lock = new();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http3\Http3Connection.cs (1)
21internal static readonly object StreamPersistentStateKey = new();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
18private readonly object _lock = new();
Microsoft.Build (22)
AwaitExtensions.cs (1)
22private static Object s_staSchedulerSync = new Object();
BackEnd\BuildManager\BuildManager.cs (2)
59private static readonly Object s_staticSyncLock = new Object(); 64private readonly Object _syncLock = new Object();
BackEnd\BuildManager\LegacyThreadingData.cs (1)
44private readonly Object _legacyThreadingEventsLock = new Object();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
129GlobalLock = new Object();
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
32private static Object s_locker = new Object();
BackEnd\Components\Logging\LoggingService.cs (1)
83private readonly object _lockObject = new Object();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
123private Object _taskExecutionHostSync = new Object();
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (1)
40private readonly object _lock = new();
BackEnd\Node\OutOfProcServerNode.cs (1)
441private readonly object _lock = new();
BackEnd\Shared\BuildRequestConfiguration.cs (1)
78private readonly Object _syncLock = new Object();
CommunicationsUtilities.cs (1)
218private static readonly object s_traceLock = new();
Construction\ProjectTaskElement.cs (1)
41private readonly Object _locker = new Object();
ElementLocation\XmlNameTableThreadSafe.cs (1)
23private object _locker = new Object();
Instance\TaskFactories\TaskHostTask.cs (1)
161_taskHostLock = new Object();
Instance\TaskRegistry.cs (1)
1094private static readonly Object s_taskFactoryTypeLoaderLock = new Object();
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
1788private readonly object _lockObject = new Object();
LogMessagePacketBase.cs (1)
293private static object s_lockObject = new Object();
Resources\Constants.cs (1)
181private static Object s_locker = new Object();
TaskLoggingHelper.cs (1)
88private readonly Object _locker = new Object();
ToolsetElement.cs (1)
23private static readonly object s_syncLock = new();
TypeLoader.cs (1)
268private readonly Object _lockObject = new Object();
Microsoft.Build.Engine.UnitTests (4)
CopyOnWriteDictionary_Tests.cs (3)
28object v1 = new Object(); 59object v1 = new Object(); 95object v1 = new Object();
MockTask.cs (1)
324return new object[] { new Object() };
Microsoft.Build.Tasks.Core (2)
RedistList.cs (2)
45private static readonly Object s_locker = new Object(); 972private static readonly Object s_subsetListPathCacheLock = new Object();
Microsoft.Build.Utilities.Core (2)
TaskLoggingHelper.cs (1)
88private readonly Object _locker = new Object();
ToolsetElement.cs (1)
23private static readonly object s_syncLock = new();
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
43private readonly object _guard = new();
InternalUtilities\ConcurrentLruCache.cs (1)
31private readonly object _lockObject = new();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
88private static readonly object s_codeStyleStructuredOptionsLock = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
20private readonly object _gate = new();
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
29private readonly object _gate = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
31private readonly object _gate = new();
Microsoft.CodeAnalysis.CSharp (2)
CodeGen\EmitAddress.cs (2)
243var whenValueTypeLabel = new Object(); 244var doneLabel = new Object();
Microsoft.CodeAnalysis.EditorFeatures (21)
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
35private readonly object _gate = new();
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (2)
44private static readonly object s_uniqueKey = new(); 82private readonly object _gate = new();
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
26private readonly object _guard = new();
Editor\TextBufferAssociatedViewService.cs (1)
32private static readonly object s_gate = new();
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
29private static readonly object s_gate = new();
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (2)
33private static readonly object s_propagateSpansEditTag = new(); 34private static readonly object s_calculateMergedSpansEditTag = new();
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
56private readonly object _gate = new();
IntelliSense\AsyncCompletion\RecentItemsManager.cs (1)
21private readonly object _mruUpdateLock = new();
PasteTracking\PasteTrackingService.cs (1)
24private readonly object _pastedTextSpanKey = new();
Remote\SolutionChecksumUpdater.cs (1)
50private readonly object _gate = new();
Shared\Preview\PredefinedPreviewTaggerKeys.cs (7)
9public static readonly object DefinitionHighlightingSpansKey = new(); 10public static readonly object ReferenceHighlightingSpansKey = new(); 11public static readonly object WrittenReferenceHighlightingSpansKey = new(); 12public static readonly object ConflictSpansKey = new(); 13public static readonly object WarningSpansKey = new(); 14public static readonly object SuppressDiagnosticsSpansKey = new(); 15public static readonly object StaticClassificationSpansKey = new();
Shared\Utilities\LinkedEditsTracker.cs (1)
16private static readonly object s_propagateSpansEditTag = new();
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
36private readonly object _uniqueKey = new();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Async\AsynchronousOperationBlocker.cs (1)
16private readonly object _lockObj = new();
FindUsages\FindUsagesTestContext.cs (1)
15private readonly object _gate = new();
Utilities\TestFixtureHelper`1.cs (1)
13private readonly object _gate = new();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
Adornments\AbstractAdornmentManager.cs (1)
29private readonly object _invalidatedSpansLock = new();
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (1)
47public readonly object Gate = new();
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
59private static readonly object s_initialDiagnosticRequestInfoKey = new();
LineSeparators\LineSeparatorTaggerProvider.cs (1)
43private readonly object _lineSeparatorTagGate = new();
NavigableSymbols\NavigableSymbolService.cs (1)
22private static readonly object s_key = new();
SignatureHelp\Presentation\SignatureHelpPresenter.cs (1)
25private static readonly object s_augmentSessionKey = new();
SignatureHelp\SignatureHelpControllerProvider.cs (1)
34private static readonly object s_controllerPropertyKey = new();
Microsoft.CodeAnalysis.Features (23)
CodeFixesAndRefactorings\CodeActionRequestPriorityProvider.cs (1)
115private readonly object _gate = new();
Completion\CompletionService.ProviderManager.cs (1)
27private readonly object _gate = new();
Completion\PatternMatchHelper.cs (1)
37private readonly object _gate = new();
Diagnostics\DiagnosticAnalyzerTelemetry.cs (1)
44private readonly object _guard = new();
EditAndContinue\CommittedSolution.cs (1)
91private readonly object _guard = new();
EditAndContinue\DebuggingSession.cs (3)
42private readonly object _projectModuleIdsGuard = new(); 57private readonly object _projectEmitBaselinesGuard = new(); 70private readonly object _modulesPreparedForUpdateGuard = new();
EditAndContinue\DebuggingSessionTelemetry.cs (1)
23private readonly object _guard = new();
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
26private readonly object _guard = new();
EditAndContinue\EditSessionTelemetry.cs (1)
33private readonly object _guard = new();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (1)
21private readonly object _gate = new();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
26private readonly object _gate = new();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.AbstractUnitTestingPriorityProcessor.cs (1)
25private readonly object _gate = new();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
22private readonly object _gate = new();
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
27private readonly object _gate = new();
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
40private readonly object _gate = new();
NavigateTo\INavigateToSearcherHost.cs (1)
49private static readonly object s_gate = new();
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
34private readonly object _cacheLock = new();
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
50private readonly object _gate = new();
Snippets\AbstractSnippetService.cs (1)
22private readonly object _snippetProvidersLock = new();
ValueTracking\ValueTrackingProgressCollector.cs (1)
15private readonly object _lock = new();
Workspace\CompileTimeSolutionProvider.cs (1)
53private readonly object _gate = new();
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\RazorWorkspaceListenerInitializer.cs (1)
20private readonly object _initializeGate = new();
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ActiveFileState.cs (1)
17private readonly object _gate = new();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer_MemberSpans.cs (1)
25private readonly object _gate = new();
Features\FindUsages\SimpleFindUsagesContext.cs (1)
20private readonly object _gate = new();
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
29private readonly object _gate = new();
Handler\ResolveCache.cs (1)
34private readonly object _accessLock = new();
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
24private readonly object _gate = new();
LspServices\BaseService.cs (1)
36private readonly object _gate = new();
LspServices\LspServices.cs (1)
33private readonly object _gate = new();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (1)
37private readonly object _lifeCycleLock = new();
Workspaces\LspWorkspaceRegistrationService.cs (1)
14private readonly object _gate = new();
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
73private static readonly object s_gate = new();
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (1)
47_flushLock = new();
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
28private static readonly object _guard = new();
Microsoft.CodeAnalysis.Remote.Workspaces (1)
SolutionAssetStorage.cs (1)
26private readonly object _gate = new();
Microsoft.CodeAnalysis.UnitTests (1)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
164object obj = new();
Microsoft.CodeAnalysis.Workspaces (19)
FindSymbols\StreamingProgressCollector.cs (1)
28private readonly object _gate = new();
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
26private readonly object _gate = new();
Log\StatisticLogAggregator.cs (1)
37private readonly object _lock = new();
Notification\AbstractGlobalOperationNotificationService.cs (1)
16private readonly object _gate = new();
Options\GlobalOptionService.cs (1)
29private readonly object _gate = new();
Serialization\SerializerService_Reference.cs (1)
31private static readonly object s_analyzerImageReferenceMapGate = new();
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
69private readonly object _gate = new();
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
43private readonly object _guard = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
20private readonly object _gate = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
29private readonly object _gate = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
31private readonly object _gate = new();
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
38private readonly object _connectionGate = new();
TemporaryStorage\TemporaryStorageService.cs (1)
64private readonly object _gate = new();
Utilities\TaskQueue.cs (1)
20private readonly object _gate = new();
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
38private readonly object _gate = new();
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
23private readonly object _gate = new();
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
26private readonly object _gate = new();
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
85private static readonly object s_stateGate = new();
Workspace\WorkspaceRegistration.cs (1)
11private readonly object _gate = new();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
31private readonly object _lockObject = new();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\TestSerializerService.cs (1)
125private readonly object _gate = new();
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
AbstractLanguageServer.cs (1)
37private readonly object _lifeCycleLock = new();
Microsoft.Extensions.AI.Abstractions.Tests (8)
ChatCompletion\ChatCompletionTests.cs (1)
111object raw = new();
ChatCompletion\ChatMessageTests.cs (1)
221object raw = new();
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
60object raw = new();
Contents\AIContentTests.cs (1)
24object raw = new();
Contents\FunctionCallContentTests..cs (1)
54object raw = new();
Contents\FunctionResultContentTests.cs (1)
42object raw = new();
Contents\TextContentTests.cs (1)
28object raw = new();
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
46Value: new(),
Microsoft.Extensions.Caching.Hybrid (8)
Internal\DefaultHybridCache.SyncLock.cs (8)
23private readonly object _syncLock0 = new(); 24private readonly object _syncLock1 = new(); 25private readonly object _syncLock2 = new(); 26private readonly object _syncLock3 = new(); 27private readonly object _syncLock4 = new(); 28private readonly object _syncLock5 = new(); 29private readonly object _syncLock6 = new(); 30private readonly object _syncLock7 = new();
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
30private readonly Object _mutex = new Object();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ManualHealthCheck.cs (1)
11private static readonly object _lock = new();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
645private readonly object _lock = new();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (8)
Linux\LinuxUtilizationProvider.cs (2)
17private readonly object _cpuLocker = new(); 18private readonly object _memoryLocker = new();
Linux\Network\LinuxTcpStateInfo.cs (1)
11private readonly object _lock = new();
Windows\Network\WindowsTcpStateInfo.cs (1)
16private readonly object _lock = new();
Windows\WindowsContainerSnapshotProvider.cs (2)
26private readonly object _cpuLocker = new(); 27private readonly object _memoryLocker = new();
Windows\WindowsSnapshotProvider.cs (2)
22private readonly object _cpuLocker = new(); 23private readonly object _memoryLocker = new();
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFileProvider.cs (1)
34private object _fileWatcherLock = new();
PhysicalFilesWatcher.cs (2)
33private readonly object _fileWatcherLock = new(); 39private object _timerLock = new();
PollingWildCardChangeToken.cs (1)
24private readonly object _enumerationLock = new();
Microsoft.Extensions.Primitives (1)
CompositeChangeToken.cs (1)
19private readonly object _callbackLock = new();
Microsoft.Extensions.ServiceDiscovery (3)
Http\HttpServiceEndpointResolver.cs (1)
19private readonly object _lock = new();
ServiceEndpointResolver.cs (1)
17private readonly object _lock = new();
ServiceEndpointWatcher.cs (1)
25private readonly object _lock = new();
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProviderBase.cs (1)
14private readonly object _lock = new();
Microsoft.Extensions.Telemetry (2)
Latency\Internal\MeasureTracker.cs (1)
22private readonly object _measurePositionLock = new();
Logging\ExtendedLoggerFactory.cs (1)
20private readonly object _sync = new();
Microsoft.ML.FastTree (2)
Training\Test.cs (2)
534Object testLock = new Object(); 648var testLock = new Object();
Microsoft.VisualBasic.Core (9)
Microsoft\VisualBasic\Collection.vb (2)
24MyBase.New() 355MyBase.New()
Microsoft\VisualBasic\CompilerServices\ProjectData.vb (1)
78MyBase.New()
Microsoft\VisualBasic\CompilerServices\VB6File.vb (4)
103MyBase.New() 225MyBase.New() 369MyBase.New() 373MyBase.New()
Microsoft\VisualBasic\Helpers\ForEachEnum.vb (1)
51MyBase.New()
Microsoft\VisualBasic\Strings.vb (1)
19MyBase.New()
Microsoft.VisualStudio.LanguageServices (23)
ColorSchemes\ColorSchemeApplier.cs (1)
43private readonly object _gate = new();
EditorConfigSettings\Common\SettingsSnapshotFactoryBase.cs (1)
24private readonly object _gate = new();
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
70protected readonly object Gate = new();
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
30private static readonly object s_toolTipPlaceholder = new();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
43private readonly object _classMemberGate = new();
Notification\VSNotificationServiceFactory.cs (1)
22private static readonly object s_gate = new();
Options\LocalUserRegistryOptionPersister.cs (1)
19private readonly object _gate = new();
Packaging\PackageInstallerServiceFactory.cs (1)
86private readonly object _gate = new();
Progression\GraphQueryManager.cs (1)
28private readonly object _gate = new();
ProjectSystem\FileChangeTracker.cs (1)
53private static readonly object s_lastBackgroundTaskGate = new();
ProjectSystem\FileChangeWatcher.cs (1)
350private readonly object _gate = new();
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
47private readonly object _metadataCacheLock = new();
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
22private readonly object _gate = new();
Remote\VisualStudioRemoteHostClientProvider.cs (1)
39private readonly object _gate = new();
RoslynActivityLogger.cs (1)
25private static readonly object s_gate = new();
Snippets\AbstractSnippetInfoService.cs (1)
41protected object cacheGuard = new();
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
31private readonly object _lockObject = new();
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
61private readonly object _gate = new();
Telemetry\FileLogger.cs (1)
39_gate = new();
Telemetry\Shared\AbstractAggregatingLog.cs (1)
47_flushLock = new();
Utilities\ClipboardHelpers.cs (1)
108object handleRefObj = new();
Watson\FaultReporter.cs (1)
28private static readonly object _guard = new();
Workspace\VisualStudioDocumentTrackingServiceFactory.cs (1)
26private readonly object _gate = new();
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (1)
47_flushLock = new();
MSBuild (5)
CommunicationsUtilities.cs (1)
218private static readonly object s_traceLock = new();
LogMessagePacketBase.cs (1)
293private static object s_lockObject = new Object();
OutOfProcTaskHostNode.cs (1)
127private Object _taskCompleteLock = new Object();
TerminalLogger\TerminalLogger.cs (1)
81private readonly object _lock = new();
TypeLoader.cs (1)
268private readonly Object _lockObject = new Object();
MSBuildTaskHost (4)
CommunicationsUtilities.cs (1)
218private static readonly object s_traceLock = new();
LogMessagePacketBase.cs (1)
293private static object s_lockObject = new Object();
OutOfProcTaskHostNode.cs (1)
127private Object _taskCompleteLock = new Object();
TypeLoader.cs (1)
184private readonly Object _lockObject = new Object();
PrepareTests (1)
TestDiscovery.cs (1)
18private static readonly object s_lock = new();
PresentationCore (11)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
229private Object _globalLock = new Object();
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
847private Object _syncObject = new Object();
MS\Internal\IO\Packaging\NetStream.cs (1)
1293private Object _syncObject = new Object();
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
42_globalLock = new Object();
System\IO\Packaging\PackageStore.cs (1)
45_globalLock = new Object();
System\IO\Packaging\PackWebResponse.cs (2)
71_lockObject = new Object(); // required for synchronization 131_lockObject = new Object(); // required for synchronization
System\Windows\DataFormats.cs (1)
470private static readonly Object _formatListlock = new Object();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
56private object _workerOperationLock = new Object();
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1686private readonly object _syncObject = new Object();
System\Windows\Media\Imaging\BitmapMetadata.cs (1)
1559private object _syncObject = new Object();
PresentationCore.Tests (1)
BinaryFormat\ArrayTests.cs (1)
28new object[] { new() },
PresentationFramework (9)
MS\Internal\AppModel\ResourcePart.cs (1)
188private readonly Object _globalLock = new Object();
MS\Internal\Data\CompositeCollectionView.cs (1)
1648private static readonly object s_afterLast = new Object();
MS\Internal\Data\DifferencingCollection.cs (1)
245static object Unset = new Object();
MS\Internal\Data\ValueTable.cs (1)
302private static object CachedNull = new Object();
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
395private readonly Object lockObject = new Object();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7123bamlType.DefaultConstructor = delegate() { return new System.Object(); };
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
64private readonly object _syncObject = new Object();
System\Windows\Markup\KnownTypes.cs (1)
1428case KnownElements.Object: o = new System.Object(); break;
System\Windows\SystemResources.cs (1)
2059private readonly object _syncRoot = new();
ReachFramework (2)
Packaging\XpsManager.cs (1)
184_globalLock = new Object();
Serialization\Manager\ReachObjectContext.cs (1)
390object _stackLock = new Object();
Shared.Tests (3)
JsonSchemaExporter\TestTypes.cs (1)
46Value: new(),
Throw\ThrowTest.cs (2)
157object somethingThatIsNotNull = new(); 171object somethingThatIsNotNull = new();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\AmbientValueAttribute.cs (1)
21private static readonly object? s_throwSentinel = IDesignerHost.IsSupported ? null : new();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\ActivitySource.cs (1)
421_writeLock = new();
System.Drawing.Common.Tests (8)
System\Drawing\CharacterRangeTests.cs (1)
66yield return new object[] { new CharacterRange(1, 2), new(), false };
System\Drawing\Drawing2D\MatrixTests.cs (1)
195yield return new object[] { new Matrix(), new(), false };
System\Drawing\FontFamilyTests.cs (1)
74yield return new object[] { FontFamily.GenericSansSerif, new(), false };
System\Drawing\FontTests.cs (1)
429yield return new object[] { new Font(family, 10), new(), false };
System\Drawing\Imaging\FrameDimensionTests.cs (1)
34yield return new object[] { new FrameDimension(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
System\Drawing\Imaging\ImageFormatTests.cs (1)
88yield return new object[] { new ImageFormat(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
System\Drawing\Printing\MarginsTests.cs (1)
89yield return new object[] { margins, new(), false };
System\Drawing\ToolboxBitmapAttributeTests.cs (1)
168yield return new object[] { ToolboxBitmapAttribute.Default, new(), false };
System.IO.Ports (2)
System\IO\Ports\SerialStream.Unix.cs (2)
40private readonly object _readQueueLock = new(); 42private readonly object _writeQueueLock = new();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
31private static readonly object? s_throwSentinel = IsSupported ? null : new();
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\Deserializer\ObjectRecordDeserializer.cs (1)
17private protected static object s_missingValueSentinel = new();
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ObjectRecordDeserializer.cs (1)
16private protected static object s_missingValueSentinel = new();
System.ServiceModel.Primitives (9)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
107private Object ThisLock { get; } = new Object();
System\ServiceModel\Channels\ServiceChannel.cs (1)
2411_thisLock = new Object();
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
52private static object s_dummyItem = new Object();
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
209protected Object ThisLock { get; } = new Object();
System\ServiceModel\Security\RequestSecurityToken.cs (1)
40private object _thisLock = new Object();
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
297protected Object ThisLock { get; } = new Object();
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
30private Object _thisLock = new Object();
System\ServiceModel\SynchronizedCollection.cs (1)
19_sync = new Object();
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
18_sync = new Object();
System.Web.Services.Description (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
28object o = new Object();
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
444private static readonly Object handleMutex = new Object();
System.Windows.Forms (494)
System\Windows\Forms\Application.cs (2)
58private static readonly object s_eventApplicationExit = new(); 59private static readonly object s_eventThreadExit = new();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (10)
61private static readonly object s_eventGetBaseAttributes = new(); 62private static readonly object s_eventGetDynamicAttributes = new(); 63private static readonly object s_eventShouldRefresh = new(); 64private static readonly object s_eventGetDisplayName = new(); 65private static readonly object s_eventGetDisplayValue = new(); 66private static readonly object s_eventGetIsReadOnly = new(); 67private static readonly object s_eventGetTypeConverterAndTypeEditor = new(); 68private static readonly object s_eventShouldSerializeValue = new(); 69private static readonly object s_eventCanResetValue = new(); 70private static readonly object s_eventResetValue = new();
System\Windows\Forms\Control.cs (70)
79private static readonly object s_autoSizeChangedEvent = new(); 80private static readonly object s_keyDownEvent = new(); 81private static readonly object s_keyPressEvent = new(); 82private static readonly object s_keyUpEvent = new(); 83private static readonly object s_mouseDownEvent = new(); 84private static readonly object s_mouseEnterEvent = new(); 85private static readonly object s_mouseLeaveEvent = new(); 86private static readonly object s_dpiChangedBeforeParentEvent = new(); 87private static readonly object s_dpiChangedAfterParentEvent = new(); 88private static readonly object s_mouseHoverEvent = new(); 89private static readonly object s_mouseMoveEvent = new(); 90private static readonly object s_mouseUpEvent = new(); 91private static readonly object s_mouseWheelEvent = new(); 92private static readonly object s_clickEvent = new(); 93private static readonly object s_clientSizeEvent = new(); 94private static readonly object s_doubleClickEvent = new(); 95private static readonly object s_mouseClickEvent = new(); 96private static readonly object s_mouseDoubleClickEvent = new(); 97private static readonly object s_mouseCaptureChangedEvent = new(); 98private static readonly object s_moveEvent = new(); 99private static readonly object s_resizeEvent = new(); 100private static readonly object s_layoutEvent = new(); 101private static readonly object s_gotFocusEvent = new(); 102private static readonly object s_lostFocusEvent = new(); 103private static readonly object s_enterEvent = new(); 104private static readonly object s_leaveEvent = new(); 105private static readonly object s_handleCreatedEvent = new(); 106private static readonly object s_handleDestroyedEvent = new(); 107private static readonly object s_controlAddedEvent = new(); 108private static readonly object s_controlRemovedEvent = new(); 109private static readonly object s_changeUICuesEvent = new(); 110private static readonly object s_systemColorsChangedEvent = new(); 111private static readonly object s_validatingEvent = new(); 112private static readonly object s_validatedEvent = new(); 113private static readonly object s_styleChangedEvent = new(); 114private static readonly object s_imeModeChangedEvent = new(); 115private static readonly object s_helpRequestedEvent = new(); 116private static readonly object s_paintEvent = new(); 117private static readonly object s_invalidatedEvent = new(); 118private static readonly object s_queryContinueDragEvent = new(); 119private static readonly object s_giveFeedbackEvent = new(); 120private static readonly object s_dragEnterEvent = new(); 121private static readonly object s_dragLeaveEvent = new(); 122private static readonly object s_dragOverEvent = new(); 123private static readonly object s_dragDropEvent = new(); 124private static readonly object s_queryAccessibilityHelpEvent = new(); 125private static readonly object s_backgroundImageEvent = new(); 126private static readonly object s_backgroundImageLayoutEvent = new(); 127private static readonly object s_bindingContextEvent = new(); 128private static readonly object s_backColorEvent = new(); 129private static readonly object s_parentEvent = new(); 130private static readonly object s_visibleEvent = new(); 131private static readonly object s_textEvent = new(); 132private static readonly object s_tabStopEvent = new(); 133private static readonly object s_tabIndexEvent = new(); 134private static readonly object s_sizeEvent = new(); 135private static readonly object s_rightToLeftEvent = new(); 136private static readonly object s_locationEvent = new(); 137private static readonly object s_foreColorEvent = new(); 138private static readonly object s_fontEvent = new(); 139private static readonly object s_enabledEvent = new(); 140private static readonly object s_dockEvent = new(); 141private static readonly object s_cursorEvent = new(); 142private static readonly object s_contextMenuStripEvent = new(); 143private static readonly object s_causesValidationEvent = new(); 144private static readonly object s_regionChangedEvent = new(); 145private static readonly object s_marginChangedEvent = new(); 147private protected static readonly object s_paddingChangedEvent = new(); 148private static readonly object s_previewKeyDownEvent = new(); 149private static readonly object s_dataContextEvent = new();
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
54internal static readonly object s_commandChangedEvent = new(); 55internal static readonly object s_commandParameterChangedEvent = new(); 56internal static readonly object s_commandCanExecuteChangedEvent = new();
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
23private static readonly object s_checkedChangedEvent = new(); 24private static readonly object s_checkStateChangedEvent = new(); 25private static readonly object s_appearanceChangedEvent = new();
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
24private static readonly object s_checkedChangedEvent = new(); 25private static readonly object s_appearanceChangeEvent = new();
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (9)
28private static readonly object s_dropDownEvent = new(); 29private static readonly object s_drawItemEvent = new(); 30private static readonly object s_measureItemEvent = new(); 31private static readonly object s_selectedIndexChangedEvent = new(); 32private static readonly object s_selectionChangedComittedEvent = new(); 33private static readonly object s_selectedItemChangedEvent = new(); 34private static readonly object s_dropDownStyleEvent = new(); 35private static readonly object s_textUpdateEvent = new(); 36private static readonly object s_dropDownClosedEvent = new();
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (118)
19private static readonly object s_allowUserToAddRowsChangedEvent = new(); 20private static readonly object s_allowUserToDeleteRowsChangedEvent = new(); 21private static readonly object s_allowUserToOrderColumnsChangedEvent = new(); 22private static readonly object s_allowUserToResizeColumnsChangedEvent = new(); 23private static readonly object s_allowUserToResizeRowsChangedEvent = new(); 24private static readonly object s_alternatingRowsDefaultCellStyleChangedEvent = new(); 25private static readonly object s_autoGenerateColumnsChangedEvent = new(); 26private static readonly object s_autosizeColumnModeChangedEvent = new(); 27private static readonly object s_autosizeColumnsModeChangedEvent = new(); 28private static readonly object s_autosizeRowsModeChangedEvent = new(); 29private static readonly object s_backgroundColorChangedEvent = new(); 30private static readonly object s_borderStyleChangedEvent = new(); 31private static readonly object s_cancelRowEditEvent = new(); 32private static readonly object s_cellBeginEditEvent = new(); 33private static readonly object s_cellBorderStyleChangedEvent = new(); 34private static readonly object s_cellClickEvent = new(); 35private static readonly object s_cellContentClickEvent = new(); 36private static readonly object s_cellContentDoubleClickEvent = new(); 37private static readonly object s_cellContextMenuStripChangedEvent = new(); 38private static readonly object s_cellContextMenuStripNeededEvent = new(); 39private static readonly object s_cellDoubleClickEvent = new(); 40private static readonly object s_cellEndEditEvent = new(); 41private static readonly object s_cellEnterEvent = new(); 42private static readonly object s_cellErrorTextChangedEvent = new(); 43private static readonly object s_cellErrorTextNeededEvent = new(); 44private static readonly object s_cellFormattingEvent = new(); 45private static readonly object s_cellLeaveEvent = new(); 46private static readonly object s_cellMouseClickEvent = new(); 47private static readonly object s_cellMouseDoubleClickEvent = new(); 48private static readonly object s_cellMouseDownEvent = new(); 49private static readonly object s_cellMouseEnterEvent = new(); 50private static readonly object s_cellMouseLeaveEvent = new(); 51private static readonly object s_cellMouseMoveEvent = new(); 52private static readonly object s_cellMouseUpEvent = new(); 53private static readonly object s_cellPaintingEvent = new(); 54private static readonly object s_cellParsingEvent = new(); 55private static readonly object s_cellStateChangedEvent = new(); 56private static readonly object s_cellStyleChangedEvent = new(); 57private static readonly object s_cellStyleContentChangedEvent = new(); 58private static readonly object s_cellTooltipTextChangedEvent = new(); 59private static readonly object s_cellTooltipTextNeededEvent = new(); 60private static readonly object s_cellValidatingEvent = new(); 61private static readonly object s_cellValidatedEvent = new(); 62private static readonly object s_cellValueChangedEvent = new(); 63private static readonly object s_cellValueNeededEvent = new(); 64private static readonly object s_cellValuePushedEvent = new(); 65private static readonly object s_columnAddedEvent = new(); 66private static readonly object s_columnContextMenuStripChangedEvent = new(); 67private static readonly object s_columnDataPropertyNameChangedEvent = new(); 68private static readonly object s_columnDefaultCellStyleChangedEvent = new(); 69private static readonly object s_columnDisplayIndexChangedEvent = new(); 70private static readonly object s_columnDividerWidthChangedEvent = new(); 71private static readonly object s_columnHeaderCellChangedEvent = new(); 72private static readonly object s_columnDividerDoubleClickEvent = new(); 73private static readonly object s_columnHeaderMouseClickEvent = new(); 74private static readonly object s_columnHeaderMouseDoubleClickEvent = new(); 75private static readonly object s_columnHeadersBorderStyleChangedEvent = new(); 76private static readonly object s_columnHeadersDefaultCellStyleChangedEvent = new(); 77private static readonly object s_columnHeadersHeightChangedEvent = new(); 78private static readonly object s_columnHeadersHeightSizeModeChangedEvent = new(); 79private static readonly object s_columnMinimumWidthChangedEvent = new(); 80private static readonly object s_columnNameChangedEvent = new(); 81private static readonly object s_columnRemovedEvent = new(); 82private static readonly object s_columnSortModeChangedEvent = new(); 83private static readonly object s_columnStateChangedEvent = new(); 84private static readonly object s_columnTooltipTextChangedEvent = new(); 85private static readonly object s_columnWidthChangedEvent = new(); 86private static readonly object s_currentCellChangedEvent = new(); 87private static readonly object s_currentCellDirtyStateChangedEvent = new(); 88private static readonly object s_dataBindingCompleteEvent = new(); 89private static readonly object s_dataErrorEvent = new(); 90private static readonly object s_dataMemberChangedEvent = new(); 91private static readonly object s_dataSourceChangedEvent = new(); 92private static readonly object s_defaultCellStyleChangedEvent = new(); 93private static readonly object s_defaultValuesNeededEvent = new(); 94private static readonly object s_editingControlShowingEvent = new(); 95private static readonly object s_editModeChangedEvent = new(); 96private static readonly object s_gridColorChangedEvent = new(); 97private static readonly object s_multiselectChangedEvent = new(); 98private static readonly object s_newRowNeededEvent = new(); 99private static readonly object s_readOnlyChangedEvent = new(); 100private static readonly object s_rowContextMenuStripChangedEvent = new(); 101private static readonly object s_rowContextMenuStripNeededEvent = new(); 102private static readonly object s_rowDefaultCellStyleChangedEvent = new(); 103private static readonly object s_rowDirtyStateNeededEvent = new(); 104private static readonly object s_rowDividerHeightChangedEvent = new(); 105private static readonly object s_rowEnterEvent = new(); 106private static readonly object s_rowErrorTextChangedEvent = new(); 107private static readonly object s_rowErrorTextNeededEvent = new(); 108private static readonly object s_rowHeaderCellChangedEvent = new(); 109private static readonly object s_rowDividerDoubleClickEvent = new(); 110private static readonly object s_rowHeaderMouseClickEvent = new(); 111private static readonly object s_rowHeaderMouseDoubleClickEvent = new(); 112private static readonly object s_rowHeadersBorderStyleChangedEvent = new(); 113private static readonly object s_rowHeadersDefaultCellStyleChangedEvent = new(); 114private static readonly object s_rowHeadersWidthChangedEvent = new(); 115private static readonly object s_rowHeadersWidthSizeModeChangedEvent = new(); 116private static readonly object s_rowHeightChangedEvent = new(); 117private static readonly object s_rowHeightInfoNeededEvent = new(); 118private static readonly object s_rowHeightInfoPushedEvent = new(); 119private static readonly object s_rowLeaveEvent = new(); 120private static readonly object s_rowMinimumHeightChangeEvent = new(); 121private static readonly object s_rowPostPaintEvent = new(); 122private static readonly object s_rowPrePaintEvent = new(); 123private static readonly object s_rowsAddedEvent = new(); 124private static readonly object s_rowsDefaultCellStyleChangedEvent = new(); 125private static readonly object s_rowsRemovedEvent = new(); 126private static readonly object s_rowStateChangedEvent = new(); 127private static readonly object s_rowUnsharedEvent = new(); 128private static readonly object s_rowValidatedEvent = new(); 129private static readonly object s_rowValidatingEvent = new(); 130private static readonly object s_scrollEvent = new(); 131private static readonly object s_selectionChangedEvent = new(); 132private static readonly object s_sortCompareEvent = new(); 133private static readonly object s_sortedEvent = new(); 134private static readonly object s_userAddedRowEvent = new(); 135private static readonly object s_userDeletedRowEvent = new(); 136private static readonly object s_userDeletingRowEvent = new();
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
45private static readonly object s_formatChangedEvent = new();
System\Windows\Forms\Controls\Labels\Label.cs (1)
29private static readonly object s_eventTextAlignChanged = new();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
22private static readonly object s_eventLinkClicked = new();
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
38private static readonly object s_selectedIndexChangedEvent = new(); 39private static readonly object s_drawItemEvent = new(); 40private static readonly object s_measureItemEvent = new();
System\Windows\Forms\Controls\ListControl\ListControl.cs (8)
14private static readonly object s_dataSourceChangedEvent = new(); 15private static readonly object s_displayMemberChangedEvent = new(); 16private static readonly object s_valueMemberChangedEvent = new(); 17private static readonly object s_selectedValueChangedEvent = new(); 18private static readonly object s_formatInfoChangedEvent = new(); 19private static readonly object s_formatStringChangedEvent = new(); 20private static readonly object s_formattingEnabledChangedEvent = new(); 21private static readonly object s_formatEvent = new();
System\Windows\Forms\Controls\ListView\ListView.cs (15)
35private static readonly object s_cacheVirtualItemsEvent = new(); 36private static readonly object s_columnReorderedEvent = new(); 37private static readonly object s_columnWidthChangedEvent = new(); 38private static readonly object s_columnWidthChangingEvent = new(); 39private static readonly object s_drawColumnHeaderEvent = new(); 40private static readonly object s_drawItemEvent = new(); 41private static readonly object s_drawSubItemEvent = new(); 42private static readonly object s_itemSelectionChangedEvent = new(); 43private static readonly object s_retrieveVirtualItemEvent = new(); 44private static readonly object s_searchForVirtualItemEvent = new(); 45private static readonly object s_selectedIndexChangedEvent = new(); 46private static readonly object s_virtualItemSelectionRangeChangedEvent = new(); 47private static readonly object s_rightToLeftLayoutChangedEvent = new(); 48private static readonly object s_groupCollapsedStateChangedEvent = new(); 49private static readonly object s_groupTaskLinkClickEvent = new();
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
15private static readonly object s_menuActivateEvent = new(); 16private static readonly object s_menuDeactivateEvent = new();
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
79private static readonly object s_loadCompletedKey = new(); 80private static readonly object s_loadProgressChangedKey = new(); 854private static readonly object s_sizeModeChangedEvent = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
130private static readonly object s_propertyValueChangedEvent = new(); 131private static readonly object s_comComponentNameChangedEvent = new(); 132private static readonly object s_propertyTabChangedEvent = new(); 133private static readonly object s_selectedGridItemChangedEvent = new(); 134private static readonly object s_propertySortChangedEvent = new(); 135private static readonly object s_selectedObjectsChangedEvent = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
54private static readonly object s_valueClickEvent = new(); 55private static readonly object s_labelClickEvent = new(); 56private static readonly object s_outlineClickEvent = new(); 57private static readonly object s_valueDoubleClickEvent = new(); 58private static readonly object s_labelDoubleClickEvent = new(); 59private static readonly object s_outlineDoubleClickEvent = new(); 60private static readonly object s_recreateChildrenEvent = new();
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (7)
47private static readonly object s_hscrollEvent = new(); 48private static readonly object s_linkActivateEvent = new(); 49private static readonly object s_imeChangeEvent = new(); 50private static readonly object s_protectedEvent = new(); 51private static readonly object s_requestSizeEvent = new(); 52private static readonly object s_selectionChangeEvent = new(); 53private static readonly object s_vscrollEvent = new();
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
38private static readonly object s_movingEvent = new(); 39private static readonly object s_movedEvent = new();
System\Windows\Forms\Controls\TabControl\TabControl.cs (5)
46private static readonly object s_deselectingEvent = new(); 47private static readonly object s_deselectedEvent = new(); 48private static readonly object s_selectingEvent = new(); 49private static readonly object s_selectedEvent = new(); 50private static readonly object s_rightToLeftLayoutChangedEvent = new();
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (5)
39private static readonly object s_maskInputRejectedEvent = new(); 40private static readonly object s_validationCompletedEvent = new(); 41private static readonly object s_textAlignChangedEvent = new(); 42private static readonly object s_isOverwriteModeChangedEvent = new(); 43private static readonly object s_maskChangedEvent = new();
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
19private static readonly object s_textAlignChangedEvent = new();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (6)
43private static readonly object s_acceptsTabChangedEvent = new(); 44private static readonly object s_borderStyleChangedEvent = new(); 45private static readonly object s_hideSelectionChangedEvent = new(); 46private static readonly object s_modifiedChangedEvent = new(); 47private static readonly object s_multilineChangedEvent = new(); 48private static readonly object s_readOnlyChangedEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (10)
76private static readonly object s_eventPaintGrip = new(); 77private static readonly object s_eventLayoutCompleted = new(); 78private static readonly object s_eventItemAdded = new(); 79private static readonly object s_eventItemRemoved = new(); 80private static readonly object s_eventLayoutStyleChanged = new(); 81private static readonly object s_eventRendererChanged = new(); 82private static readonly object s_eventItemClicked = new(); 83private static readonly object s_eventLocationChanging = new(); 84private static readonly object s_eventBeginDrag = new(); 85private static readonly object s_eventEndDrag = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (2)
18private static readonly object s_checkedChangedEvent = new(); 19private static readonly object s_checkStateChangedEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (6)
15internal static readonly object s_eventDropDown = new(); 16internal static readonly object s_eventDropDownClosed = new(); 17internal static readonly object s_eventDropDownStyleChanged = new(); 18internal static readonly object s_eventSelectedIndexChanged = new(); 19internal static readonly object s_eventSelectionChangeCommitted = new(); 20internal static readonly object s_eventTextUpdate = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (2)
21private static readonly object s_rendererChangedEvent = new(); 22private static readonly object s_loadEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (9)
21internal static readonly object s_gotFocusEvent = new(); 22internal static readonly object s_lostFocusEvent = new(); 23internal static readonly object s_keyDownEvent = new(); 24internal static readonly object s_keyPressEvent = new(); 25internal static readonly object s_keyUpEvent = new(); 26internal static readonly object s_enterEvent = new(); 27internal static readonly object s_leaveEvent = new(); 28internal static readonly object s_validatedEvent = new(); 29internal static readonly object s_validatingEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
30private static readonly object s_openingEvent = new(); 31private static readonly object s_openedEvent = new(); 32private static readonly object s_closedEvent = new(); 33private static readonly object s_closingEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (5)
22private static readonly object s_dropDownShowEvent = new(); 23private static readonly object s_dropDownHideEvent = new(); 24private static readonly object s_dropDownOpenedEvent = new(); 25private static readonly object s_dropDownClosedEvent = new(); 26private static readonly object s_dropDownItemClickedEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (32)
58internal static readonly object s_mouseDownEvent = new(); 59internal static readonly object s_mouseEnterEvent = new(); 60internal static readonly object s_mouseLeaveEvent = new(); 61internal static readonly object s_mouseHoverEvent = new(); 62internal static readonly object s_mouseMoveEvent = new(); 63internal static readonly object s_mouseUpEvent = new(); 64internal static readonly object s_clickEvent = new(); 65internal static readonly object s_doubleClickEvent = new(); 66internal static readonly object s_dragDropEvent = new(); 67internal static readonly object s_dragEnterEvent = new(); 68internal static readonly object s_dragLeaveEvent = new(); 69internal static readonly object s_dragOverEvent = new(); 70internal static readonly object s_displayStyleChangedEvent = new(); 71internal static readonly object s_enabledChangedEvent = new(); 72internal static readonly object s_internalEnabledChangedEvent = new(); 73internal static readonly object s_fontChangedEvent = new(); 74internal static readonly object s_foreColorChangedEvent = new(); 75internal static readonly object s_backColorChangedEvent = new(); 76internal static readonly object s_giveFeedbackEvent = new(); 77internal static readonly object s_queryContinueDragEvent = new(); 78internal static readonly object s_queryAccessibilityHelpEvent = new(); 79internal static readonly object s_locationChangedEvent = new(); 80internal static readonly object s_rightToLeftChangedEvent = new(); 81internal static readonly object s_visibleChangedEvent = new(); 82internal static readonly object s_availableChangedEvent = new(); 83internal static readonly object s_ownerChangedEvent = new(); 84internal static readonly object s_paintEvent = new(); 85internal static readonly object s_textChangedEvent = new(); 86internal static readonly object s_selectedChangedEvent = new(); 88internal static readonly object s_commandChangedEvent = new(); 89internal static readonly object s_commandParameterChangedEvent = new(); 90internal static readonly object s_commandCanExecuteChangedEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
57private static readonly object s_eventCheckedChanged = new(); 58private static readonly object s_eventCheckStateChanged = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
33private static readonly object s_eventRendererChanged = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
12private static readonly object s_rightToLeftLayoutChangedEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (20)
14private static readonly object s_renderSplitButtonBackgroundEvent = new(); 15private static readonly object s_renderItemBackgroundEvent = new(); 16private static readonly object s_renderItemImageEvent = new(); 17private static readonly object s_renderItemTextEvent = new(); 18private static readonly object s_renderToolStripBackgroundEvent = new(); 19private static readonly object s_renderGripEvent = new(); 20private static readonly object s_renderButtonBackgroundEvent = new(); 21private static readonly object s_renderLabelBackgroundEvent = new(); 22private static readonly object s_renderMenuItemBackgroundEvent = new(); 23private static readonly object s_renderDropDownButtonBackgroundEvent = new(); 24private static readonly object s_renderOverflowButtonBackgroundEvent = new(); 25private static readonly object s_renderImageMarginEvent = new(); 26private static readonly object s_renderBorderEvent = new(); 27private static readonly object s_renderArrowEvent = new(); 28private static readonly object s_renderToolStripStatusLabelBackgroundEvent = new(); 29private static readonly object s_renderSeparatorEvent = new(); 30private static readonly object s_renderItemCheckEvent = new(); 31private static readonly object s_renderToolStripPanelBackgroundEvent = new(); 32private static readonly object s_renderToolStripContentPanelBackgroundEvent = new(); 34private static readonly object s_renderStatusStripSizingGripEvent = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (3)
27private static readonly object s_eventDefaultItemChanged = new(); 28private static readonly object s_eventButtonClick = new(); 29private static readonly object s_eventButtonDoubleClick = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (7)
16internal static readonly object s_eventTextBoxTextAlignChanged = new(); 17internal static readonly object s_eventAcceptsTabChanged = new(); 18internal static readonly object s_eventBorderStyleChanged = new(); 19internal static readonly object s_eventHideSelectionChanged = new(); 20internal static readonly object s_eventReadOnlyChanged = new(); 21internal static readonly object s_eventMultilineChanged = new(); 22internal static readonly object s_eventModifiedChanged = new();
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (3)
27private static readonly object s_scrollEvent = new(); 28private static readonly object s_valueChangedEvent = new(); 29private static readonly object s_rightToLeftChangedEvent = new();
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (10)
15internal static object s_eventClick = new(); 16internal static object s_eventContextMenuShowing = new(); 17internal static object s_eventFocusing = new(); 18internal static object s_eventLosingFocus = new(); 19internal static object s_eventMouseDown = new(); 20internal static object s_eventMouseLeave = new(); 21internal static object s_eventMouseMove = new(); 22internal static object s_eventMouseOver = new(); 23internal static object s_eventMouseUp = new(); 24internal static object s_eventStop = new();
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (19)
14internal static readonly object s_eventClick = new(); 15internal static readonly object s_eventDoubleClick = new(); 16internal static readonly object s_eventDrag = new(); 17internal static readonly object s_eventDragEnd = new(); 18internal static readonly object s_eventDragLeave = new(); 19internal static readonly object s_eventDragOver = new(); 20internal static readonly object s_eventFocusing = new(); 21internal static readonly object s_eventGotFocus = new(); 22internal static readonly object s_eventLosingFocus = new(); 23internal static readonly object s_eventLostFocus = new(); 24internal static readonly object s_eventKeyDown = new(); 25internal static readonly object s_eventKeyPress = new(); 26internal static readonly object s_eventKeyUp = new(); 27internal static readonly object s_eventMouseDown = new(); 28internal static readonly object s_eventMouseEnter = new(); 29internal static readonly object s_eventMouseLeave = new(); 30internal static readonly object s_eventMouseMove = new(); 31internal static readonly object s_eventMouseOver = new(); 32internal static readonly object s_eventMouseUp = new();
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (7)
13internal static readonly object s_eventError = new(); 14internal static readonly object s_eventGotFocus = new(); 15internal static readonly object s_eventLoad = new(); 16internal static readonly object s_eventLostFocus = new(); 17internal static readonly object s_eventResize = new(); 18internal static readonly object s_eventScroll = new(); 19internal static readonly object s_eventUnload = new();
System\Windows\Forms\DataBinding\BindableComponent.cs (1)
14internal static readonly object s_bindingContextChangedEvent = new();
System\Windows\Forms\DataBinding\BindingSource.cs (10)
25private static readonly object s_eventAddingNew = new(); 26private static readonly object s_eventBindingComplete = new(); 27private static readonly object s_eventCurrentChanged = new(); 28private static readonly object s_eventCurrentItemChanged = new(); 29private static readonly object s_eventDataError = new(); 30private static readonly object s_eventDataMemberChanged = new(); 31private static readonly object s_eventDataSourceChanged = new(); 32private static readonly object s_eventListChanged = new(); 33private static readonly object s_eventPositionChanged = new(); 34private static readonly object s_eventInitialized = new();
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
16private static readonly object s_helpRequestEvent = new();
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
22protected static readonly object EventFileOk = new();
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
20protected static readonly object EventApply = new();
System\Windows\Forms\Form.cs (25)
30private static readonly object s_activatedEvent = new(); 31private static readonly object s_closingEvent = new(); 32private static readonly object s_closedEvent = new(); 33private static readonly object s_formClosingEvent = new(); 34private static readonly object s_formClosedEvent = new(); 35private static readonly object s_deactivateEvent = new(); 36private static readonly object s_loadEvent = new(); 37private static readonly object s_mdiChildActivateEvent = new(); 38private static readonly object s_inputLanguageChangeEvent = new(); 39private static readonly object s_inputLanguageChangeRequestEvent = new(); 40private static readonly object s_menuStartEvent = new(); 41private static readonly object s_menuCompleteEvent = new(); 42private static readonly object s_maximumSizeChangedEvent = new(); 43private static readonly object s_minimumSizeChangedEvent = new(); 44private static readonly object s_helpButtonChangedEvent = new(); 45private static readonly object s_shownEvent = new(); 46private static readonly object s_resizeBeginEvent = new(); 47private static readonly object s_resizeEndEvent = new(); 48private static readonly object s_rightToLeftLayoutChangedEvent = new(); 49private static readonly object s_dpiChangedEvent = new(); 50private static readonly object s_formBorderColorChanged = new(); 51private static readonly object s_formCaptionBackColorChanged = new(); 52private static readonly object s_formCaptionTextColorChanged = new(); 53private static readonly object s_formCornerPreferenceChanged = new(); 1173private static readonly object s_maximizeBoundsChangedEvent = new();
System\Windows\Forms\FormCollection.cs (1)
14internal static object CollectionSyncRoot { get; } = new();
System\Windows\Forms\Internal\Formatter.cs (1)
17private static readonly object s_parseMethodNotFound = new();
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
80private static readonly object s_eventMoving = new(); 81private static readonly object s_eventMoved = new();
System\Windows\Forms\NotifyIcon.cs (10)
20private static readonly object s_mouseDownEvent = new(); 21private static readonly object s_mouseMoveEvent = new(); 22private static readonly object s_mouseUpEvent = new(); 23private static readonly object s_clickEvent = new(); 24private static readonly object s_doubleClickEvent = new(); 25private static readonly object s_mouseClickEvent = new(); 26private static readonly object s_mouseDoubleClickEvent = new(); 27private static readonly object s_balloonTipShownEvent = new(); 28private static readonly object s_balloonTipClickedEvent = new(); 29private static readonly object s_balloonTipClosedEvent = new();
System\Windows\Forms\OSFeature.cs (2)
15public static readonly object LayeredWindows = new(); 20public static readonly object Themes = new();
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
25private static readonly object s_eventCellPaint = new();
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
26private static readonly object s_startPageChangedEvent = new();
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
47private static readonly object s_scrollEvent = new();
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
18private static readonly object s_scrollEvent = new(); 19private static readonly object s_valueChangedEvent = new();
System\Windows\Forms\UserControl.cs (1)
21private static readonly object s_loadEvent = new();
System.Windows.Forms.Design (26)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
16private static readonly object s_eventFormActivated = new(); 17private static readonly object s_eventFormDeactivate = new();
System\ComponentModel\Design\DesignerEventService.cs (4)
14private static readonly object s_eventActiveDesignerChanged = new(); 15private static readonly object s_eventDesignerCreated = new(); 16private static readonly object s_eventDesignerDisposed = new(); 17private static readonly object s_eventSelectionChanged = new();
System\ComponentModel\Design\DesignerHost.cs (15)
30private static readonly object s_eventActivated = new(); // Designer has been activated 31private static readonly object s_eventDeactivated = new(); // Designer has been deactivated 32private static readonly object s_eventLoadComplete = new(); // Loading has been completed 33private static readonly object s_eventTransactionClosed = new(); // The last transaction has been closed 34private static readonly object s_eventTransactionClosing = new(); // The last transaction is about to be closed 35private static readonly object s_eventTransactionOpened = new(); // The first transaction has been opened 36private static readonly object s_eventTransactionOpening = new(); // The first transaction is about to be opened 39private static readonly object s_eventComponentAdding = new(); // A component is about to be added to the container 40private static readonly object s_eventComponentAdded = new(); // A component was just added to the container 41private static readonly object s_eventComponentChanging = new(); // A component is about to be changed 42private static readonly object s_eventComponentChanged = new(); // A component has changed 44private static readonly object s_eventComponentRemoving = new(); 45private static readonly object s_eventComponentRemoved = new(); // A component has been removed from the container 46private static readonly object s_eventComponentRename = new(); // A component has been renamed 61private static readonly object s_selfLock = new();
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
18private static readonly object s_noDefault = new();
System\ComponentModel\Design\SelectionService.cs (2)
28private static readonly object s_eventSelectionChanging = new(); 29private static readonly object s_eventSelectionChanged = new();
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
13private static readonly object s_initMethodKey = new();
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
21private static readonly object s_initMethodKey = new();
System.Windows.Forms.Design.Tests (163)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
145yield return new object[] { new(), Array.Empty<object>() }; 190object editValue = new();
System\ComponentModel\Design\ByteViewerTests.cs (2)
629yield return new object[] { new(), null }; 630yield return new object[] { new(), new EventArgs() };
System\ComponentModel\Design\CollectionEditorTests.cs (22)
144yield return new object[] { new() }; 173object value = new(); 231object value = new(); 269object result = new(); 282object value = new(); 335object value = new(); 392yield return new object[] { new() }; 429object value = new(); 482object value = new(); 543object value = new(); 584object value = new(); 630object value = new(); 677object value = new(); 720object value = new(); 744object value = new(); 819yield return new object[] { new(), Array.Empty<object>() }; 849object result = new(); 865object value = new(); 883yield return new object[] { new() }; 903object o = new(); 973object value = new(); 1011object value = new();
System\ComponentModel\Design\CollectionFormTests.cs (15)
137object editValue = new(); 193object editValue = new(); 252object editValue = new(); 311object editValue = new(); 372object editValue = new(); 427object editValue = new(); 494yield return new object[] { new() }; 523object value = new(); 582object value = new(); 621object result = new(); 634object value = new(); 688object value = new(); 747object editValue = new(); 770object result = new(); 786object value = new();
System\ComponentModel\Design\ComponentDesignerTests.cs (24)
141new object[] { new(), null, mockComponent1.Object, mockComponent2.Object }); 177yield return new object[] { associatedComponents, new() }; 256yield return new object[] { new() }; 361yield return new object[] { new() }; 564yield return new object[] { new() }; 674yield return new object[] { new(), disposing }; 748yield return new object[] { property, new object[] { null, new(), "NoSuchStringValue" }, 1, null }; 749yield return new object[] { property, new object[] { null, new(), "NoSuchStringValue" }, 1, string.Empty }; 750yield return new object[] { property, new object[] { null, new(), "NoSuchStringValue" }, 1, "UniqueMethod" }; 1016.Returns(new object[] { null, new(), component1, component2, component3 }); 1678yield return new object[] { new object[] { null, new() } }; 1749yield return new object[] { new() }; 1804yield return new object[] { new() }; 1864yield return new object[] { new() }; 1953object service = new(); 2068yield return new object[] { new(), new() }; 2190yield return new object[] { new() }; 2484yield return new object[] { TypeDescriptor.GetProperties(typeof(CustomComponent))[0], new(), new() }; 2509foreach (object componentChangeService in new object[] { null, new() }) 2512yield return new object[] { componentChangeService, TypeDescriptor.GetProperties(typeof(CustomComponent))[0], new(), new() }; 2567foreach (object componentChangeService in new object[] { null, new() })
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
11yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new DesignerActionListCollection() };
System\ComponentModel\Design\DesignerActionListTests.cs (1)
46object o = new();
System\ComponentModel\Design\DesignerActionUIStateChangeEventArgsTests.cs (1)
11yield return new object[] { new(), DesignerActionUIStateChangeType.Show };
System\ComponentModel\Design\DesignerHostTests.cs (38)
929object key1 = new(); 930object value1 = new(); 960object key1 = new(); 961object value1 = new(); 990object key1 = new(); 991object value1 = new(); 1008object key1 = new(); 1009object value1 = new(); 1015object key2 = new(); 1016object value2 = new(); 1022object value3 = new(); 1049object service = new(); 1050object otherService = new(); 1078object service = new(); 1079object otherService = new(); 1112object service = new(); 1113object otherService = new(); 1141object service = new(); 1147object otherService = new(); 1175object service = new(); 1181object otherService = new(); 1214object service = new(); 1220object otherService = new(); 1459object service = new(); 1484object service = new(); 1525object service = new(); 1729object service = new(); 1743object service = new(); 1756object service = new(); 1771object service = new(); 2292object o = new(); 2321object service = new(); 2331object service = new(); 2406yield return new object[] { new() }; 2925yield return new object[] { new(), TypeDescriptor.GetProperties(typeof(string))[0] }; 2995yield return new object[] { new(), TypeDescriptor.GetProperties(typeof(string))[0], new(), new() };
System\ComponentModel\Design\DesignSurfaceTests.cs (3)
688yield return new object[] { new() }; 1471object service = new(); 1763public static object View { get; } = new();
System\ComponentModel\Design\MultilineStringEditorTests.cs (1)
24yield return new object[] { new() };
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (1)
34yield return new object[] { new() };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (9)
84yield return new object[] { new() }; 181yield return new object[] { new() }; 269yield return new object[] { new(), new() }; 661object value = new(); 715object value = new(); 923object value = new(); 1133object value = new(); 1412object value = new();
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (22)
237object provider = new(); 408yield return new object[] { null, new() }; 410yield return new object[] { typeof(int), new() }; 542object errorInformation = new(); 769object instance = new(); 787object instance = new(); 798yield return new object[] { string.Empty, new() }; 800yield return new object[] { "NoSuchName", new() }; 874yield return new object[] { new(), null }; 932object instance = new(); 974object service = new(); 1011object service = new(); 1027object service = new(); 1723object errorInformation = new(); 1838object serializer = new(); 1888object errorInformation = new(); 1919object instance1 = new(); 1924object instance2 = new(); 1955object instance = new(); 1968object instance = new(); 2115public static object Serializer { get; } = new(); 2129public static object Serializer { get; } = new();
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (4)
12yield return new object[] { new CodeExpression(), typeof(int), new(), new() }; 13yield return new object[] { new CodeExpression(), typeof(int), new(), null }; 29yield return new object[] { new CodeExpression(), typeof(int), new() };
System\ComponentModel\Design\Serialization\RootContextTests.cs (1)
14object value = new();
System\Drawing\Design\ColorEditorTests.cs (1)
26yield return new object[] { new() };
System\Drawing\Design\CursorEditorTests.cs (1)
25yield return new object[] { new() };
System\Drawing\Design\FontNameEditorTests.cs (1)
31yield return new object[] { new() };
System\Drawing\Design\ImageEditorTests.cs (1)
177yield return new object[] { new() };
System\Drawing\Design\ToolboxItemTests.cs (3)
257yield return new object[] { new object[] { new(), new ToolboxItemFilterAttribute("filterString") }, new object[] { new ToolboxItemFilterAttribute("filterString") } }; 1111yield return new object[] { new ToolboxItem(), new(), false }; 1124object o = new();
System\Windows\Forms\Design\AnchorEditorTests.cs (1)
27yield return new object[] { new() };
System\Windows\Forms\Design\BorderSidesEditorTests.cs (1)
25yield return new object[] { new() };
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSiteTests.cs (1)
53object expectedService = new();
System\Windows\Forms\Design\DesignBindingTests.cs (4)
22object dataSource = new(); 64object dataSource = new(); 73object dataSource = new(); 82object dataSource = new();
System\Windows\Forms\Design\DockEditorTests.cs (1)
25yield return new object[] { new() };
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (1)
25yield return new object[] { new() };
System.Windows.Forms.Primitives.Tests (60)
Interop\Oleaut32\VARIANTTests.cs (46)
921object o = new(); 937object o = new(); 954object o = new(); 970object o = new(); 4506object o1 = new(); 4507object o2 = new(); 4544object o1 = new(); 4545object o2 = new(); 4580object o1 = new(); 4581object o2 = new(); 4582object o3 = new(); 4583object o4 = new(); 4584object o5 = new(); 4637object o1 = new(); 4638object o2 = new(); 4639object o3 = new(); 4640object o4 = new(); 4641object o5 = new(); 4689object o1 = new(); 4690object o2 = new(); 4726object o1 = new(); 4727object o2 = new(); 4762object o1 = new(); 4763object o2 = new(); 4764object o3 = new(); 4765object o4 = new(); 4766object o5 = new(); 4819object o1 = new(); 4820object o2 = new(); 4821object o3 = new(); 4822object o4 = new(); 4823object o5 = new(); 4871object o1 = new(); 4872object o2 = new(); 4909object o1 = new(); 4910object o2 = new(); 4946object o1 = new(); 4947object o2 = new(); 4948object o3 = new(); 4949object o4 = new(); 4950object o5 = new(); 5004object o1 = new(); 5005object o2 = new(); 5006object o3 = new(); 5007object o4 = new(); 5008object o5 = new();
System\Windows\Forms\Internals\ArgumentValidationTests.cs (2)
28object param = new(); 57object param = new();
System\Windows\Forms\NonNullCollectionTests.cs (12)
33object item = new(); 50object item = new(); 66TestCollection collection = new(new object[] { new() }); 67object item = new(); 83TestCollection collection = new(new object[] { new() }); 84object item = new(); 101object item = new(); 118object item = new(); 142object item = new(); 147collection.AddRange(new object[] { new(), new(), new() });
System.Windows.Forms.Tests (189)
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
15yield return new object[] { new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object, new(), new Rectangle(1, 2, 3, 4) };
System\Drawing\Design\UITypeEditorTests.cs (4)
25yield return new object[] { mockTypeDescriptorContext.Object, mockServiceProvider.Object, new() }; 40yield return new object[] { mockServiceProvider.Object, new() }; 47object result = new(); 121yield return new object[] { new(), graphics, new Rectangle(1, 2, 3, 4) };
System\Resources\ResXFileRef.ConverterTests.cs (1)
41object value = new();
System\Windows\Forms\ApplicationContextTests.cs (1)
354yield return new object[] { new(), new EventArgs() };
System\Windows\Forms\AxHost.ConnectionPointCookieTests.cs (2)
30yield return new object[] { new() }; 64yield return new object[] { new() };
System\Windows\Forms\AxHostTests.cs (6)
1759yield return new object[] { true, new(), 2 }; 1762yield return new object[] { false, new(), 1 }; 1810yield return new object[] { true, new(), 3 }; 1813yield return new object[] { false, new(), 1 }; 2043yield return new object[] { true, new(), 3 }; 2046yield return new object[] { false, new(), 1 };
System\Windows\Forms\BindingMemberInfoTests.cs (1)
53yield return new object[] { new BindingMemberInfo("Some.Other"), new(), false };
System\Windows\Forms\BindingSourceTests.cs (3)
281object o1 = new(); 284object o2 = new(); 344object syncRoot = new();
System\Windows\Forms\BindingTests.cs (27)
15yield return new object[] { string.Empty, new(), string.Empty }; 16yield return new object[] { "propertyName", new(), "dataMember" }; 17yield return new object[] { "propertyName", new(), "dataMember.subDataMember" }; 44yield return new object[] { string.Empty, new(), string.Empty, true }; 45yield return new object[] { "propertyName", new(), "dataMember", false }; 46yield return new object[] { "propertyName", new(), "dataMember.subDataMember", false }; 73yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1 }; 74yield return new object[] { "propertyName", new(), "dataMember", false, DataSourceUpdateMode.Never }; 75yield return new object[] { "propertyName", new(), "dataMember.subDataMember", false, DataSourceUpdateMode.Never + 1 }; 102yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value }; 103yield return new object[] { "propertyName", new(), "dataMember", false, DataSourceUpdateMode.Never, new() }; 104yield return new object[] { "propertyName", new(), "dataMember.subDataMember", false, DataSourceUpdateMode.Never + 1, new() }; 131yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty }; 132yield return new object[] { "propertyName", new(), "dataMember", false, DataSourceUpdateMode.Never, new(), "formatString" }; 133yield return new object[] { "propertyName", new(), "dataMember.subDataMember", false, DataSourceUpdateMode.Never + 1, new(), "formatString" }; 160yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty, CultureInfo.CurrentCulture }; 161yield return new object[] { "propertyName", new(), "dataMember", false, DataSourceUpdateMode.Never, new(), "formatString", CultureInfo.InvariantCulture }; 162yield return new object[] { "propertyName", new(), "dataMember.subDataMember", false, DataSourceUpdateMode.Never + 1, new(), "formatString", CultureInfo.CurrentCulture }; 189yield return new object[] { new() }; 298yield return new object[] { new() }; 448object o = new();
System\Windows\Forms\ControlTests.Methods.cs (1)
2550yield return new object[] { testData[0], testData[1], testData[2], testData[3], new() };
System\Windows\Forms\CursorTests.cs (1)
455yield return new object[] { cursor, new(), false };
System\Windows\Forms\DataGridViewCellStyleTests.cs (1)
1027yield return new object[] { new DataGridViewCellStyle(), new(), false };
System\Windows\Forms\DataGridViewCellTests.cs (10)
4954object value = new(); 4982object value = new(); 5018object value = new(); 5049object value = new(); 5057object value1 = new(); 5058object value2 = new(); 5096object value1 = new(); 5097object value2 = new(); 5134object value1 = new(); 5135object value2 = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (15)
3357object value = new(); 3377object value = new(); 3407object value = new(); 3429object value = new(); 3465object value = new(); 3502object value = new(); 3536object value = new(); 3556object value = new(); 3586object value = new(); 3594object value1 = new(); 3595object value2 = new(); 3633object value1 = new(); 3634object value2 = new(); 3671object value1 = new(); 3672object value2 = new();
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (6)
269yield return new object[] { -1, new() }; 286yield return new object[] { new() }; 343yield return new object[] { new() }; 435yield return new object[] { new() }; 476yield return new object[] { index, new() }; 494yield return new object[] { new() };
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (6)
301yield return new object[] { -1, new() }; 318yield return new object[] { new() }; 379yield return new object[] { new() }; 479yield return new object[] { new() }; 524yield return new object[] { index, new() }; 542yield return new object[] { new() };
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (6)
261yield return new object[] { -1, new() }; 278yield return new object[] { new() }; 334yield return new object[] { new() }; 424yield return new object[] { new() }; 464yield return new object[] { index, new() }; 482yield return new object[] { new() };
System\Windows\Forms\DataGridViewTests.cs (2)
3207_dataGridView.DataSource = new(); 3211_dataGridView.DataSource = new();
System\Windows\Forms\DataObjectTests.cs (18)
207{ new(), null } 256foreach (object result in new object[] { new(), null }) 302foreach (object result in new object[] { new(), null }) 340foreach (object result in new object[] { new(), null }) 498theoryData.Add(new(), Array.Empty<string>()); 667theoryData.Add(new(), null); 751{ TextDataFormat.Text, DataFormats.UnicodeText, new(), string.Empty }, 757{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, new(), string.Empty }, 763{ TextDataFormat.Rtf, DataFormats.Rtf, new(), string.Empty }, 769{ TextDataFormat.Html, DataFormats.Html, new(), string.Empty }, 775{ TextDataFormat.CommaSeparatedValue, DataFormats.CommaSeparatedValue, new(), string.Empty }, 933{ new(), typeof(object).FullName }, 954object data1 = new(); 955object data2 = new(); 990{ new() }, 1073theoryData.Add(format, new()); 1155theoryData.Add(format, autoConvert, new()); 1181theoryData.Add(format, new());
System\Windows\Forms\Design\EventsTabTests.cs (2)
48yield return new object[] { new(), provider, null }; 117yield return new object[] { new(), e, null };
System\Windows\Forms\Design\PropertyTabTests.cs (1)
164yield return new object[] { mockContext.Object, new(), Array.Empty<Attribute>() };
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (1)
55yield return new object[] { attribute, new(), false };
System\Windows\Forms\Design\WindowsFormsComponentEditorTests.cs (6)
18yield return new object[] { null, new(), mockWindow.Object }; 19yield return new object[] { Array.Empty<Type>(), new(), mockWindow.Object }; 39yield return new object[] { null, mockContext.Object, new() }; 40yield return new object[] { Array.Empty<Type>(), mockContext.Object, new() }; 61yield return new object[] { null, mockContext.Object, new(), mockWindow.Object }; 62yield return new object[] { Array.Empty<Type>(), mockContext.Object, new(), mockWindow.Object };
System\Windows\Forms\DockingAttributeTests.cs (1)
43yield return new object[] { attribute, new(), false };
System\Windows\Forms\DockPaddingEdgesTests.cs (2)
281yield return new object[] { CreatePadding(1, 2, 3, 4), new(), false }; 282yield return new object[] { CreateClonedPadding(1, 2, 3, 4), new(), false };
System\Windows\Forms\DomainUpDownTests.cs (1)
1133yield return new object[] { new(), new EventArgs() };
System\Windows\Forms\ErrorProviderTests.cs (5)
369yield return new object[] { new() }; 427foreach (object value in new object[] { null, new(), new DataClass() }) 773yield return new object[] { containerControl, new(), dataMember }; 802yield return new object[] { new(), dataMember }; 853yield return new object[] { new(), false };
System\Windows\Forms\FeatureSupportTests.cs (20)
14yield return new object[] { null, new(), false }; 15yield return new object[] { new Version(0, 0, 0, 0), new(), true }; 16yield return new object[] { new Version(1, 2, 3, 4), new(), true }; 38yield return new object[] { null, new(), new Version(1, 2, 3, 4), false }; 39yield return new object[] { null, new(), null, false }; 40yield return new object[] { new Version(0, 0, 0, 0), new(), new Version(0, 0, 0, 0), true }; 41yield return new object[] { new Version(0, 0, 0, 0), new(), new Version(1, 2, 3, 4), false }; 42yield return new object[] { new Version(0, 0, 0, 0), new(), null, true }; 43yield return new object[] { new Version(1, 2, 3, 4), new(), new Version(1, 2, 3, 4), true }; 44yield return new object[] { new Version(1, 2, 3, 4), new(), new Version(1, 2, 3, 4), true }; 45yield return new object[] { new Version(1, 2, 3, 4), new(), new Version(2, 3, 4, 5), false }; 46yield return new object[] { new Version(1, 2, 3, 4), new(), null, true }; 184public object _field = new(); 185public static object s_field = new(); 187public static object s_zeroVersionField = new(); 188public static object s_nonZeroVersionField = new(); 192private readonly object _privateField = new(); 193private static readonly object s_privateField = new(); 200public object _field = new(); 201public static object s_field = new();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
226yield return new object[] { new() };
System\Windows\Forms\HelpProviderTests.cs (1)
74yield return new object[] { new(), false };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (5)
1700yield return new object[] { new() }; 1745yield return new object[] { new() }; 1776yield return new object[] { new() }; 1794yield return new object[] { index, new() }; 1828yield return new object[] { new() };
System\Windows\Forms\InputLanguageTests.cs (1)
72yield return new object[] { InputLanguage.DefaultInputLanguage, new(), false };
System\Windows\Forms\LinkAreaTests.cs (1)
70yield return new object[] { new LinkArea(1, 2), new(), false };
System\Windows\Forms\ListControlTests.cs (4)
2113object item = new(); 2231object item = new(); 2390yield return new object[] { item, new(), "3" }; 2432yield return new object[] { item, new() };
System\Windows\Forms\ListViewGroupConverterTests.cs (4)
29yield return new object[] { new(), false }; 88yield return new object[] { new() }; 142yield return new object[] { new(), true }; 258yield return new object[] { new(), null };
System\Windows\Forms\MessageTests.cs (1)
150new(),
System\Windows\Forms\OSFeatureTests.cs (1)
44yield return new object[] { new(), null };
System\Windows\Forms\PaddingTests.cs (1)
387yield return new object[] { new Padding(1, 2, 3, 4), new(), false };
System\Windows\Forms\PropertyGridTests.cs (1)
3928object @object = new();
System\Windows\Forms\PropertyStoreTests.cs (1)
29{ 14, new() },
System\Windows\Forms\ScreenTests.cs (1)
45yield return new object[] { screen, new(), false };
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (4)
1083yield return new object[] { new() }; 3132yield return new object[] { new() }; 3929yield return new object[] { new() }; 4794yield return new object[] { new() };
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (1)
72yield return new object[] { new TableLayoutPanelCellPosition(1, 2), new(), false };
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2125yield return new object[] { new() };
System\Windows\Forms\ToolStripControlHostTests.cs (1)
1938yield return new object[] { new() };
System\Windows\Forms\ToolTipTests.cs (1)
620yield return new object[] { new(), false };
System\Windows\Forms\UpDownBaseTests.cs (4)
1720yield return new object[] { new(), new EventArgs() }; 2353foreach (object source in new object[] { null, new() }) 2507yield return new object[] { borderStyle, rightToLeft, upDownAlign, new(), null }; 2509yield return new object[] { borderStyle, rightToLeft, upDownAlign, new(), new EventArgs() };
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (3)
18object state = new(); 53yield return new object[] { new() }; 112yield return new object[] { new() };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
170object value = new();
System.Xaml (2)
System\Xaml\XamlSchemaContext.cs (2)
65_syncExaminingAssemblies = new Object(); 1026_syncAccessingUnexaminedAssemblies = new Object();
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\HandleCollector.cs (1)
16private static Object handleMutex = new Object();
3135 references to Object
AnalyzerRunner (1)
CodeRefactoringRunner.cs (1)
243data.TryGetValue(nameof(Languages), out var languages);
Aspire.Azure.AI.OpenAI (2)
AspireConfigurableOpenAIExtensions.cs (2)
91if (connectionBuilder.TryGetValue(ConnectionStringEndpoint, out var endpoint) && endpoint != null && Uri.TryCreate(endpoint.ToString(), UriKind.Absolute, out var endpointUri)) 96if (connectionBuilder.TryGetValue(ConnectionStringKey, out var key) && key != null)
Aspire.Azure.Messaging.EventHubs.Tests (4)
AspireEventHubsExtensionsTests.cs (4)
457var client = RetrieveClient(useKeyed ? "eh" : null, clientIndex, host); 464var client = key is not null ? 569var client2 = RetrieveClient(key: "eh2", clientIndex, host); 570var client3 = RetrieveClient(key: "eh3", clientIndex, host);
Aspire.Confluent.Kafka.Tests (10)
ConsumerConfigurationTests.cs (5)
38var connectionFactory = useKeyed 71var connectionFactory = useKeyed 104var connectionFactory = useKeyed 183var connectionFactory = useKeyed 253var connectionFactory = host.Services.GetRequiredService(ReflectionHelpers.ConsumerConnectionFactoryStringKeyStringValueType.Value);
ProducerConfigurationTests.cs (5)
35var connectionFactory = useKeyed ? 65var connectionFactory = useKeyed ? 97var connectionFactory = useKeyed ? 173var connectionFactory = useKeyed ? 242var connectionFactory = host.Services.GetRequiredService(ReflectionHelpers.ProducerConnectionFactoryStringKeyStringValueType.Value);
Aspire.Dashboard (1)
Components\Controls\Chart\ChartContainer.razor.cs (1)
275|| !Enum.TryParse(typeof(Pages.Metrics.MetricViewKind), id, out var o)
Aspire.Hosting (5)
Dcp\ApplicationExecutor.cs (3)
1319foreach (var arg in args) 1677foreach (var arg in args) 1708foreach (var arg in args)
Publishing\ManifestPublishingContext.cs (2)
538foreach (var arg in args) 662foreach (var dependency in objectWithReferences.References)
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
910var argument = args[argumentIndex];
Aspire.Hosting.Azure.CosmosDB (1)
src\Shared\Cosmos\CosmosUtils.cs (1)
19if (!builder.TryGetValue("AccountKey", out var v))
Aspire.Hosting.Dapr (2)
CommandLineBuilder.cs (2)
23var arg = args[i]; 217foreach (var arg in args.SelectMany(builder => builder()))
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
166if (connectionBuilder.TryGetValue("Endpoint", out var endpointValue) && Uri.TryCreate(endpointValue.ToString(), UriKind.Absolute, out var serviceUri)) 171if (connectionBuilder.TryGetValue("Key", out var keyValue))
Aspire.Hosting.Tests (1)
Utils\ArgumentEvaluator.cs (1)
22foreach (var arg in args)
Aspire.Microsoft.Azure.Cosmos (1)
src\Shared\Cosmos\CosmosUtils.cs (1)
19if (!builder.TryGetValue("AccountKey", out var v))
Aspire.Microsoft.Data.SqlClient (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (5)
68_ = this.commandFetcher.TryFetch(payload, out var command); 96_ = this.connectionFetcher.TryFetch(command, out var connection); 97_ = this.databaseFetcher.TryFetch(connection, out var database); 101_ = this.dataSourceFetcher.TryFetch(connection, out var dataSource); 102_ = this.commandTextFetcher.TryFetch(command, out var commandText);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Shared\Cosmos\CosmosUtils.cs (1)
19if (!builder.TryGetValue("AccountKey", out var v))
Aspire.Microsoft.EntityFrameworkCore.SqlServer (5)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (5)
68_ = this.commandFetcher.TryFetch(payload, out var command); 96_ = this.connectionFetcher.TryFetch(command, out var connection); 97_ = this.databaseFetcher.TryFetch(connection, out var database); 101_ = this.dataSourceFetcher.TryFetch(connection, out var dataSource); 102_ = this.commandTextFetcher.TryFetch(command, out var commandText);
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
40var message = messageDelegate(source);
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
50var value = vars[key];
AzureAppServicesSample (1)
Startup.cs (1)
61var value = vars[key];
BasicWebSite (4)
Controllers\TempDataController.cs (3)
32var value = TempData["key"]; 38var value = TempData["key"]; 44var peekValue = TempData.Peek("key");
Filters\TraceOutputResultFilter.cs (1)
13var trace = context.HttpContext.Items[nameof(TraceResourceFilter)];
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
22var startupInstance = Activator.CreateInstance(startupType);
Client.ClientBase.IntegrationTests (1)
SessionTests.cs (1)
487public void AddObjectToClose(Object o)
CodeStyleConfigFileGenerator (1)
Program.cs (1)
69foreach (var analysisMode in Enum.GetValues(typeof(AnalysisMode)))
DefaultBuilder.SampleApp (1)
Startup.cs (1)
41var value = vars[key];
dotnet-svcutil.xmlserializer (5)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (2)
49internal IEnumerable<Object> GetContracts() 55var contract = LoadContract(type);
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (3)
233foreach(var operation in operations) 240var behaviors = getBehaviorsProperty.GetValue(operation); 241var behavior = findMethod.Invoke(behaviors, new object[] { });
dotnet-svcutil-lib (143)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
142classToGen.BaseTypes.Add(new CodeTypeReference(typeof(Object)));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (2)
705private static void ValidateTypeName(Object e, String propertyName, String typeName) 714private static void ValidateIdentifier(Object e, String propertyName, String identifier)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (1)
135public override bool Equals(Object o)
FrameworkFork\Microsoft.Xml\Misc\InvariantComparer.cs (2)
22public int Compare(Object a, Object b)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
21internal static readonly Type TypeOfObject = typeof(System.Object);
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (9)
28_stack = new Object[GrowthRate]; 33internal Object Push() 41Object[] newstack = new Object[_size + _growthRate]; 52internal Object Pop() 57Object result = _stack[_used]; 76internal Object this[int index] 82Object result = _stack[index]; 125private Object[] _stack;
FrameworkFork\Microsoft.Xml\Xml\IxmlLineInfo.cs (1)
26public static PositionInfo GetPositionInfo(Object o)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (2)
224public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) 241if (ofObjectToReturn == null || ofObjectToReturn == typeof(Stream) || ofObjectToReturn == typeof(Object))
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (4)
19public override Task<Object> GetEntityAsync(Uri absoluteUri, 38if (ofObjectToReturn == null || ofObjectToReturn == typeof(Stream) || ofObjectToReturn == typeof(Object)) 40return Task.FromResult<Object>(data.AsStream()); 44return Task.FromResult<Object>(data.AsTextReader());
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (2)
21public override Object GetEntity(Uri uri, string role, Type typeOfObjectToReturn) 28if (typeOfObjectToReturn != null && typeOfObjectToReturn != typeof(Stream) && typeOfObjectToReturn != typeof(Object))
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (2)
22public static Type[] InterfaceTypes = { typeof(Boolean), typeof(DateTime), typeof(Decimal), typeof(Double), typeof(Int32), typeof(Int64), typeof(Single), typeof(String), typeof(Object) }; 863if (type == typeof(Object)) return "object";
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (1)
133internal bool CheckValue(Object pVal)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (1)
283Object cur = enumerator.Current;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (3)
199public Object SyncRoot 254public Object SyncRoot 311public Object Current
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (4)
63private Object _internalSyncObject; 64internal Object InternalSyncObject 70Object o = new Object(); 71Interlocked.CompareExchange<Object>(ref _internalSyncObject, o, null);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidationException.cs (3)
18private Object _sourceNodeObject; 88public Object SourceObject 93protected internal void SetSourceObject(Object sourceObject)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (1)
532public int CompareTo(Object value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (3)
18bool IEqualityComparer.Equals(Object x, Object y) 23int IEqualityComparer.GetHashCode(Object obj)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
405return format.Invoke(formatter, new Object[] { defaultValue });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
969return (string)format.Invoke(formatter, new Object[] { value });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
208new Type[] { typeof(Object), typeof(Object) }, 414new Type[] { typeof(Object), typeof(Object) },
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
335new Type[] { typeof(Object) }, 341ilg.ConvertValue(ilg.GetVariableType(oVar), typeof(Object)); 1027new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean) }, 1044new Type[] { typeof(Object) }, 1049ilg.ConvertValue(oArg.ArgType, typeof(Object)); 1087ilg.ConvertValue(argO.ArgType, typeof(Object)); 1101new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean), typeof(XmlSerializerNamespaces) }, 1404MethodInfo Object_ToString = typeof(Object).GetMethod( 1449new Type[] { typeof(XmlNode), typeof(Object) }, 1455ilg.ConvertValue(ilg.GetArg(parent).ArgType, typeof(Object)); 1937new Type[] { typeof(Object) }, 2171new Type[] { typeof(Object) }, 2573new Type[] { typeof(Type), typeof(BindingFlags), typeof(Binder), typeof(Object[]), typeof(CultureInfo) }, 2579ilg.NewArray(typeof(Object), 0);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1210internal static Double ToXPathDouble(Object o) 1248internal static String ToXPathString(Object value)
FrameworkFork\Microsoft.Xml\Xml\XmlNullResolver.cs (1)
18public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (1)
30public abstract Object GetEntity(Uri absoluteUri,
FrameworkFork\Microsoft.Xml\Xml\XmlResolverAsync.cs (1)
14public virtual Task<Object> GetEntityAsync(Uri absoluteUri,
FrameworkFork\Microsoft.Xml\Xml\XmlUrlResolver.cs (1)
45public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorKeyComparer.cs (4)
18bool IEqualityComparer.Equals(Object obj1, Object obj2) 30int IEqualityComparer.GetHashCode(Object obj) 46Object underlyingObject = nav.UnderlyingObject;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
99if (Object.ReferenceEquals(obj, _objectArray[i]) && _isReferenceArray != null && !_isReferenceArray[i])
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (3)
17internal Object[] m_objs; 23m_objs = new Object[m_ids.Length]; 117m_objs = new Object[size];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\StreamingContext.cs (4)
19internal Object m_additionalContext; 27internal StreamingContext(StreamingContextStates state, Object additional) 33internal Object Context 38public override bool Equals(Object obj)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
17using ExtensionDataObject = System.Object;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509WindowsSecurityToken.cs (8)
9using WindowsIdentity = System.Object; 13private WindowsIdentity _windowsIdentity; 17public X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity) 22public X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string id) 27public X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string authenticationType, string id) 32internal X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string authenticationType, bool clone) 37internal X509WindowsSecurityToken(X509Certificate2 certificate, WindowsIdentity windowsIdentity, string authenticationType, string id, bool clone) 44public WindowsIdentity WindowsIdentity
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (1)
607private void OnWrite(Task antecedant, Object state)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (1)
27foreach (var headerObj in headers)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
40public override bool Equals(Object other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
122if (!Object.ReferenceEquals(targetCompileUnit, codeCompileUnit)) 240if (Object.ReferenceEquals(x, y))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
71public override bool Equals(Object other)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
287foreach (var attr in attrs)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (1)
377foreach (Object obj in parameters)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\InMemoryNonceCache.cs (1)
112if (Object.ReferenceEquals(x, y))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
390protected Object ThisLock
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (2)
41private Object _thisLock = new Object(); 283protected Object ThisLock
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
787return (Object.ReferenceEquals(_channelSupportingTokenAuthenticatorSpecification, EmptyTokenAuthenticators)) ? null : (IList<SupportingTokenAuthenticatorSpecification>)_channelSupportingTokenAuthenticatorSpecification;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
89foreach (var protocol in Enum.GetValues(typeof(SslProtocols))) 706private static void CloseCommunicationObject(Object obj, bool aborted, TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\SpnEndpointIdentity.cs (2)
19private Object _thisLock = new Object(); 21private static Object s_typeLock = new Object();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
267Type type = (value == null) ? typeof(Object) : value.GetType();
FrameworkFork\System.ServiceModel\System\ServiceModel\UpnEndpointIdentity.cs (1)
23private Object _thisLock = new Object();
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
255protected override void Serialize(Object objectToSerialize, XmlSerializationWriter writer)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (14)
250global::System.Object ai = (global::System.Object)a[ia]; 421global::System.Object ai = (global::System.Object)a[ia]; 517global::System.Object ai = (global::System.Object)a[ia]; 615global::System.Object ai = (global::System.Object)a[ia]; 795global::System.Object ai = (global::System.Object)a[ia]; 922global::System.Object ai = (global::System.Object)a[ia]; 1405global::System.Object ai = (global::System.Object)a[ia];
FrameworkFork\System.Web.Services\Services\Description\WebReferenceOptions.cs (2)
515protected override void Serialize(System.Object objectToSerialize, XmlSerializationWriter writer) 519protected override System.Object Deserialize(XmlSerializationReader reader)
Metadata\MetadataDocumentLoader.cs (1)
47private readonly Object _thisLock = new Object();
Metadata\MetadataFileInfo.cs (1)
35return other != null && (Object.ReferenceEquals(this, other) || this.Equals(other.FilePath));
Shared\Options\ListValueOption.cs (2)
106var value = base.OnDeserializing(jToken); 125foreach (var item in collection)
Shared\Options\OptionBase.cs (3)
135var oldValue = this.Value; 152var value = OnDeserializing(jToken); 168var value = OptionValueParser.GetSerializationValue(this.Value);
Shared\Options\OptionsSerializer.cs (3)
207foreach (var input in options.Inputs) 222var value = OptionValueParser.GetSerializationValue(option.Value); 225foreach (var listValue in collection)
Shared\Options\OptionValueParser.cs (5)
140foreach (var item in collection) 142var serializationValue = GetSerializationValue(item); 162var value = option.Value; 170var newValue = GetSerializationValue(value); 227foreach (var entry in thisType.GetTypeInfo().GetEnumValues())
Shared\Options\SingleValueOption.cs (1)
37var value = base.OnDeserializing(jToken);
Shared\ProjectPropertyResolver.cs (1)
53var projInstance = Activator.CreateInstance(projType, new object[] { projectPath, globalProperties, /*toolsVersion*/ null });
Extensibility.MessageInterceptor.IntegrationTests (1)
TimeoutHelper.cs (1)
59public void SetTimer(TimerCallback callback, Object state)
GetDocument.Insider (8)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24551.5\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
130var webHost = webHostFactory(args); 140var webHostBuilder = webHostBuilderFactory(args); 141var webHost = Build(webHostBuilder); 151var hostBuilder = hostBuilderFactory(args); 152var host = Build(hostBuilder); 171var host = hostFactory(args);
Commands\GetDocumentCommandWorker.cs (2)
250var service = services.GetService(serviceType); 448var result = method.Invoke(instance, arguments);
HtmlGenerationWebSite (1)
TestCacheTagHelper.cs (1)
29if (MemoryCache.TryGetValue(cacheKey, out var _))
IIS.FunctionalTests (1)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
29var value = key.GetValue("EnableHttp3");
IISSample (1)
Startup.cs (1)
77var value = vars[key];
illink (3)
ILLink.RoslynAnalyzer (1)
COMAnalyzer.cs (1)
65 var unmanagedType = typedConstant.Value;
Infrastructure.Common (1)
JsonSerializer.cs (1)
20foreach (var key in dictionary.Keys)
InMemory.FunctionalTests (13)
ConnectionLimitTests.cs (1)
158m.Tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var value);
Http2\Http2ConnectionTests.cs (3)
256var headerReferences1 = typeof(HttpRequestHeaders).GetField("_headers", privateFlags).GetValue(stream1.RequestHeaders); 274var headerReferences2 = typeof(HttpRequestHeaders).GetField("_headers", privateFlags).GetValue(stream2.RequestHeaders); 498if (persistentStateCollection.TryGetValue("Counter", out var value))
Http2\Http2TimeoutTests.cs (1)
242var closeLock = new object();
Http3\Http3ConnectionTests.cs (2)
475var headerReferences1 = typeof(HttpRequestHeaders).GetField("_headers", privateFlags).GetValue(http3Stream1.RequestHeaders); 482var headerReferences2 = typeof(HttpRequestHeaders).GetField("_headers", privateFlags).GetValue(http3Stream2.RequestHeaders);
HttpsTests.cs (2)
594var testState = new object(); 640var testState = new object();
RequestTests.cs (3)
2141if (persistentStateCollection.TryGetValue("Counter", out var value)) 2165var firstRequestState = persistedState; 2181var secondRequestState = persistedState;
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error))
Interop.FunctionalTests (4)
Http3\Http3RequestTests.cs (3)
836if (persistentStateCollection.TryGetValue("Counter", out var value)) 857var firstRequestState = persistedState; 868var secondRequestState = persistedState;
Http3\Http3TlsTests.cs (1)
291var configuredState = new object();
InteropClient (1)
Assert.cs (1)
102foreach (var item in actual)
Kestrel.SampleApp (1)
ClientCertBufferingFeature.cs (1)
30&& !connectionItems.Items.TryGetValue("tls.clientcert.negotiated", out var _))
Microsoft.Analyzers.Local.Tests (1)
Json\JsonObjectTest.cs (1)
77foreach (var value in legacyEnumerable)
Microsoft.AspNetCore (3)
WebApplication.cs (1)
300if (_webApplication.Properties.TryGetValue("__MiddlewareDescriptions", out var value) &&
WebApplicationBuilder.cs (2)
395if (app.Properties.TryGetValue(EndpointRouteBuilderKey, out var priorRouteBuilder)) 499app.Properties.TryGetValue(MiddlewareDescriptionsKey, out var destinationValue) &&
Microsoft.AspNetCore.Analyzers.Test (6)
MinimalStartupTest.cs (3)
86var middleware = Assert.Single(middlewareAnalysis.Middleware); 111var middleware = Assert.Single(middlewareAnalysis.Middleware); 183var middleware = Assert.Single(middlewareAnalysis.Middleware);
StartupAnalyzerTest.cs (3)
152var middleware = Assert.Single(middlewareAnalysis.Middleware); 189var middleware = Assert.Single(middlewareAnalysis.Middleware); 295var middleware = Assert.Single(middlewareAnalysis.Middleware);
Microsoft.AspNetCore.Antiforgery (1)
src\Shared\HttpExtensions.cs (1)
42if (endpoint == null && context.Items.TryGetValue(OriginalEndpointKey, out var e) && e is Endpoint originalEndpoint)
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationProperties.cs (1)
153=> Parameters.TryGetValue(key, out var obj) && obj is T value ? value : default;
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\LdapAdapter.cs (2)
65foreach (var group in memberof) 124foreach (var member in memberof)
Microsoft.AspNetCore.Authorization (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
75foreach (var item in enumerable)
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManager.cs (1)
189foreach (var item in data)
Microsoft.AspNetCore.Components (34)
BindConverter.cs (1)
2062var converted = typeConverter.ConvertFrom(context: null, culture ?? CultureInfo.CurrentCulture, obj);
ParameterAttribute.cs (1)
28/// can be used with <see cref="RenderTreeBuilder.AddMultipleAttributes(int, System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{string, System.Object}})"/>
ParameterView.cs (3)
203var oldValue = oldFrame.AttributeValueField; 204var newValue = newFrame.AttributeValueField; 440var currentValue = state.ValueSupplier.GetCurrentValue(state.ParameterInfo);
Reflection\MemberAssignment.cs (1)
26if (!dictionary.TryGetValue(property.Name, out var others))
RenderTree\RenderTreeDiffBuilder.cs (2)
334var key = KeyValue(ref frame); 351var key = KeyValue(ref frame);
Routing\RouteTable.cs (1)
97if (!routeValues.TryGetValue(parameter.Name, out var parameterValue))
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (2)
274TryGetValue(key, out var value); 413return TryGetValue(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value);
src\Http\Routing\src\Constraints\BoolRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\DateTimeRouteConstraint.cs (1)
45if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\DecimalRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\DoubleRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\FileNameRouteConstraint.cs (1)
110if (values.TryGetValue(routeKey, out var obj) && obj != null)
src\Http\Routing\src\Constraints\FloatRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\GuidRouteConstraint.cs (1)
41if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\IntRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\LengthRouteConstraint.cs (1)
95if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\LongRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\MaxLengthRouteConstraint.cs (1)
59if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\MaxRouteConstraint.cs (1)
55if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\MinLengthRouteConstraint.cs (1)
59if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\MinRouteConstraint.cs (1)
53if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\NonFileNameRouteConstraint.cs (1)
106if (values.TryGetValue(routeKey, out var obj) && obj != null)
src\Http\Routing\src\Constraints\RangeRouteConstraint.cs (1)
67if (values.TryGetValue(routeKey, out var value) && value != null)
src\Http\Routing\src\Constraints\RegexRouteConstraint.cs (1)
94if (values.TryGetValue(routeKey, out var routeValue)
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (3)
517updatedDefaults.TryGetValue(kvp.Key, out var defaultValue) && 579var @default = parameter.Default; 581if (updatedDefaults != null && updatedDefaults.TryGetValue(parameter.Name, out var newDefault))
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (2)
51if (Defaults.TryGetValue(parameter.Name, out var value)) 178var defaultValue = _defaultValues[i];
src\Http\Routing\src\Template\RoutePrecedence.cs (1)
266if (routePattern.RequiredValues.TryGetValue(parameterPart.Name, out var requiredValue) &&
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeViewTest.cs (1)
460var resource = new object();
Microsoft.AspNetCore.Components.Endpoints (5)
Builder\RazorComponentEndpointFactory.cs (1)
42foreach (var attribute in pageDefinition.Metadata)
Discovery\PageCollectionBuilder.cs (1)
87foreach (var attribute in attributes)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
240if (!httpContext.Items.TryGetValue(ComponentSequenceKey, out var result))
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (2)
171if (!httpContext.Items.TryGetValue(InvokedRenderModesKey, out var result)) 196return httpContext.Items.TryGetValue(InvokedRenderModesKey, out var result)
Microsoft.AspNetCore.Components.Endpoints.Tests (31)
Binding\FormDataMapperTests.cs (14)
32var result = CallDeserialize(reader, options, type); 52var result = CallDeserialize(reader, options, typeof(Colors)); 72var result = CallDeserialize(reader, options, typeof(Colors?)); 108var result = CallDeserialize(reader, options, type); 168var result = CallDeserialize(reader, options, type); 185var result = CallDeserialize(reader, options, type); 1243var result = CallDeserialize(reader, options, typeof(TDictionary)); 1271var result = CallDeserialize(reader, options, typeof(TCollection)); 1917var result = CallDeserialize(reader, options, typeof(IFormFile)); 1945var result = CallDeserialize(reader, options, typeof(IReadOnlyList<IFormFile>)); 1978var result = CallDeserialize(reader, options, typeof(IFormFile)); 2000var result = CallDeserialize(reader, options, typeof(IFormFileCollection)); 2023var result = CallDeserialize(reader, options, typeof(IBrowserFile)); 2056var result = CallDeserialize(reader, options, typeof(IReadOnlyList<IBrowserFile>));
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
228var obj = new object();
EndpointHtmlRendererTest.cs (16)
142var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 178var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 214var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(preambleMarker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 263var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(preambleMarker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 474var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 479var value = Assert.Single(serverComponent.ParameterValues); 514var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 519var value = Assert.Single(serverComponent.ParameterValues); 554var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 559var value = Assert.Single(serverComponent.ParameterValues); 606var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 611var value = Assert.Single(serverComponent.ParameterValues); 1087var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 1092var value = Assert.Single(serverComponent.ParameterValues); 1116var parameterDefinition = Assert.Single(serverComponent.ParameterDefinitions); 1121var value = Assert.Single(serverComponent.ParameterValues);
Microsoft.AspNetCore.Components.Forms (5)
EditContextDataAnnotationsExtensions.cs (1)
89var propertyValue = propertyInfo.GetValue(fieldIdentifier.Model);
FieldIdentifier.cs (4)
35ParseAccessor(accessor, out var model, out var fieldName); 131var result = modelLambdaCompiled() ?? 180var result = accessor(value); 206var result = methodCallObjectLambdaCompiled();
Microsoft.AspNetCore.Components.Forms.Tests (23)
EditContextDataAnnotationsExtensionsTest.cs (1)
110var independentTopLevelModel = new object(); // To show we can validate things on any model, not just the top-level one
EditContextTest.cs (16)
18var model = new object(); 27var model = new object(); 274var key1 = new object(); 275var key2 = new object(); 276var key3 = new object(); 277var value1 = new object(); 278var value2 = new object(); 298var key1 = new object(); 299var key2 = new object(); 300var key3 = new object(); 301var value1 = new object(); 302var value2 = new object(); 310Assert.True(editContext.Properties.TryGetValue(key1, out var retrievedValue1)); 311Assert.True(editContext.Properties.TryGetValue(key2, out var retrievedValue2)); 324var key = new object(); 325var value = new object();
FieldIdentifierTest.cs (6)
45var model = new object(); 69var model = new object(); 82var model = new object(); 95var model = new object(); 122var model = new object(); 153var value = FieldIdentifier.GetModelFromMemberAccess((MemberExpression)body.Expression, cache);
Microsoft.AspNetCore.Components.QuickGrid (2)
QuickGrid.razor.cs (1)
181var _newItemsOrItemsProvider = Items ?? (object?)ItemsProvider;
src\Components\Shared\src\AttributeUtilities.cs (1)
12if (additionalAttributes is null || !additionalAttributes.TryGetValue("class", out var @class))
Microsoft.AspNetCore.Components.Server (8)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
52var metadata = b.Metadata[i];
Circuits\CircuitHandleRegistry.cs (2)
10if (circuitHandles.TryGetValue(circuitKey, out var circuitHandle)) 20if (circuitHandles.TryGetValue(circuitKey, out var circuitHandle))
Circuits\ComponentParameterDeserializer.cs (1)
65var parameterValue = JsonSerializer.Deserialize(
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (2)
81var metadata = c.Metadata[i]; 151var metadata = routeEndpoint.Metadata[i];
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (2)
448foreach (var arg in message.Arguments) 473foreach (var arg in message.Arguments)
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\RenderBatchWriterTest.cs (2)
317foreach (var expectedEntryIterationVar in entries) 320var expectedEntry = expectedEntryIterationVar.GetType().IsEnum
Circuits\ServerComponentDeserializerTest.cs (3)
34var deserializedDescriptor = Assert.Single(descriptors); 49var deserializedDescriptor = Assert.Single(descriptors); 68var deserializedDescriptor = Assert.Single(descriptors);
Microsoft.AspNetCore.Components.Tests (39)
BindConverterTest.cs (9)
39var actual = BindConverter.FormatValue<bool>(value); 67var actual = BindConverter.FormatValue<bool?>(value); 95var actual = BindConverter.FormatValue<bool?>(value); 123var actual = BindConverter.FormatValue<int>(value); 151var actual = BindConverter.FormatValue<int?>(value); 249var actual = BindConverter.FormatValue(value); 263var actual = BindConverter.FormatValue(value); 276var actual = BindConverter.FormatValue(value); 295var actual = BindConverter.FormatValue(value);
ParameterViewTest.Assignment.cs (3)
17var someObject = new object(); 93var existingObjectValue = new object(); 504var someObject = new object();
ParameterViewTest.cs (18)
43var attribute1Value = new object(); 44var attribute2Value = new object(); 67var attribute1Value = new object(); 68var attribute2Value = new object(); 89var attribute1Value = new object(); 90var attribute2Value = new object(); 91var attribute3Value = new object(); 149var myEntryValue = new object(); 158var result = parameters.GetValueOrDefault<object>("my entry"); 168var myEntryValue = new object(); 177var result = parameters.GetValueOrDefault<object>("my entry"); 272var entry2Value = new object(); 301var myEntryValue = new object(); 314var result = parameters.GetValueOrDefault<object>("my entry"); 363var attribute1Value = new object(); 383var attribute1Value = new object(); 384var attribute2Value = new object(); 385var attribute3Value = new object();
RendererTest.cs (2)
2074var objectThatWillNotChange = new object(); 5908var unrelatedThingToMakeTheLambdaCapture = new object();
Rendering\RenderTreeBuilderTest.cs (3)
127var nullObject = (object)null; 1693var keyValue = new object(); 1719var keyValue = new object();
RenderTreeDiffBuilderTest.cs (2)
1588var testObject = new object(); 1704var objectWillNotChange = new object();
Routing\QueryParameterValueSupplierTest.cs (1)
349var actualValue = _supplier.GetQueryParameterValue(typeof(T), key);
Routing\RouteTableFactoryTests.cs (1)
133foreach (var match in node.Matches)
Microsoft.AspNetCore.Components.Web (6)
Forms\EditContextFieldClassExtensions.cs (1)
34var provider = editContext.Properties.TryGetValue(FieldCssClassProviderKey, out var customProvider)
Forms\InputBase.cs (1)
203if (AdditionalAttributes?.TryGetValue("name", out var nameAttributeValue) ?? false)
Forms\Mapping\EditContextFormMappingExtensions.cs (2)
27if (context.Properties.TryGetValue(_key, out var result) && result is FormMappingContext mappingContext) 63var owner = error.Container;
Routing\NavLink.cs (1)
67if (AdditionalAttributes != null && AdditionalAttributes.TryGetValue("href", out var obj))
src\Components\Shared\src\AttributeUtilities.cs (1)
12if (additionalAttributes is null || !additionalAttributes.TryGetValue("class", out var @class))
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\Mapping\SupplyParameterFromFormTest.cs (2)
27var supplier = Assert.Single(result); 57var supplier = Assert.Single(result);
Microsoft.AspNetCore.Components.WebAssembly (1)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
60var parameterValue = JsonSerializer.Deserialize(
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
74var metadata = routeEndpoint.Metadata[i];
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\TestDocument.cs (3)
371var value = attributeFrame.AttributeValue; 386var value = attributeFrame.AttributeValue; 407var value = attributeFrame.AttributeValue;
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
45if (payload.TryGetValue("Increment", out var increment)) 49if (payload.TryGetValue("Mean", out var mean))
Microsoft.AspNetCore.Connections.Abstractions (4)
ConnectionItems.cs (2)
45if (Items.TryGetValue(key, out var value)) 116if (Items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
src\Shared\ActivatorUtilities\ActivatorUtilities.cs (2)
153var value = provider.GetService(parameter.ParameterType); 156if (!ParameterDefaultValue.TryGetDefaultValue(parameter, out var defaultValue))
Microsoft.AspNetCore.Cors (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
75foreach (var item in enumerable)
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptor.cs (1)
46var validationElement = (AuthenticatedEncryptorFactory.IsGcmAlgorithm(Configuration.EncryptionAlgorithm))
KeyManagement\XmlKeyManager.cs (2)
210var revocationInfo = ProcessRevocationElement(element); 442var obj = processed[i];
RegistryPolicyResolver.cs (3)
117var valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.EncryptionAlgorithm)); 153var valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.EncryptionAlgorithm)); 177var valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.EncryptionAlgorithmType));
Microsoft.AspNetCore.Diagnostics (5)
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (1)
1335foreach (var metadata in Model.Endpoint.Metadata)
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
114if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
src\Shared\HttpExtensions.cs (1)
42if (endpoint == null && context.Items.TryGetValue(OriginalEndpointKey, out var e) && e is Endpoint originalEndpoint)
src\Shared\Reroute.cs (1)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc)
StatusCodePage\StatusCodePagesExtensions.cs (1)
150if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
Microsoft.AspNetCore.Grpc.JsonTranscoding (13)
Internal\Json\AnyConverter.cs (2)
88var wrappedValue = valueMessage.Descriptor.Fields[JsonConverterHelper.WrapperValueFieldNumber].Accessor.GetValue(valueMessage); 111var value = accessor.GetValue(message);
Internal\Json\JsonConverterHelper.cs (1)
156foreach (var item in newValues)
Internal\Json\ValueConverter.cs (2)
28var structMessage = JsonSerializer.Deserialize(ref reader, field.MessageType.ClrType, options); 35var list = JsonSerializer.Deserialize(ref reader, field.MessageType.ClrType, options);
Internal\Json\WrapperConverter.cs (2)
21var value = JsonSerializer.Deserialize(ref reader, t, options); 30var innerValue = valueDescriptor.Accessor.GetValue(value);
Internal\JsonRequestHelpers.cs (2)
282var routeValue = serverCallContext.HttpContext.Request.RouteValues[parameterDescriptor.Key]; 297var value = item.Value.Count == 1 ? (object?)item.Value[0] : item.Value;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (4)
279foreach (var value in listValues) 281var v = field.Accessor.Descriptor.FieldType == FieldType.Message 312var wrappedValue = messageValue.Descriptor.Fields[WrapperValueFieldNumber].Accessor.GetValue(messageValue); 341var extensionValue = options?.GetExtension(UntypedHttpExtension);
Microsoft.AspNetCore.Grpc.Swagger (4)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (4)
279foreach (var value in listValues) 281var v = field.Accessor.Descriptor.FieldType == FieldType.Message 312var wrappedValue = messageValue.Descriptor.Fields[WrapperValueFieldNumber].Accessor.GetValue(messageValue); 341var extensionValue = options?.GetExtension(UntypedHttpExtension);
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingFeature.cs (1)
143var o = header.GetCachedValue(values);
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
307var instance = context.Properties[_startupKey];
GenericHost\WebHostBuilderBase.cs (1)
76if (!context.Properties.TryGetValue(typeof(WebHostBuilderContext), out var contextVal))
src\Shared\HttpExtensions.cs (1)
42if (endpoint == null && context.Items.TryGetValue(OriginalEndpointKey, out var e) && e is Endpoint originalEndpoint)
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (1)
1079var value = property.GetValue(o);
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
45if (payload.TryGetValue("Increment", out var increment)) 49if (payload.TryGetValue("Mean", out var mean))
Microsoft.AspNetCore.Html.Abstractions (3)
HtmlContentBuilder.cs (3)
108var entry = Entries[i]; 135var entry = Entries[i]; 165var entry = Entries[i];
Microsoft.AspNetCore.Html.Abstractions.Tests (2)
HtmlContentBuilderTest.cs (2)
23var result = Assert.Single(content.Entries); 71var result = Assert.Single(content.Entries);
Microsoft.AspNetCore.Http (2)
Internal\ItemsDictionary.cs (2)
32if (_items != null && _items.TryGetValue(key, out var value)) 122if (_items.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
Microsoft.AspNetCore.Http.Abstractions (9)
Extensions\UseMiddlewareExtensions.cs (4)
131var instance = ActivatorUtilities.CreateInstance(_app.ApplicationServices, _middleware, ctorArgs); 228var key = precomputedKeys[i]; 330var service = sp.GetService(type) ?? throw new InvalidOperationException(Resources.FormatException_InvokeMiddlewareNoService(type, middleware)); 339var service = ksp.GetKeyedService(type, key) ?? throw new InvalidOperationException(Resources.FormatException_InvokeMiddlewareNoService(type, middleware));
Extensions\UsePathBaseExtensions.cs (1)
33if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
Routing\RouteValueDictionary.cs (2)
274TryGetValue(key, out var value); 413return TryGetValue(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value);
src\Shared\Debugger\DebuggerHelpers.cs (1)
75foreach (var item in enumerable)
src\Shared\Reroute.cs (1)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc)
Microsoft.AspNetCore.Http.Abstractions.Tests (33)
RouteValueDictionaryTests.cs (28)
445var value = dict[""]; 458var value = dict["key"]; 471var value = dict["key"]; 485var value = dict["key"]; 499var value = dict["kEy"]; 516var value = dict["key"]; 533var value = dict["key"]; 550var value = dict["kEy"]; 1545var result = dict.Remove("key", out var removedValue); 1559var result = dict.Remove("", out var removedValue); 1573var result = dict.Remove("other", out var removedValue); 1589var result = dict.Remove("other", out var removedValue); 1606var result = dict.Remove("key", out var removedValue); 1623var result = dict.Remove("kEy", out var removedValue); 1642var result = dict.Remove("other", out var removedValue); 1662var result = dict.Remove("key", out var removedValue); 1682var result = dict.Remove("kEy", out var removedValue); 1704var result = dict.Remove("key", out var removedValue); 1729var result = dict.Remove("key", out var removedValue); 1754var result = dict.Remove("key", out var removedValue); 1916var result = dict.TryGetValue("key", out var value); 1930var result = dict.TryGetValue("", out var value); 1944var result = dict.TryGetValue("other", out var value); 1959var result = dict.TryGetValue("key", out var value); 1974var result = dict.TryGetValue("kEy", out var value); 1992var result = dict.TryGetValue("other", out var value); 2010var result = dict.TryGetValue("key", out var value); 2028var result = dict.TryGetValue("kEy", out var value);
UseMiddlewareTest.cs (2)
329if (_services.TryGetValue(serviceType, out var value)) 360var service = GetKeyedService(serviceType, serviceKey);
UsePathBaseExtensionsTests.cs (1)
256if (_services.TryGetValue(serviceType, out var value))
UseWhenExtensionsTests.cs (2)
133var item = context.Items[key]; 156var item = context.Items[key];
Microsoft.AspNetCore.Http.Connections (1)
ConnectionEndpointRouteBuilderExtensions.cs (1)
66foreach (var item in attributes)
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\AccessTokenHttpMessageHandler.cs (1)
30request.Properties.TryGetValue("IsNegotiate", out var value) && value is true
Microsoft.AspNetCore.Http.Extensions (3)
RequestDelegateFactory.cs (2)
812var key = keyedServicesAttribute.Key; 1382var bodyValue = defaultBodyValue;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
61var customAwaiter = _getAwaiterMethod(_customAwaitable);
Microsoft.AspNetCore.Http.Extensions.Tests (27)
ParameterBindingMethodCacheTests.cs (3)
393var result = await parseHttpContext(httpContext); 411var result = await parseHttpContext(httpContext); 460var result = await parseHttpContext(httpContext);
RequestDelegateFactoryTests.cs (6)
112var response = await next(context); 877var deserializedRequestBody = httpContext.Items["body"]; 3098var response = await next(context); 3374var metadata = builder.Metadata[i]; 3392var metadata = builder.Metadata[i]; 3410var metadata = builder.Metadata[i];
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (1)
160var bindAsyncType = BindAsyncUriTypesAndOptionalitySupport[i / 2][0];
RequestDelegateGenerator\RequestDelegateCreationTests.cs (4)
37var p = Assert.Single(endpointModel.Parameters); 130var reqParam = Assert.Single(endpointModel.Parameters); 137var reqParam = Assert.Single(endpointModel.Parameters); 619var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (4)
254var rawRequestBody = httpContext.Items["body"]; 295var rawRequestBody = httpContext.Items["body"]; 336var rawRequestBody = httpContext.Items["body"]; 377var rawRequestBody = httpContext.Items["body"];
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
245var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (2)
94var p = Assert.Single(endpointModel.Parameters); 172var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (4)
167var p = Assert.Single(endpointModel.Parameters); 190var p = Assert.Single(endpointModel.Parameters); 215var p = httpContext.Items["p"]; 231var p = Assert.Single(endpointModel.Parameters);
RequestDelegateGenerator\SharedTypes.cs (2)
648var metadata = builder.Metadata[i]; 666var metadata = builder.Metadata[i];
Microsoft.AspNetCore.Http.Microbenchmarks (8)
RouteValueDictionaryBenchmark.cs (6)
302dictionary.TryGetValue("action", out var action); 303dictionary.TryGetValue("controller", out var controller); 304dictionary.TryGetValue("id", out var id); 315dictionary.TryGetValue("action", out var action); 316dictionary.TryGetValue("controller", out var controller); 317dictionary.TryGetValue("id", out var id);
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
648var metadata = builder.Metadata[i]; 666var metadata = builder.Metadata[i];
Microsoft.AspNetCore.Http.Results.Tests (9)
BadRequestOfTResultTests.cs (1)
24var obj = new object();
ConflictOfTResultTests.cs (1)
23var obj = new object();
InternalServerErrorOfTResultTests.cs (1)
24var obj = new object();
TypedResultsTests.cs (5)
847var data = default(object); 863var data = default(object); 880var data = default(object); 897var data = default(object); 913var data = default(object);
UnprocessableEntityOfTResultTests.cs (1)
35var obj = new object();
Microsoft.AspNetCore.Http.Tests (6)
DefaultHttpContextTests.cs (6)
116var item = new object(); 144var item = new object(); 343var boxedExpectedStruct = features == null ? 347var boxedActualStruct = field.GetValue(value); 383var v = field.GetValue(value); 403var v = property.GetValue(value);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
158var context = CreateTestContext();
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\HtmlPageContext.cs (1)
25_properties.TryGetValue(key, out var rawValue) ? (TValue)rawValue : default;
Microsoft.AspNetCore.Identity.Specification.Tests (8)
IdentitySpecificationTestBase.cs (8)
362var context = CreateTestContext(); 387var context = CreateTestContext(); 425var context = CreateTestContext(); 448var context = CreateTestContext(); 478var context = CreateTestContext(); 498var context = CreateTestContext(); 519var context = CreateTestContext(); 567var context = CreateTestContext();
Microsoft.AspNetCore.InternalTesting (2)
xunit\AspNetTestRunner.cs (1)
35foreach (var obj in ConstructorArguments)
xunit\ConditionalTheoryDiscoverer.cs (1)
51var obj = dataRow[0];
Microsoft.AspNetCore.InternalTesting.Tests (6)
AspNetTestAssemblyRunnerTest.cs (6)
24var fixtureObject = Assert.Single(runner.Fixtures); 39var fixtureObject = Assert.Single(runner.Fixtures); 58var fixtureObject = Assert.Single(runner.Fixtures); 79var fixtureObject = Assert.Single(runner.Fixtures); 98var fixtureObject = Assert.Single(runner.Fixtures); 120var fixtureObject = Assert.Single(runner.Fixtures);
Microsoft.AspNetCore.JsonPatch (27)
Adapters\ObjectAdapter.cs (7)
83var target = objectToApplyTo; 105if (TryGetValue(operation.from, objectToApplyTo, operation, out var propertyValue)) 138var target = objectToApplyTo; 162var target = objectToApplyTo; 184if (TryGetValue(operation.from, objectToApplyTo, operation, out var propertyValue)) 212var target = objectToApplyTo; 243var target = objectToGetValueFrom;
Converters\TypedJsonPatchDocumentConverter.cs (2)
39var targetOperations = Activator.CreateInstance(concreteList); 52var container = Activator.CreateInstance(objectType, targetOperations, JsonPatchDocumentConverter.DefaultContractResolver);
Internal\ConversionResultProvider.cs (3)
38var deserialized = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(value), typeToConvertTo); 47var deserialized = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(value), typeToConvertTo, serializerSettings); 72var deserialized = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(value), targetType);
Internal\DynamicObjectAdapter.cs (6)
60if (!TryGetDynamicObjectProperty(target, contractResolver, segment, out var property, out errorMessage)) 90if (!TryGetDynamicObjectProperty(target, contractResolver, segment, out var property, out errorMessage)) 95if (!TryConvertValue(value, property.GetType(), contractResolver, out var convertedValue)) 122if (!TryGetDynamicObjectProperty(target, contractResolver, segment, out var property, out errorMessage)) 127if (!TryConvertValue(value, property.GetType(), contractResolver, out var convertedValue)) 152if (!TryGetDynamicObjectProperty(target, contractResolver, segment, out var property, out errorMessage))
Internal\ListAdapter.cs (4)
39if (!TryConvertValue(value, typeArgument, segment, contractResolver, out var convertedValue, out errorMessage)) 141if (!TryConvertValue(value, typeArgument, segment, contractResolver, out var convertedValue, out errorMessage)) 178if (!TryConvertValue(value, typeArgument, segment, contractResolver, out var convertedValue, out errorMessage)) 183var currentValue = list[positionInfo.Index];
Internal\ObjectVisitor.cs (1)
57if (!adapter.TryTraverse(target, _path.Segments[i], _contractResolver, out var next, out errorMessage))
Internal\PocoAdapter.cs (4)
37if (!TryConvertValue(value, jsonProperty.PropertyType, contractResolver, out var convertedValue)) 128if (!TryConvertValue(value, jsonProperty.PropertyType, contractResolver, out var convertedValue)) 160if (!TryConvertValue(value, jsonProperty.PropertyType, contractResolver, out var convertedValue)) 166var currentValue = jsonProperty.ValueProvider.GetValue(target);
Microsoft.AspNetCore.JsonPatch.Tests (9)
CustomNamingStrategyTests.cs (1)
81cont.TryGetValue("customStringProperty", out var valueFromDictionary);
IntegrationTests\ExpandoObjectIntegrationTest.cs (1)
255cont.TryGetValue("StringProperty", out var valueFromDictionary);
Internal\DictionaryAdapterTest.cs (3)
77var getStatus = dictionaryAdapter.TryGet(dictionary, guidKey.ToString(), resolver, out var outValue, out message); 104var getStatus = dictionaryAdapter.TryGet(dictionary, nameKey.ToUpperInvariant(), resolver, out var outValue, out message); 131addStatus = dictionaryAdapter.TryGet(dictionary, nameKey, resolver, out var outValue, out message);
Internal\ListAdapterTest.cs (2)
313var getStatus = listAdapter.TryGet(targetObject, position, resolver, out var value, out var message); 332var getStatus = listAdapter.TryGet(targetObject, position, resolver, out var value, out var message);
Internal\PocoAdapterTest.cs (2)
70var getStatus = adapter.TryGet(model, "Name", contractResolver, out var value, out var errorMessage); 91var getStatus = adapter.TryGet(model, "LastName", contractResolver, out var value, out var errorMessage);
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
66if (Properties.TryGetValue(NextMiddlewareName, out var middlewareNameObj) && middlewareNameObj != null)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptorExtensions.cs (1)
22if (actionDescriptor.Properties.TryGetValue(typeof(T), out var value))
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
295var key = new object();
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
SymbolApiConventionMatcher.cs (2)
71var argEnum = attribute.ConstructorArguments[0].Value; 93var argEnum = attribute.ConstructorArguments[0].Value;
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiDescriptionExtensions.cs (1)
22if (apiDescription.Properties.TryGetValue(typeof(T), out var value))
ApiResponseTypeProvider.cs (1)
40action.Properties.TryGetValue(typeof(ApiConventionResult), out var result))
DefaultApiDescriptionProvider.cs (1)
336ParameterDefaultValues.TryGetDeclaredParameterDefaultValue(controllerParameter.ParameterInfo, out var defaultValue))
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (1)
2147var defaultValue = new object();
EndpointMetadataApiDescriptionProviderTest.cs (1)
1552var endpointMetadata = new EndpointMetadataCollection([.. metadataItems, .. attributes]);
Microsoft.AspNetCore.Mvc.Core (71)
ApplicationModels\DefaultApplicationModelProvider.cs (5)
143foreach (var attribute in attributes) 337foreach (var attribute in attributes) 501foreach (var attribute in attributes) 556foreach (var attribute in attributes) 592foreach (var attribute in attributes)
Controllers\ControllerFactoryProvider.cs (1)
60var controller = controllerActivator(controllerContext);
Controllers\DefaultControllerFactory.cs (1)
50var controller = _controllerActivator.Create(context);
Filters\ControllerActionFilter.cs (1)
25var controller = context.Controller;
Filters\ControllerResultFilter.cs (1)
25var controller = context.Controller;
Filters\MiddlewareFilterConfigurationProvider.cs (1)
28var instance = Activator.CreateInstance(configurationType)!;
Formatters\FormatFilter.cs (1)
39if (context.RouteData.Values.TryGetValue("format", out var obj))
Infrastructure\ActionMethodExecutor.cs (15)
76var result = await _controllerActionDescriptor.FilterDelegate!(context); 110var controller = invocationContext.Controller; 141var controller = invocationContext.Controller; 166var returnValue = executor.Execute(controller, arguments); 174var controller = invocationContext.Controller; 179var returnValue = executor.Execute(controller, arguments); 205var controller = invocationContext.Controller; 233var controller = invocationContext.Controller; 259var returnValue = executor.Execute(controller, arguments); 269var controller = invocationContext.Controller; 274var returnValue = executor.Execute(controller, arguments); 306var controller = invocationContext.Controller; 335var returnValue = await executor.ExecuteAsync(controller, arguments); 343var controller = invocationContext.Controller; 347var returnValue = await executor.ExecuteAsync(controller, arguments);
Infrastructure\ActionSelectionTable.cs (1)
170values.TryGetValue(routeKeys[i], out var value);
Infrastructure\ConfigureCompatibilityOptions.cs (1)
79if (!defaultValues.TryGetValue(@switch.Name, out var value))
Infrastructure\ControllerActionInvoker.cs (4)
294var state = (object?)null; 411var controller = invoker._instance; 460var state = (object?)null; 545if (!actionParameters.TryGetValue(parameterInfo.Name!, out var value) || value is null)
Infrastructure\ObjectResultExecutor.cs (1)
79var value = result.Value;
Infrastructure\ParameterDefaultValues.cs (1)
29TryGetDeclaredParameterDefaultValue(parameterInfo, out var defaultValue);
Infrastructure\ResourceInvoker.cs (6)
224var state = (object?)null; 951var state = (object?)null; 1002var state = (object?)null; 1051var state = (object?)null; 1089var state = (object?)null; 1353var state = (object?)null;
Infrastructure\SystemTextJsonResultExecutor.cs (2)
60var value = result.Value; 111var serializerSettings = result.SerializerSettings;
ModelBinding\Binders\BodyModelBinder.cs (1)
166var model = result.Model;
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
24var model = (object)bindingContext.HttpContext.RequestAborted;
ModelBinding\Binders\CollectionModelBinder.cs (3)
111var model = bindingContext.Model; 292var boundValue = bindingContext.Result.Model; 454var newCollection = CreateInstance(targetType);
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
703var value = result.Model;
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
541var value = result.Model;
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
31var model = _isOptional ?
ModelBinding\Binders\ServicesModelBinder.cs (1)
25var model = IsOptional ?
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
277if (ParameterDefaultValue.TryGetDefaultValue(constructorParameter, out var defaultValue))
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (1)
21foreach (var attribute in context.Attributes)
ModelBinding\ModelBindingHelper.cs (5)
460var model = bindingContext.Model; 544var model = bindingContext.Model; 598var converted = ConvertTo(value, typeof(T), culture); 651var element = ConvertSimpleType(value, destinationElementType, culture); 662var elementValue = valueAsArray.GetValue(0);
ModelBinding\PropertyValueSetter.cs (1)
44var target = metadata.PropertyGetter!(instance);
ModelBinding\RouteValueProvider.cs (1)
90if (_values.TryGetValue(key, out var value))
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
123var model = _enumerator.Current;
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
96var model = _enumerator.Current;
Routing\ActionEndpointFactory.cs (2)
197else if (route.Pattern.Defaults.TryGetValue(key, out var value)) 364foreach (var d in action.EndpointMetadata)
Routing\EndpointRoutingUrlHelper.cs (2)
45AmbientValues.TryGetValue("action", out var action)) 58AmbientValues.TryGetValue("controller", out var controller))
Routing\KnownRouteValueConstraint.cs (1)
44if (values.TryGetValue(routeKey, out var obj))
Routing\NormalizedRouteValue.cs (1)
27if (!context.RouteData.Values.TryGetValue(key, out var routeValue))
Routing\UrlHelperFactory.cs (1)
38if (httpContext.Items.TryGetValue(typeof(IUrlHelper), out var value) && value is IUrlHelper urlHelper)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
61var customAwaiter = _getAwaiterMethod(_customAwaitable);
src\Shared\PropertyActivator\PropertyActivator.cs (1)
32var value = _valueAccessor(context);
Microsoft.AspNetCore.Mvc.Core.Test (82)
ApplicationModels\ActionModelTest.cs (2)
96var value1 = property.GetValue(action); 97var value2 = property.GetValue(action2);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
41var value = actionModel.Properties[typeof(ApiConventionResult)]; 57var value = actionModel.Properties[typeof(ApiConventionResult)];
ApplicationModels\AttributeRouteModelTests.cs (2)
28var value1 = property.GetValue(route); 29var value2 = property.GetValue(route2);
ApplicationModels\ControllerModelTest.cs (2)
98var value1 = property.GetValue(controller); 99var value2 = property.GetValue(controller2);
ApplicationModels\DefaultApplicationModelProviderTest.cs (5)
84var attribute = Assert.Single(property.Attributes); 101var attribute = Assert.Single(property.Attributes); 136var attribute = Assert.Single(property.Attributes); 153var attribute = Assert.Single(property.Attributes); 189var attribute = Assert.Single(parameter.Attributes);
ApplicationModels\EndpointMetadataProviderTest.cs (4)
443var metadata = builder.Metadata[i]; 462var metadata = builder.Metadata[i]; 482var metadata = builder.Metadata[i]; 500var metadata = builder.Metadata[i];
ApplicationModels\ParameterModelTest.cs (2)
39var value1 = property.GetValue(parameter); 40var value2 = property.GetValue(parameter2);
ApplicationModels\PropertyModelTest.cs (2)
35var value1 = property.GetValue(propertyModel); 36var value2 = property.GetValue(propertyModel2);
BadRequestObjectResultTests.cs (1)
15var obj = new object();
ConflictObjectResultTest.cs (1)
15var obj = new object();
ControllerBaseTest.cs (5)
1502var value = new object(); 2038var obj = new object(); 2084var obj = new object(); 2116var obj = new object(); 2131var obj = new object();
Controllers\ControllerActivatorProviderTest.cs (4)
18var expected = new object(); 31var result = activatorDelegate(new ControllerContext()); 62var result = activatorDelegate(context); 73var expected = new object();
Controllers\ControllerBinderDelegateProviderTest.cs (2)
1027if (inputPropertyValues.TryGetValue(bindingContext.FieldName, out var model)) 1191Assert.True(arguments.TryGetValue("accountId", out var value));
Controllers\ControllerFactoryProviderTest.cs (8)
15var expected = new object(); 31var result = factoryResult(new ControllerContext()); 42var controller = new object(); 67var controller = new object(); 92var expectedProperty1 = new object(); 93var expectedProperty2 = new object(); 135var controller = factoryDelegate(new ControllerContext()); 151var controller = new object();
Controllers\DefaultControllerActivatorTest.cs (1)
108var controller = new object();
Controllers\DefaultControllerFactoryTest.cs (5)
42var result = controllerFactory.CreateController(context); 70var result = factory.CreateController(context); 97var result = factory.CreateController(context); 124var result = factory.CreateController(context); 151var result = factory.CreateController(context);
Controllers\ServiceBasedControllerActivatorTest.cs (1)
36var instance = activator.Create(context);
Formatters\StreamOutputFormatterTest.cs (1)
69var @object = type != null ? Activator.CreateInstance(type) : null;
Infrastructure\JsonResultExecutorTestBase.cs (1)
188var serializerSettings = GetIndentedSettings();
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
439var originalModel = bindingContext.Model;
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
521var model = binder.CreateModelPublic(bindingContext); 596var originalModel = bindingContext.Model;
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (3)
123var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata); 142var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata); 162var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata);
ModelBinding\Metadata\ModelAttributesTest.cs (1)
174var attribute = Assert.Single(attributes.TypeAttributes);
ModelBinding\Validation\CompositeModelValidatorProviderTest.cs (1)
14var validatorMetadata = new object();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (21)
31var model = (object)15; 57var model = (object)"test"; 84var model = (object)"test"; 113var model = (object)"test"; 162var model = (object)new ValueType() { Reference = "ref", Value = 256 }; 194var model = (object)new ReferenceType() { Reference = "ref", Value = 256 }; 226var model = (object)new Person(); 300var model = (object)new Address() { Street = "Microsoft Way" }; 332var model = (object)new Address() { Street = "Microsoft Way" }; 364var model = (object)new Person() { Name = "Rick", Friend = new Person() }; 476var model = (object)new ValidatableModel(); 521var model = (object)new ValidatableModelContainer 623var model = (object)new VariableTest() { test = 5 }; 654var model = (object)person; 690var model = (object)person; 759var model = (object)new int[] { 5, 17 }; 792var model = (object)new Person[] { new Person(), new Person() }; 835var model = (object)new List<Person> { new Person(), new Person() }; 1032var model = (object)new Dictionary<string, Person> { { "Joe", new Person() }, { "Mark", new Person() } }; 1231var model = (object)23; // Box ASAP 1344var model = (object)new SelfValidatableModelContainer
Routing\ActionEndpointFactoryTest.cs (1)
487var isPresent = fullSet.TryGetValue(subsetPair.Key, out var fullSetPairValue);
UnprocessableEntityObjectResultTests.cs (1)
15var obj = new object();
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
38if (TryGetValue(key, out var rawValue))
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (1)
309var attribute = contextAttributes[i];
DataAnnotationsModelValidator.cs (1)
72var container = validationContext.Container;
ValidatableObjectAdapter.cs (1)
14var model = context.Model;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (6)
100var value = accessor(context.DisplayMetadata); 1164var attribute = Assert.Single(context.ValidationMetadata.ValidatorMetadata, m => m is RequiredAttribute); 1189var attribute = Assert.Single(context.ValidationMetadata.ValidatorMetadata, m => m is RequiredAttribute a); 1533var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata); 1554var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata); 1575var validatorMetadata = Assert.Single(context.ValidationMetadata.ValidatorMetadata);
Microsoft.AspNetCore.Mvc.Formatters.Xml (10)
ProblemDetailsWrapper.cs (1)
155var value = keyValuePair.Value;
SerializableErrorWrapper.cs (1)
90var value = keyValuePair.Value;
XmlDataContractSerializerInputFormatter.cs (2)
146var deserializedObject = serializer.ReadObject(xmlReader); 239if (!_serializerCache.TryGetValue(type, out var serializer))
XmlDataContractSerializerOutputFormatter.cs (2)
227var value = context.Object; 295if (!_serializerCache.TryGetValue(type, out var serializer))
XmlSerializerInputFormatter.cs (2)
130var deserializedObject = serializer.Deserialize(xmlReader); 244if (!_serializerCache.TryGetValue(type, out var serializer))
XmlSerializerOutputFormatter.cs (2)
206var value = context.Object; 284if (!_serializerCache.TryGetValue(type, out var serializer))
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (9)
EnumerableWrapperProviderTest.cs (2)
44var wrapped = wrapperProvider.Wrap(new int[] { }); 64var wrapped = wrapperProvider.Wrap(null);
ProblemDetailsWrapperProviderFactoryTest.cs (2)
34var result = provider.Wrap(instance); 51var result = provider.Wrap(instance);
ProblemDetailsWrapperTest.cs (1)
28var value = serializer.ReadObject(
SerializableErrorWrapperProviderTest.cs (1)
30var wrapped = wrapperProvider.Wrap(serializableError);
ValidationProblemDetailsWrapperTest.cs (3)
32var value = serializer.ReadObject( 88var value = serializer.ReadObject( 126var value = serializer.ReadObject(
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ControllerEndpointFiltersTest.cs (3)
45Assert.True(content.TryGetValue(nameof(IEndpointFilter), out var endpointFilterCalled)); 58Assert.True(content.TryGetValue(nameof(EndpointFilterFactoryContext.MethodInfo.Name), out var methodInfo)); 83Assert.True(content.TryGetValue(nameof(EndpointFilterInvocationContext.Arguments), out var argument));
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
SuccessfulModelBinder.cs (1)
15var model = bindingContext.ModelType == typeof(bool) ? (object)true : null;
ValidationIntegrationTests.cs (1)
1546var container = parentEntry.Model;
ValidationWithRecordIntegrationTests.cs (1)
1356var container = parentEntry.Model;
Microsoft.AspNetCore.Mvc.Localization.Test (1)
TestStringLocalizer.cs (1)
48foreach (var arg in arguments)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (6)
BsonTempDataSerializer.cs (3)
73var result = arrayConverter(jArrayValue); 100var result = dictionaryConverter(jObjectValue); 128foreach (var item in values.Values)
NewtonsoftJsonOutputFormatter.cs (1)
152var value = context.Object;
NewtonsoftJsonResultExecutor.cs (2)
104var value = result.Value; 147var serializerSettings = result.SerializerSettings;
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
188var serializerSettings = GetIndentedSettings();
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPagePropertyActivator.cs (2)
86var value = serviceProvider.GetRequiredKeyedService(property.PropertyType, key); 127var value = serviceProvider.GetRequiredService(property.PropertyType);
Microsoft.AspNetCore.Mvc.Razor.Test (2)
DefaultTagHelperFactoryTest.cs (1)
36var viewDataValue = new object();
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
28var viewDataValue = new object();
Microsoft.AspNetCore.Mvc.RazorPages (10)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (2)
30if (builder.Items.TryGetValue(EndpointRouteBuilderKey, out var endpointBuilder)) 32var (resolver, registered) = builder.Items.TryGetValue(ResourceCollectionResolverKey, out var value)
Filters\PageHandlerPageFilter.cs (1)
20var handlerInstance = context.HandlerInstance;
Filters\PageHandlerResultFIlter.cs (1)
20var handler = context.Controller;
Filters\PageViewDataAttributeFilter.cs (1)
39var value = property.GetValue(Subject);
Infrastructure\DefaultPageModelFactoryProvider.cs (1)
38var model = modelActivator(pageContext);
Infrastructure\ExecutorFactory.cs (1)
132var result = await _thunk(receiver, arguments);
Infrastructure\PageActionInvoker.cs (3)
78var state = (object?)null; 232if (argumentsInDictionary.TryGetValue(parameter.ParameterInfo.Name!, out var value)) 654var state = (object?)null;
Microsoft.AspNetCore.Mvc.RazorPages.Test (25)
Filters\PageHandlerResultFilterTest.cs (1)
144var model = new object();
Filters\PageViewDataAttributeFilterTest.cs (2)
22var handler = new object(); 41var handler = new object();
Infrastructure\DefaultPageActivatorProviderTest.cs (1)
44var instance = factory(pageContext, viewContext);
Infrastructure\DefaultPageFactoryProviderTest.cs (10)
58var instance = factory(pageContext, viewContext); 94var instance = factory(pageContext, viewContext); 124var instance = factory(pageContext, viewContext); 151var instance = factory(pageContext, viewContext); 178var instance = factory(pageContext, viewContext); 203var instance = factory(pageContext, viewContext); 237var instance = factory(pageContext, viewContext); 275var instance = factory(pageContext, viewContext); 318var instance = factory(pageContext, viewContext); 356var instance = factory(pageContext, viewContext);
Infrastructure\DefaultPageModelActivatorProviderTest.cs (2)
53var model = activator(pageContext); 83var model = activator(pageContext);
Infrastructure\DefaultPageModelFactoryProviderTest.cs (2)
54var instance = factory(pageContext); 74var instance = factory(pageContext);
Infrastructure\PageActionDescriptorProviderTest.cs (1)
206var expected = new object();
Infrastructure\PageBinderFactoryTest.cs (1)
832if (_args.TryGetValue(parameter.Name, out var result))
Infrastructure\PageHandlerPageFilterTest.cs (1)
147var model = new object();
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (2)
52var instance = activator(pageContext); 84var model = activator(pageContext);
PageModelTest.cs (1)
1767var model = new object();
PageTest.cs (1)
1845var model = new object();
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (1)
452var value = For.Model;
LinkTagHelper.cs (1)
411var attributeValue = relAttribute.Value;
OptionTagHelper.cs (1)
74context.Items.TryGetValue(typeof(SelectTagHelper), out var formDataEntry);
PartialTagHelper.cs (1)
140var model = ResolveModel();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (15)
PartialTagHelperTest.cs (15)
24var expectedModel = new object(); 31var model = tagHelper.ResolveModel(); 53var model = tagHelper.ResolveModel(); 79var model = tagHelper.ResolveModel(); 89var expectedModel = new object(); 98var model = tagHelper.ResolveModel(); 155var model = new object(); 193var model = new object(); 275var model = new object(); 458var model = new object(); 497var model = new object(); 612var model = new object(); 654var model = new object(); 756var model = new object(); 800var model = new object();
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
660var instance = service.ImplementationFactory(sp);
Microsoft.AspNetCore.Mvc.Testing (6)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24551.5\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
130var webHost = webHostFactory(args); 140var webHostBuilder = webHostBuilderFactory(args); 141var webHost = Build(webHostBuilder); 151var hostBuilder = hostBuilderFactory(args); 152var host = Build(hostBuilder); 171var host = hostFactory(args);
Microsoft.AspNetCore.Mvc.ViewFeatures (39)
CachedExpressionCompiler.cs (2)
102var constantValue = constantExpression.Value; 187var capturedLocal = constantExpression.Value;
DefaultDisplayTemplates.cs (3)
74var model = htmlHelper.ViewData.Model; 112foreach (var item in enumerable) 268var value = htmlHelper.ViewData.TemplateInfo.FormattedModelValue;
DefaultEditorTemplates.cs (7)
56var model = viewData.Model; 94foreach (var item in enumerable) 144var model = viewData.Model; 156var htmlAttributesObject = viewData[HtmlAttributeKey]; 173var htmlAttributesObject = htmlHelper.ViewData[HtmlAttributeKey]; 199if (htmlAttributes.TryGetValue("class", out var htmlClassObject)) 422var value = htmlHelper.ViewData.Model;
DefaultHtmlGenerator.cs (6)
459var model = modelExplorer.Model; 910var rawValue = GetModelStateValue(viewContext, fullName, type); 972foreach (var value in rawValues) 1339foreach (var attribute in modelExplorer.Metadata.ValidatorMetadata) 1494var value = viewContext.ViewData.Eval(expression); 1536htmlAttributeDictionary.TryGetValue(fallbackAttributeName, out var attributeObject);
Filters\ControllerViewDataAttributeFilter.cs (1)
34var value = property.GetValue(Subject);
Filters\SaveTempDataFilter.cs (1)
120if (httpContext.Items.TryGetValue(SaveTempDataFilterContextKey, out var value))
Filters\SaveTempDataPropertyFilterBase.cs (3)
49OriginalValues.TryGetValue(property.PropertyInfo, out var originalValue); 51var newValue = property.GetValue(Subject); 75var value = tempData[property.Key];
FormatWeekHelper.cs (1)
12var value = modelExplorer.Model;
PartialViewResultExecutor.cs (1)
168if (!context.RouteData.Values.TryGetValue(ActionNameKey, out var routeValue))
Rendering\MultiSelectList.cs (4)
153foreach (var value in SelectedValues) 161foreach (var item in Items) 187foreach (var item in Items) 204var value = container;
TempDataDictionary.cs (2)
90if (TryGetValue(key, out var value)) 182_data.TryGetValue(key, out var value);
TemplateBuilder.cs (2)
84var formattedModelValue = _model; 130var visitedObjectsKey = _model ?? _modelExplorer.ModelType;
ViewComponents\DefaultViewComponentActivator.cs (1)
48var viewComponent = _typeActivatorCache.CreateInstance<object>(
ViewComponents\DefaultViewComponentFactory.cs (1)
44var component = _activator.Create(context);
ViewComponents\DefaultViewComponentInvoker.cs (1)
214if (!parameters.TryGetValue(parameterInfo.Name!, out var value))
ViewDataDictionary.cs (2)
310_data.TryGetValue(index, out var result); 383var value = Eval(expression);
ViewResultExecutor.cs (1)
168if (!context.RouteData.Values.TryGetValue(ActionNameKey, out var routeValue))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (117)
CachedExpressionCompilerTest.cs (43)
22var result = func(model); 55var result = func(model); 71var result = func(model); 87var result = func(null); 104var result1 = func1(null); 111var result2 = func1(null); 127var result1 = func(null); 134var result2 = func(null); 151var result = func(model); 167var result = func(model); 201var result = func(model); 234var result = func(null); 250var result = func(model); 265var result = func(null); 281var result = func(model); 313var result = func(model); 329var result = func(model); 345var result = func(model); 361var result = func(model); 377var result = func(model); 393var result = func(model); 409var result = func(model); 425var result = func(model); 441var result = func(model); 458var result = func(nullableModel); 474var result = func(nullableModel); 491var result = func(model); 507var result = func(model); 524var result = func(model); 583var result = func(model); 606var result = func(model); 627var result = func(model); 654var result = func(model); 677var result = func(model); 693var result = func(model); 709var result = func(model); 729var result = func(model); 749var result = func(model); 769var result = func(model); 785var result = func(model); 801var result = func(model); 832var result = func(model); 849var result = func(model);
ControllerTest.cs (11)
94var model = new object(); 138var model = new object(); 160var model = new object(); 205var model = new object(); 228var model = new object(); 251var model = new object(); 273var model = new object(); 313var data = new object(); 328var data = new object(); 329var serializerSettings = new object(); 380var result = controller.TempData["key"];
ControllerUnitTestabilityTests.cs (1)
224var serializerSettings = new object();
Filters\ControllerViewDataAttributeFilterTest.cs (2)
19var controller = new object(); 37var controller = new object();
Filters\LifecyclePropertyTest.cs (1)
17var value = lifecycleProperty.GetValue(subject);
Filters\TempDataApplicationModelProviderTest.cs (2)
80var property = Assert.Single(filter.TempDataProperties); 101var property = Assert.Single(filter.TempDataProperties);
Filters\ViewDataAttributeApplicationModelProviderTest.cs (1)
60var property = Assert.Single(filter.Properties);
ModelExplorerTest.cs (2)
98var propertyValue = propertyExplorer.Model; 114var propertyValue = propertyExplorer.Model;
PartialViewResultTest.cs (1)
28var customModel = new object();
RemoteAttributeTest.cs (3)
95var resultName = Assert.Single( 113var resultName = Assert.Single( 133var resultName = Assert.Single(
Rendering\HtmlHelperFormExtensionsTest.cs (8)
85foreach (var htmlAttributes in _htmlAttributes) 106foreach (var routeValues in _routeValues) 126foreach (var routeValues in _routeValues) 161foreach (var htmlAttributes in _htmlAttributes) 211foreach (var htmlAttributes in _htmlAttributes) 229foreach (var routeValues in _routeValues) 246foreach (var routeValues in _routeValues) 264foreach (var routeValues in _routeValues)
Rendering\HtmlHelperPartialExtensionsTest.cs (8)
20var model = new object(); 95var model = new object(); 144var model = new object(); 218var model = new object(); 265var model = new object(); 290var model = new object(); 309var model = new object(); 335var passedInModel = new object();
TempDataDictionaryTest.cs (9)
32var value = tempData["Foo"]; 102var foo = tempData["Foo"]; 103var bar = tempData["Bar"]; 120var value = tempData.Peek("bar"); 133var item = new object(); 137var value = tempData["FOO"]; 155var value = tempData["FOO"]; 171tempData.TryGetValue("foo", out var fooValue); 172var barValue = tempData["bar"];
ViewComponentResultTest.cs (1)
37var customModel = new object();
ViewComponents\DefaultViewComponentFactoryTest.cs (1)
26var result = factory.CreateViewComponent(context);
ViewComponents\DefaultViewComponentHelperTest.cs (1)
101var expectedValue = new object();
ViewComponentTests.cs (3)
87var model = new object(); 125var model = new object(); 203var model = new object();
ViewDataDictionaryTest.cs (18)
492var result = viewData.Eval(expression); 506var result = viewData.Eval("Foo.Bar"); 521var result = viewData.Eval("Foo"); 535var result = viewData.Eval("Foo"); 549var result = viewData.Eval("Foo.Bar"); 563var result = viewData.Eval("Foo.Bar"); 577var result = viewData.Eval("Foo.Bar.Baz"); 591var result = viewData.Eval("Foo.Bar.Baz.Blah"); 609var result = viewData.Eval("Foo.Bar"); 627var result = viewData.Eval("Foo.Bar.Baz"); 645var result = viewData.Eval("Foo.Bar.Baz"); 658var model = new object(); 662var result = viewData.Eval(expression); 676var result = viewData.Eval("Foo.Bar"); 690var result = viewData.Eval("Foo.Bar"); 711var result = viewData.Eval("Foo.Bar.Baz"); 773var result = viewData.Eval("Model"); 794var result = viewData.Eval("Value");
ViewResultTest.cs (1)
38var customModel = new object();
Microsoft.AspNetCore.OpenApi (8)
Comparers\OpenApiSchemaComparer.cs (2)
82if (x.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var xSchemaId) 83&& y.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var ySchemaId))
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
65foreach (var item in endpointBuilder.Metadata)
Services\OpenApiDocumentService.cs (1)
165if (operation.Annotations.TryGetValue(OpenApiConstants.DescriptionId, out var descriptionId) &&
Services\Schemas\OpenApiSchemaStore.cs (2)
118var baseTypeSchemaId = schema.Annotations is not null && schema.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var schemaId) 217if (schema.Annotations?.TryGetValue(OpenApiConstants.SchemaId, out var referenceIdObject) == true
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
61var customAwaiter = _getAwaiterMethod(_customAwaitable);
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (1)
110&& schema.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var schemaId))
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
406var feature = context.Features[FeatureInterface];
Microsoft.AspNetCore.Owin.Tests (1)
OwinExtensionTests.cs (1)
145var value = Assert.Single(
Microsoft.AspNetCore.RateLimiting (2)
DefaultKeyTypeEqualityComparer.cs (2)
12var xKey = x.Key; 13var yKey = y.Key;
Microsoft.AspNetCore.ResponseCaching (1)
MemoryResponseCache.cs (1)
19var entry = _cache.Get(key);
Microsoft.AspNetCore.Rewrite (2)
RewriteBuilderExtensions.cs (1)
48if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
src\Shared\Reroute.cs (1)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc)
Microsoft.AspNetCore.Routing (57)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
46if (builder.Properties.TryGetValue(GlobalEndpointRouteBuilderKey, out var obj)) 131if (!app.Properties.TryGetValue(EndpointRouteBuilder, out var obj))
Builder\RoutingEndpointConventionBuilderExtensions.cs (1)
90foreach (var item in items)
Constraints\BoolRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\DateTimeRouteConstraint.cs (1)
45if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\DecimalRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\DoubleRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\FileNameRouteConstraint.cs (1)
110if (values.TryGetValue(routeKey, out var obj) && obj != null)
Constraints\FloatRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\GuidRouteConstraint.cs (1)
41if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\HttpMethodRouteConstraint.cs (1)
65if (!values.TryGetValue(routeKey, out var obj))
Constraints\IntRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\LengthRouteConstraint.cs (1)
95if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\LongRouteConstraint.cs (1)
39if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\MaxLengthRouteConstraint.cs (1)
59if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\MaxRouteConstraint.cs (1)
55if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\MinLengthRouteConstraint.cs (1)
59if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\MinRouteConstraint.cs (1)
53if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\NonFileNameRouteConstraint.cs (1)
106if (values.TryGetValue(routeKey, out var obj) && obj != null)
Constraints\RangeRouteConstraint.cs (1)
67if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\RegexRouteConstraint.cs (1)
94if (values.TryGetValue(routeKey, out var routeValue)
Constraints\RequiredRouteConstraint.cs (1)
29if (values.TryGetValue(routeKey, out var value) && value != null)
Constraints\StringRouteConstraint.cs (1)
34if (values.TryGetValue(routeKey, out var routeValue)
EndpointDataSource.cs (1)
69foreach (var metadata in routeEndpoint.Metadata)
Matching\DfaMatcherBuilder.cs (3)
300else if (segment.IsSimple && parameterPart != null && TryGetRequiredValue(endpoint.RoutePattern, parameterPart, out var requiredValue)) 392if (!routeValues.TryGetValue(partParameter.Name, out var parameterValue)) 774if (TryGetRequiredValue(routeEndpoint.RoutePattern, parameterPart, out var requiredValue))
Patterns\DefaultRoutePatternTransformer.cs (4)
65else if (original.Defaults.TryGetValue(kvp.Key, out var defaultValue) && 84original.Defaults.TryGetValue(kvp.Key, out var defaultValue) && 115else if (original.Defaults.TryGetValue(kvp.Key, out var defaultValue) && 168original.Defaults.TryGetValue(kvp.Key, out var defaultValue) &&
Patterns\RoutePatternFactory.cs (4)
517updatedDefaults.TryGetValue(kvp.Key, out var defaultValue) && 579var @default = parameter.Default; 581if (updatedDefaults != null && updatedDefaults.TryGetValue(parameter.Name, out var newDefault)) 670foreach (var item in multiplePolicies)
Patterns\RoutePatternMatcher.cs (2)
51if (Defaults.TryGetValue(parameter.Name, out var value)) 178var defaultValue = _defaultValues[i];
RequestDelegateFilterPipelineBuilder.cs (1)
56var obj = await filteredInvocation(new DefaultEndpointFilterInvocationContext(httpContext, new object[] { httpContext }));
RouteConstraintMatcher.cs (1)
73routeValues.TryGetValue(kvp.Key, out var routeValue);
src\Shared\Debugger\DebuggerHelpers.cs (1)
75foreach (var item in enumerable)
src\Shared\HttpExtensions.cs (1)
42if (endpoint == null && context.Items.TryGetValue(OriginalEndpointKey, out var e) && e is Endpoint originalEndpoint)
Template\RoutePrecedence.cs (1)
266if (routePattern.RequiredValues.TryGetValue(parameterPart.Name, out var requiredValue) &&
Template\TemplateBinder.cs (13)
177if (values.TryGetValue(key, out var value)) 210var hasExplicitValue = values.TryGetValue(key, out var value); 212if (ambientValues == null || !ambientValues.TryGetValue(key, out var ambientValue)) 222if (!_pattern.RequiredValues.TryGetValue(key, out var requiredValue)) 258var value = slots[i].Value; 266var ambientValue = (object?)null; 311if (!copyAmbientValues && !hasExplicitValue && _pattern.RequiredValues.TryGetValue(key, out var requiredValue)) 339else if (_defaults != null && _defaults.TryGetValue(parameter.Name, out var defaultValue)) 359var value = slots[i + parameterCount].Value; 507if (acceptedValues.TryGetValue(parameterName, out var value)) 544acceptedValues.Remove(parameterPart.Name, out var value); 548_defaults.TryGetValue(parameterPart.Name, out var defaultValue) && 605foreach (var value in values)
Template\TemplateMatcher.cs (1)
53if (Defaults.TryGetValue(part.Name!, out var value))
Tree\LinkGenerationDecisionTree.cs (1)
132if (values.TryGetValue(key, out var value))
Microsoft.AspNetCore.Routing.Tests (50)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (2)
339Assert.True(app.Properties.TryGetValue("__EndpointRouteBuilder", out var local)); 340Assert.True(app.Properties.TryGetValue("__GlobalEndpointRouteBuilder", out var global));
DecisionTreeBuilderTest.cs (3)
57var area = Assert.Single(tree.Criteria); 102var action = Assert.Single(tree.Criteria); 154var action = Assert.Single(tree.Criteria);
EndpointRoutingMiddlewareTest.cs (2)
102var routeValue = httpContext.GetRouteValue("controller"); 125var routeValue = httpContext.GetRouteValue("controller");
Matching\DfaMatcherBuilderTest.cs (34)
51var next = Assert.Single(root.Literals); 179var next = Assert.Single(root.Literals); 231var next = Assert.Single(root.Literals); 283var next = Assert.Single(root.Literals); 339var next = Assert.Single(root.Literals); 381var next = Assert.Single(root.Literals); 430var next = Assert.Single(root.Literals); 477var aNodeKvp = Assert.Single(root.Literals); 524var aNodeKvp = Assert.Single(root.Literals); 571var aNodeKvp = Assert.Single(root.Literals); 634var aNodeKvp = Assert.Single(root.Literals); 692var aNodeKvp = Assert.Single(root.Literals); 739var aNodeKvp = Assert.Single(root.Literals); 797var aNodeKvp = Assert.Single(root.Literals); 844var aNodeKvp = Assert.Single(root.Literals); 904var aNodeKvp = Assert.Single(root.Literals); 967var aNodeKvp = Assert.Single(root.Literals); 1019var aNodeKvp = Assert.Single(root.Literals); 2412var next = Assert.Single(root.Literals); 2455var next = Assert.Single(root.Literals); 2497var next = Assert.Single(root.Literals); 2551var next = Assert.Single(root.Literals); 2601var next = Assert.Single(root.Literals); 2643var next = Assert.Single(root.Literals); 2688var next = Assert.Single(root.Literals); 2752var next = Assert.Single(root.Literals); 2796var next = Assert.Single(root.Literals); 2840var next = Assert.Single(root.Literals); 2888var next = Assert.Single(root.Literals); 2957var next = Assert.Single(root.Literals); 2991var next = Assert.Single(root.Literals); 3025var next = Assert.Single(root.Literals); 3131var next = Assert.Single(root.Literals); 3164var next = Assert.Single(root.Literals);
Matching\DfaMatcherTest.cs (4)
377var candidate = Assert.Single(set.candidates); 430var candidate = Assert.Single(set.candidates); 482var candidate = Assert.Single(set.candidates); 535var candidate = Assert.Single(set.candidates);
RouteEndpointBuilderTest.cs (2)
31var metadata = new object(); 54var metadata = new object();
Tree\LinkGenerationDecisionTreeTest.cs (3)
89var match = Assert.Single(matches); 113var match = Assert.Single(matches); 137var match = Assert.Single(matches);
Microsoft.AspNetCore.Server.HttpSys (1)
StandardFeatureCollection.cs (1)
98var feature = featureFunc.Value(_featureContext);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
29var value = key.GetValue("EnableHttp3");
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpProtocol.cs (1)
404var tlsFeature = ConnectionFeatures?[typeof(ITlsConnectionFeature)];
Internal\Http2\Http2Connection.cs (1)
80var data = AppContext.GetData(MaximumEnhanceYourCalmCountProperty);
Internal\Http2\Http2FrameWriter.cs (1)
53var data = AppContext.GetData(MaximumFlowControlQueueSizeProperty);
Internal\Http3\Http3Connection.cs (1)
605if (!persistentStateFeature.State.TryGetValue(StreamPersistentStateKey, out var s))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
231var featureLookup = _collection[type];
HttpRequestHeadersTests.cs (1)
143var headerReferences = typeof(HttpRequestHeaders).GetField("_headers", privateFlags).GetValue(headers);
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error))
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketAwaitableEventArgs.cs (1)
39var continuationState = UserToken;
Microsoft.AspNetCore.Shared.Tests (36)
AdaptiveCapacityDictionaryTests.cs (12)
134var value = dict["key"]; 151var value = dict["key"]; 168var value = dict["kEy"]; 866var result = dict.Remove("other", out var removedValue); 886var result = dict.Remove("key", out var removedValue); 906var result = dict.Remove("kEy", out var removedValue); 928var result = dict.Remove("key", out var removedValue); 953var result = dict.Remove("key", out var removedValue); 978var result = dict.Remove("key", out var removedValue); 1122var result = dict.TryGetValue("other", out var value); 1140var result = dict.TryGetValue("key", out var value); 1158var result = dict.TryGetValue("kEy", out var value);
ObjectMethodExecutorTest.cs (15)
25var result = executor.Execute( 36var result = executor.Execute( 47var result = executor.Execute( 60var result = executor.Execute( 84var result = await executor.ExecuteAsync( 95var result = await executor.ExecuteAsync( 108var result = await executor.ExecuteAsync( 200var result = await executor.ExecuteAsync(_targetObject, new object[] { "Hello", 123 }); 217var result = await executor.ExecuteAsync(_targetObject, new object[] { 123, 456 }); 239var result = await executor.ExecuteAsync(_targetObject, new object[] { 123 }); 254var result = await executor.ExecuteAsync(_targetObject, new object[0]); 269var result = await executor.ExecuteAsync(_targetObject, new object[0]); 314var result = await executor.ExecuteAsync(_targetObject, new object[] { 123 }); 330var result = await executor.ExecuteAsync(_targetObject, new object[] { "test result" }); 384var result = await executor.ExecuteAsync(_targetObject, new object[] { "test result" });
PropertyHelperTest.cs (5)
524var value = accessor(new BaseClass() { PropA = "Hi" }); 541var value = accessor(new MyProperties() { StringProp = "Hi" }); 558var value = accessor(null); 575var value = accessor(null); 646var value = new object();
src\Shared\ActivatorUtilities\ActivatorUtilities.cs (2)
153var value = provider.GetService(parameter.ParameterType); 156if (!ParameterDefaultValue.TryGetDefaultValue(parameter, out var defaultValue))
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
61var customAwaiter = _getAwaiterMethod(_customAwaitable);
src\Shared\PropertyActivator\PropertyActivator.cs (1)
32var value = _valueAccessor(context);
Microsoft.AspNetCore.SignalR (1)
HubEndpointRouteBuilderExtensions.cs (1)
62foreach (var item in attributes)
Microsoft.AspNetCore.SignalR.Client.Core (5)
HubConnection.cs (3)
682while (reader.TryRead(out var item)) 772var arg = args[i]; 832var reader = kvp.Value;
HubConnectionExtensions.StreamAsChannelAsync.cs (1)
293while (inputChannel.TryRead(out var item))
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (1)
159var enumerator = ((MethodInfo)constructedIAsyncEnumerableInterface.GetMemberWithSameMetadataDefinitionAs(_asyncEnumerableGetAsyncEnumeratorMethodInfo)).Invoke(asyncEnumerable, [cancellationToken])!;
Microsoft.AspNetCore.SignalR.Core (4)
Internal\HubMethodDescriptor.cs (1)
83foreach (var attribute in p.GetCustomAttributes(true))
SignalRConnectionBuilderExtensions.cs (1)
23var marker = connectionBuilder.ApplicationServices.GetService(typeof(SignalRCoreMarkerService));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
61var customAwaiter = _getAwaiterMethod(_customAwaitable);
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (1)
159var enumerator = ((MethodInfo)constructedIAsyncEnumerableInterface.GetMemberWithSameMetadataDefinitionAs(_asyncEnumerableGetAsyncEnumeratorMethodInfo)).Invoke(asyncEnumerable, [cancellationToken])!;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
686foreach (var argument in arguments)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Protocol\MessagePackHubProtocolWorker.cs (2)
448foreach (var arg in message.Arguments) 473foreach (var arg in message.Arguments)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
671foreach (var argument in arguments)
Microsoft.AspNetCore.SignalR.Tests (28)
HubConnectionHandlerTests.cs (19)
806var result = (await client.InvokeAsync(nameof(MethodHub.TaskValueMethod)).DefaultTimeout()).Result; 832var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskValueMethod)).DefaultTimeout()).Result; 858var result = (await client.InvokeAsync(nameof(MethodHub.ValueTaskMethod)).DefaultTimeout()).Result; 882var result = (await client.InvokeAsync("echo", "hello").DefaultTimeout()).Result; 1051var result = (await client.InvokeAsync(nameof(MethodHub.VoidMethod)).DefaultTimeout()).Result; 1076var result = (await client.InvokeAsync("RenamedMethod").DefaultTimeout()).Result; 1102var result = (await client.InvokeAsync("RenamedVirtualMethod").DefaultTimeout()).Result; 1165var result = (await client.InvokeAsync(nameof(MethodHub.ConcatString), (byte)32, 42, 'm', "string").DefaultTimeout()).Result; 1190var result = (await client.InvokeAsync(nameof(InheritedHub.BaseMethod), "string").DefaultTimeout()).Result; 1215var result = (await client.InvokeAsync(nameof(InheritedHub.VirtualMethod), 10).DefaultTimeout()).Result; 1702var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 1746var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 1799var result = (await firstClient.InvokeAsync("GroupSendMethod", "testGroup", "test").DefaultTimeout()).Result; 2628var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).DefaultTimeout()).Result; 2653var result = (await client.InvokeAsync(nameof(MethodHub.HasHttpContext)).DefaultTimeout()).Result; 4339var firstArgument = await tcsService.StartedMethod.Task.DefaultTimeout(); 4342var secondArgument = await tcsService.EndMethod.Task.DefaultTimeout(); 4366var firstArgument = await tcsService.StartedMethod.Task.DefaultTimeout(); 4372var secondArgument = await tcsService.EndMethod.Task.DefaultTimeout();
HubConnectionHandlerTestUtils\Hubs.cs (2)
232while (source.TryRead(out var item)) 248while (source.TryRead(out var item))
Internal\TypedClientBuilderTests.cs (5)
17var objArg = new object(); 41var objArg = new object(); 65var objArg = new object(); 211var objArg = new object(); 237var objArg = new object();
TestFilters.cs (2)
29var result = await next(invocationContext); 61var result = await next(invocationContext);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamReader.cs (1)
36var completionLock = new object();
Microsoft.AspNetCore.TestHost (6)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-alpha.1.24551.5\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (6)
130var webHost = webHostFactory(args); 140var webHostBuilder = webHostBuilderFactory(args); 141var webHost = Build(webHostBuilder); 151var hostBuilder = hostBuilderFactory(args); 152var host = Build(hostBuilder); 171var host = hostFactory(args);
Microsoft.AspNetCore.TestHost.Tests (2)
TestClientTests.cs (2)
889var value = new object(); 914var value = new object();
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (2)
1463var linkGenerator = app.Services.GetService(typeof(LinkGenerator)); 2940var val = app.Properties["didsomething"];
WebHostTests.cs (1)
93var linkGenerator = host.Services.GetService(typeof(LinkGenerator));
Microsoft.Build (51)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
AwaitExtensions.cs (2)
22private static Object s_staSchedulerSync = new Object(); 110var localVariableInitLock = new object();
BackEnd\BuildManager\BuildManager.cs (3)
59private static readonly Object s_staticSyncLock = new Object(); 64private readonly Object _syncLock = new Object(); 1989var graphBuildStateLock = new object();
BackEnd\BuildManager\LegacyThreadingData.cs (1)
44private readonly Object _legacyThreadingEventsLock = new Object();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
145public Object GlobalLock { get; }
BackEnd\Components\Caching\ResultsCache.cs (1)
71if (Object.ReferenceEquals(buildResult, result))
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
32private static Object s_locker = new Object();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (2)
332foreach (var item in items) 352var item = items[i];
BackEnd\Components\RequestBuilder\Lookup.cs (1)
264ErrorUtilities.VerifyThrow(Object.ReferenceEquals(scopeToLeave, _lookupScopes.First.Value), "Attempting to leave with scope '{0}' but scope '{1}' is on top of the stack.", scopeToLeave.Description, _lookupScopes.First.Value.Description);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
304while (!Object.ReferenceEquals(_targetsToBuild.Peek(), currentTargetEntry))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
123private Object _taskExecutionHostSync = new Object();
BackEnd\Shared\BuildRequestConfiguration.cs (1)
78private readonly Object _syncLock = new Object();
Collections\ConvertingEnumerable.cs (1)
98Object IEnumerator.Current => Current;
Collections\MultiDictionary.cs (1)
173private Object _entry;
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (4)
539public virtual void OnDeserialization(Object sender) 870if (Object.ReferenceEquals(this, other)) 883if (!TryGetValue(element.Key, out ours) || !Object.ReferenceEquals(element, ours)) 1000Object System.Collections.IEnumerator.Current
Construction\ProjectTaskElement.cs (1)
41private readonly Object _locker = new Object();
Definition\ProjectItem.cs (1)
251bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml);
Definition\ProjectMetadata.cs (2)
214bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _parent.Project.Xml); 280if (Object.ReferenceEquals(this, other))
Definition\ProjectProperty.cs (2)
255if (Object.ReferenceEquals(this, other)) 477bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml);
Evaluation\ProjectRootElementCache.cs (1)
589if (Object.ReferenceEquals(node.Value, projectRootElement))
InprocTrackingNativeMethods.cs (1)
243return (DT)(Object)Marshal.GetDelegateForFunctionPointer(entryPoint, typeof(DT));
Instance\ProjectItemInstance.cs (1)
1609if (Object.ReferenceEquals(this, other))
Instance\ProjectMetadataInstance.cs (1)
197if (Object.ReferenceEquals(this, other))
Instance\TaskFactories\TaskHostTask.cs (1)
107private Object _taskHostLock;
Instance\TaskRegistry.cs (1)
1094private static readonly Object s_taskFactoryTypeLoaderLock = new Object();
Logging\BaseConsoleLogger.cs (3)
109public int Compare(Object a, Object b) 619foreach (var item in itemTypeList)
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
915foreach (var item in items) 929foreach (var item in items) 1034foreach (var item in list)
LogMessagePacketBase.cs (1)
588private static Delegate CreateDelegateRobust(Type type, Object firstArgument, MethodInfo methodInfo)
OutOfProcTaskHostTaskResult.cs (3)
30internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams) 57internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 101public IDictionary<string, Object> FinalParameterValues
RegisteredTaskObjectCacheBase.cs (1)
144foreach (var obj in lifetimeObjects.Value.Values)
Resources\Constants.cs (1)
181private static Object s_locker = new Object();
TaskLoggingHelper.cs (1)
88private readonly Object _locker = new Object();
ThreadPoolExtensions.cs (1)
23delegate (Object state)
TypeLoader.cs (1)
268private readonly Object _lockObject = new Object();
Utilities\Utilities.cs (2)
654foreach (var item in props) 784foreach (var item in items)
Microsoft.Build.BuildCheck.UnitTests (1)
CustomConfigurationData_Tests.cs (1)
35var customConfigurationData2 = new object();
Microsoft.Build.Engine.OM.UnitTests (35)
Construction\ConstructionEditing_Tests.cs (1)
2198Assert.True(Object.ReferenceEquals(property1, property2));
Construction\ElementLocationPublic_Tests.cs (2)
76Assert.True(Object.ReferenceEquals(e1, target.Location)); 77Assert.True(Object.ReferenceEquals(e2, target.OutputsLocation));
Definition\Project_Tests.cs (1)
2974public static IEnumerable<Object[]> GetItemProvenanceByProjectItemTestData
Definition\ProjectItem_Tests.cs (17)
82Assert.True(Object.ReferenceEquals(project, item.Project)); 172Assert.True(Object.ReferenceEquals(m0, idm0)); 173Assert.False(Object.ReferenceEquals(m1, idm1)); 1208Assert.True(Object.ReferenceEquals(item1.GetMetadata("m").Xml, item2.GetMetadata("m").Xml)); 1406Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1407Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1408Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1409Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1410Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1411Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1504Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1505Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1506Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1507Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1508Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1509Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 3545public static IEnumerable<Object[]> UpdateAndRemoveShouldWorkWithEscapedCharactersTestData
Definition\ProjectMetadata_Tests.cs (1)
33Assert.True(Object.ReferenceEquals(project, metadatum.Project));
Definition\ProjectProperty_Tests.cs (1)
32Assert.True(Object.ReferenceEquals(project, property.Project));
Instance\ProjectInstance_Tests.cs (5)
226Assert.False(Object.ReferenceEquals(first, second)); 238Assert.False(Object.ReferenceEquals(first.GetProperty("p1"), second.GetProperty("p1"))); 241Assert.True(Object.ReferenceEquals(newProperty, first.GetProperty("p1"))); 331Assert.False(Object.ReferenceEquals(Helpers.MakeList(first.GetItems("i"))[0], Helpers.MakeList(second.GetItems("i"))[0])); 914Assert.True(Object.ReferenceEquals(protoInstance, instance));
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
152foreach (var v in getter(this.View)) 163foreach (var r in getter(this.Real))
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (2)
25var parent = ProjectMetadataLink.GetParent(this.Source); 64var parentRemoter = this.Proxy.Parent;
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (3)
246var view = dbg.Linked; 250var remoter = link.Remoter; 330var external = LinkedObjectsFactory.GetLink(obj);
Microsoft.Build.Engine.UnitTests (29)
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1306Assert.False(Object.ReferenceEquals(actualEventArgs.Properties, properties));
BackEnd\MockRunningObjectTable.cs (1)
23if (_dictionary.TryGetValue(itemName, out var obj))
BackEnd\NodePackets_Tests.cs (1)
361Assert.True(Object.ReferenceEquals(buildEvent, packet.NodeBuildEvent.Value.Value)); // "Expected buildEvent to have the same object reference as packet.BuildEvent"
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (1)
54Assert.True(Object.ReferenceEquals(p, value)); // "Should have returned the same object as was inserted"
Construction\ElementLocation_Tests.cs (1)
430foreach (var node in allNodes)
CopyOnWriteDictionary_Tests.cs (4)
36Assert.True(Object.ReferenceEquals(v1, v2)); 69Assert.True(Object.ReferenceEquals(v1, v2)); 104Assert.False(Object.ReferenceEquals(k1, k2)); 108Assert.True(Object.ReferenceEquals(v1, v2));
Definition\Project_Internal_Tests.cs (1)
98Assert.True(Object.ReferenceEquals(project, project2));
Definition\ProjectItem_Tests.cs (1)
41Assert.True(Object.ReferenceEquals(item1.DirectMetadata.First().Xml, item2.DirectMetadata.First().Xml));
Evaluation\Evaluator_Tests.cs (9)
1456Assert.True(Object.ReferenceEquals(xml1, property.Predecessor.Predecessor.Xml)); 1482Assert.True(Object.ReferenceEquals(importXml, predecessorXmlRoot)); 1533Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Predecessor.Xml)); 1593Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Predecessor.Xml)); 1596Assert.True(Object.ReferenceEquals(xml2, metadatum.Predecessor.Xml)); 1631Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Xml)); 1663Assert.True(Object.ReferenceEquals(xml1, metadatum.Predecessor.Xml)); 1850Assert.True(Object.ReferenceEquals(import, predecessor.Xml.ContainingProject)); 1851Assert.True(Object.ReferenceEquals(project.Xml, predecessor.Predecessor.Xml.ContainingProject));
Evaluation\Expander_Tests.cs (2)
1650Assert.True(Object.ReferenceEquals(xmlattribute.Value, expandedString)); 3356var actual = expander.ExpandPropertiesLeaveTypedAndEscaped(
Evaluation\ProjectRootElementCache_Tests.cs (4)
123Assert.True(Object.ReferenceEquals(xml0, xml1)); 128Assert.False(Object.ReferenceEquals(xml0, xml2)); 157Assert.True(Object.ReferenceEquals(xml0, xml1)); 162Assert.True(Object.ReferenceEquals(xml0, xml2));
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
30Assert.False(Object.ReferenceEquals(metadata, clone));
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
30Assert.False(Object.ReferenceEquals(property, clone));
ProjectCache\ProjectCacheTests.cs (1)
1648foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations)))
Microsoft.Build.Framework (3)
TaskParameterEventArgs.cs (3)
113foreach (var item in args.Items) 148var item = ReadItem(reader); 205var item = items[i];
Microsoft.Build.Tasks.CodeAnalysis (1)
RCWForCurrentContext.cs (1)
41Object? objInCurrentCtx = null;
Microsoft.Build.Tasks.Core (13)
FileIO\GetFileHash.cs (1)
83var writeLock = new object();
GenerateResource.cs (1)
3811Object v = entry?.Value;
ManifestUtil\XmlUtil.cs (1)
139public override Object GetEntity(Uri uri, string role, Type t)
NativeMethods.cs (5)
45void Invoke([MarshalAs(UnmanagedType.IUnknown)] Object pvInstance, int memid, Int16 wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, out int puArgErr); 50void CreateInstance([MarshalAs(UnmanagedType.IUnknown)] Object pUnkOuter, [In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown), Out] out Object ppvObj); 423Object obj1, 424Object obj2,
RedistList.cs (2)
45private static readonly Object s_locker = new Object(); 972private static readonly Object s_subsetListPathCacheLock = new Object();
ResolveSDKReference.cs (1)
966if (Object.ReferenceEquals(other, this))
system.design\stronglytypedresourcebuilder.cs (2)
455var object_equalsMethod = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Object)), "ReferenceEquals"); 653var returnObj = new CodeVariableDeclarationStatement(typeof(Object), "obj", getValue);
Microsoft.Build.UnitTests.Shared (3)
BuildEventArgsExtension.cs (2)
28if (Object.ReferenceEquals(args, other)) 346if (!Object.ReferenceEquals(args.TargetOutputs, other.TargetOutputs))
TestEnvironment.cs (1)
443foreach (var key in subset.Keys)
Microsoft.Build.Utilities.Core (2)
InprocTrackingNativeMethods.cs (1)
243return (DT)(Object)Marshal.GetDelegateForFunctionPointer(entryPoint, typeof(DT));
TaskLoggingHelper.cs (1)
88private readonly Object _locker = new Object();
Microsoft.Cci.Extensions (4)
Experimental\TypeReferenceSearcher.cs (2)
147foreach (var p in path) 159foreach (var p in path)
Traversers\ResolveAllReferencesTraverser.cs (1)
126foreach (var reference in this.path)
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
27var enumFieldValue = enumField?.Constant?.Value;
Microsoft.CodeAnalysis (29)
CodeGen\BasicBlock.cs (2)
424foreach (var label in labels) 744foreach (var branchLabel in this.BranchLabels)
CodeGen\ILBuilder.cs (2)
343var blockedDest = BlockedBranchDestination(block, branchBlock); 413var blockedDest = handlerBlock.EnclosingHandler.BlockedByFinallyDestination;
CodeGen\LocalScopeManager.cs (1)
621var endLabel = _containingScope.EndLabel;
CodeGen\SwitchIntegralJumpTableEmitter.cs (2)
265var nextBucketLabel = new object(); 550var inRangeLabel = new object();
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
145var lastLabel = allLabels[_startLabelIndex].Value;
Collections\IdentifierCollection.Collection.cs (1)
56foreach (var obj in this.IdentifierCollection._map.Values)
Collections\ImmutableArrayExtensions.cs (1)
1079if (accumulator.TryGetValue(key, out var existingValueOrArray))
Compilation\Compilation.cs (2)
3772foreach (var argument in diagnostic.Arguments) 3800foreach (var argument in diagnostic.Arguments)
Diagnostic\DiagnosticInfo.cs (1)
99foreach (var arg in args)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1153var gate = _getAnalyzerGate(analyzer);
DiaSymReader\Writer\SymUnmanagedWriterFactory.cs (1)
41var symWriter = SymUnmanagedFactory.CreateObject(
InternalUtilities\XmlUtilities.cs (1)
62foreach (var annotation in source.Annotations<object>())
PEWriter\MetadataWriter.cs (1)
3121var entity = _pseudoSymbolTokenToReferenceMap[index];
ReferenceManager\CommonReferenceManager.Binding.cs (1)
788if (Object.ReferenceEquals(inputAssembly, candidate.AssemblySymbol))
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
20using MetadataOrDiagnostic = System.Object; 521ObservedMetadata.Add(peReference, (MetadataOrDiagnostic?)newMetadata ?? newDiagnostic!); 528if (ObservedMetadata.TryGetValue(peReference, out MetadataOrDiagnostic? existing))
ReferenceManager\CommonReferenceManager.State.cs (4)
18using MetadataOrDiagnostic = System.Object; 72internal readonly Dictionary<MetadataReference, MetadataOrDiagnostic> ObservedMetadata; 195public CommonReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata) 202this.ObservedMetadata = observedMetadata ?? new Dictionary<MetadataReference, MetadataOrDiagnostic>();
Symbols\ITypeSymbol.cs (1)
92/// An enumerated value that identifies certain 'special' types such as <see cref="System.Object"/>.
Symbols\ITypeSymbolInternal.cs (1)
17/// An enumerated value that identifies certain 'special' types such as <see cref="System.Object"/>.
TreeDumper.cs (2)
187private static bool IsDefaultImmutableArray(Object o) 192var result = ti?.GetDeclaredMethod("get_IsDefault")?.Invoke(o, Array.Empty<object>());
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
145var constant = semanticModel.GetConstantValue(binaryRight, cancellationToken).Value;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1079if (accumulator.TryGetValue(key, out var existingValueOrArray))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (1)
44if (option.Definition.Serializer.TryParse(stringValue, out var objectValue))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
520/// type order. i.e. the overridable members of <see cref="System.Object"/> will be at the start
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
80if (_eventNameToRegistries.TryGetValue(eventName, out var registries))
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Conversions.cs (1)
3574var canonicalValue = CanonicalizeConstant(value);
Binder\Binder_Expressions.cs (1)
7202foreach (var diagnostic in useSiteInfo.Diagnostics)
Binder\Binder_Lookup.cs (1)
723foreach (var info in useSiteInfo.Diagnostics)
Binder\Binder_Operators.cs (1)
2869var newValue = FoldNeverOverflowUnaryOperator(kind, value);
CodeGen\CodeGenerator.cs (1)
460var label = new object();
CodeGen\EmitAddress.cs (2)
243var whenValueTypeLabel = new Object(); 244var doneLabel = new Object();
CodeGen\EmitArrayInitializer.cs (2)
652var arrayNotNullLabel = new object(); 712var arrayNotNullLabel = new object();
CodeGen\EmitExpression.cs (2)
384var whenValueTypeLabel = new object(); 385var doneLabel = new object();
CodeGen\EmitOperators.cs (1)
276var labEnd = new object();
CodeGen\EmitStatement.cs (1)
1091var typeCheckPassedLabel = new object();
CodeGen\Optimizer.cs (5)
1456var cookie = GetStackStateCookie(); // implicit goto here 1554var cookie = GetStackStateCookie(); // implicit branch here 1574var cookie = GetStackStateCookie(); // implicit branch here 1591var cookie = GetStackStateCookie(); // implicit branch here 1624var cookie = GetStackStateCookie(); // implicit goto here
FlowAnalysis\NullableWalker.cs (1)
1808var key = (object?)symbol ?? methodMainNode.Syntax;
FlowAnalysis\NullableWalker.Variables.cs (2)
66var symbol = (object?)Symbol ?? "<null>"; 432var symbol = (object?)Symbol ?? "<null>";
Parser\DirectiveParser.cs (1)
836var result = Evaluate(expr);
Symbols\AbstractTypeMap.cs (2)
299if (!Object.ReferenceEquals(substituted, t)) 416if (!Object.ReferenceEquals(substituted, t))
Symbols\ConstraintsHelper.cs (1)
1299foreach (var info in useSiteDiagnostics)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (2)
20/// by replacing each occurrence of <see cref="System.Object"/> type with dynamic type. 59/// by replacing each occurrence of <see cref="System.Object"/> type with dynamic type.
Symbols\ReducedExtensionMethodSymbol.cs (1)
60foreach (var diag in useSiteInfo.Diagnostics)
Symbols\ReferenceManager.cs (2)
21using MetadataOrDiagnostic = System.Object; 58public ReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata)
Symbols\Source\SourceAssemblySymbol.cs (1)
1789foreach (var securityAttribute in securityData.GetSecurityAttributes<CSharpAttributeData>(attributesBag.Attributes))
Symbols\SubstitutedParameterSymbol.cs (1)
49var mapOrType = _mapOrType;
Utilities\ValueSetFactory.IEqualableValueTC.cs (1)
13/// using <see cref="System.Object.Equals(object?, object?)"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
30/// value would cause a different type to be seen in a <see cref="System.Object.GetType()"/> call,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
106var defaultValue = parameter.HasExplicitDefaultValue ? parameter.ExplicitDefaultValue : null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1710var name = memberAccessExpression.Name.Identifier.Value;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteData.cs (1)
48var value = JsonSerializer.Deserialize(JsonDocument.Parse(json), typeof(StringCopyPasteData));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (1)
44foreach (var refKind in Enum.GetValues(typeof(ReferenceType)))
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (3)
85var namingRule = Assert.Single(result.NamingRules); 86var namingStyle = Assert.Single(result.NamingStyles); 87var symbolSpec = Assert.Single(result.SymbolSpecifications);
src\VisualStudio\Core\Def\CodeCleanup\AbstractCodeCleanUpFixer_Helper.cs (2)
27foreach (var diagnostic in enabledDiagnostics.Diagnostics) 53foreach (var diagnostic in enabledDiagnostics.Diagnostics)
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
1466var defaultValue = solution.Options.GetOption(optionKey); 1472var newOptionValue = newSolution.Options.GetOption(optionKey); 1477var currentOptionValue = workspace1.CurrentSolution.Options.GetOption(optionKey); 1482var value2 = workspace2.Options.GetOption(optionKey);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
28var recommender = Activator.CreateInstance(recommenderType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (1)
11671foreach (var m in members1)
CodeGen\WinMdDelegateTests.cs (1)
237foreach (var member in fieldType.GetMembers())
Emit\CovariantReturnTests.cs (1)
356var ERR_InvalidOverrideDueToReturn2 =
PrivateProtected.cs (1)
104foreach (var member in bb.GetMembers())
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests.cs (1)
3639attrs.First().VerifyValue(0, TypedConstantKind.Type, typeof(Object));
Attributes\AttributeTests_Assembly.cs (1)
1796foreach (var attr in attributes)
Attributes\AttributeTests_Synthesized.cs (3)
39foreach (var level in Enum.GetValues(typeof(OptimizationLevel))) 50foreach (var kind in Enum.GetValues(typeof(OutputKind))) 52foreach (var level in Enum.GetValues(typeof(OptimizationLevel)))
Attributes\AttributeTests_Tuples.cs (1)
280foreach (var parameterType in methodSymbol.ParameterTypesWithAnnotations)
FlowAnalysis\FlowTestBase.cs (2)
56foreach (var m in (symbol as NamedTypeSymbol).GetMembers()) 66foreach (var m in (symbol as NamespaceSymbol).GetMembers())
Microsoft.CodeAnalysis.CSharp.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
39nameof(Object));
Options\CSharpEditorConfigOptionsEnumerator.cs (1)
23foreach (var entry in EditorConfigOptionsEnumerator.GetLanguageAgnosticEditorConfigOptions(includeUnsupported))
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (7)
InteractiveSessionReferencesTests.cs (6)
123var result = CSharpScript.EvaluateAsync($@" 346var result = CSharpScript.EvaluateAsync($@" 362var result = CSharpScript.Create($@" 382var result = CSharpScript.EvaluateAsync($@" 401var result = CSharpScript.Create($@" 574var globals = Activator.CreateInstance(globalsType);
ObjectFormatterTests.cs (1)
117var obj = Activator.CreateInstance(c);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (17)
InteractiveSessionTests.cs (11)
181var result = script.EvaluateAsync().Result; 243var e = script.EvaluateAsync().Result; 411var result = 551var result = 571var result = 581var result = 592var result = 1057var result = CSharpScript.EvaluateAsync("System.Threading.Tasks.Task.FromResult(1)", ScriptOptions).Result; 1295var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""", ScriptOptions).ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; 1326var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""", ScriptOptions).ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; 2127var result =
ObjectFormatterTests.cs (4)
380var obj = new Object[] { new C(), 1, "str", 'c', true, null, new bool[] { true, false, true, false } }; 429Array x = Array.CreateInstance(typeof(Object), lengths: new int[] { 2, 3 }, lowerBounds: new int[] { 2, 9 }); 433Array y = Array.CreateInstance(typeof(Object), lengths: new int[] { 1, 1 }, lowerBounds: new int[] { 0, 0 }); 437Array z = Array.CreateInstance(typeof(Object), lengths: new int[] { 0, 0 }, lowerBounds: new int[] { 0, 0 });
ScriptTests.cs (2)
157var value = await CSharpScript.EvaluateAsync("1 + 2", ScriptOptions); 700var result = ScriptingTestHelpers.EvaluateScriptWithOutput(script, "42");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LambdaTests.cs (1)
3653foreach (var attribute in attributes)
Semantics\NativeIntegerTests.cs (1)
469foreach (var member in allMembers)
Semantics\SyntaxTreeRootTests.cs (1)
113Assert.Throws<InvalidCastException>(() => { var _ = (CSharpSyntaxTree)(Object)tree.GetCompilationUnitRoot(); });
Semantics\SynthesizedStaticConstructorTests.cs (1)
297foreach (var member in typeSymbol.GetMembers(WellKnownMemberNames.StaticConstructorName))
SourceGeneration\AdditionalSourcesCollectionTests.cs (1)
58var source = Assert.Single(sources);
SourceGeneration\GeneratorDriverTests.cs (1)
2503var output = runResult.TrackedSteps["ParseOptions"][0].Outputs[0].Value;
SourceGeneration\StateTableTests.cs (1)
49var o = new object();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\AssemblyAndNamespaceTests.cs (1)
224foreach (var constituentNs in constituents)
Symbols\CorLibrary\CorTypes.cs (1)
111foreach (var m in namespaces.Dequeue().GetMembers())
Symbols\DefaultInterfaceImplementationTests.cs (1)
34633foreach (var assembly in m.ReferencedAssemblySymbols)
Symbols\Metadata\MetadataTypeTests.cs (1)
590foreach (var member in @namespace.GetMembers())
Symbols\Metadata\PE\BaseTypeResolution.cs (2)
75foreach (var p in orderablePartitioners) 94foreach (var p in partitioners)
Symbols\Metadata\PE\LoadingAttributes.cs (2)
546foreach (var sa in s.GetAttributes()) 601foreach (var a in attrs)
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (1)
79foreach (var c in children)
Symbols\Metadata\PE\TypeForwarders.cs (1)
1237foreach (var child in @namespace.GetNamespaceMembers())
Symbols\Source\EnumTests.cs (1)
996var first = expectedEnumValues.First();
Symbols\SymbolErrorTests.cs (1)
1576foreach (var n in ns)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
EmitMetadataTestBase.cs (1)
56foreach (var param in t.TypeParameters)
Extensions.cs (1)
557var v = a.GetValue(i);
LifetimeAnnotationAttributesVisitor.cs (3)
45foreach (var member in @namespace.GetMembers()) 53foreach (var member in type.GetMembers()) 81foreach (var parameter in parameters)
TestAttributesVisitor.cs (1)
45foreach (var member in type.GetMembers())
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
235foreach (var attribute in attributes) 317var value = constant.Value;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
30/// value would cause a different type to be seen in a <see cref="System.Object.GetType()"/> call,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
106var defaultValue = parameter.HasExplicitDefaultValue ? parameter.ExplicitDefaultValue : null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1710var name = memberAccessExpression.Name.Identifier.Value;
Microsoft.CodeAnalysis.EditorFeatures (4)
Extensibility\NavigationBar\WrappedNavigationBarItem.cs (1)
60foreach (var child in underlyingItem.ChildItems)
Options\EditorAnalyzerConfigOptions.cs (1)
28if (_configOptions.TryGetValue(key.ToLowerInvariant(), out var objectValue))
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
185foreach (var span in documentHighlights.HighlightSpans)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
339var oldState = _state_accessOnlyFromEventChangeQueueCallback;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\EditorTestWorkspace.cs (1)
427foreach (var projectionSpan in projectionBufferSpans)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
CodeActions\CodeChangeProviderMetadataTests.cs (1)
141if (!export.Metadata.TryGetValue("Name", out var nameObj)
Collections\Immutable\Maps\MapTests.cs (1)
28foreach (var v in (IEnumerable)map)
Diagnostics\DiagnosticDataTests.cs (2)
165var roundTripAdditionalLocation = Assert.Single(roundTripDiagnosticData.AdditionalLocations); 267var roundTripAdditionalLocation = Assert.Single(roundTripDiagnosticData.AdditionalLocations);
Options\GlobalOptionsTests.cs (2)
116var value = property.GetValue(options); 119var defaultValue = property.GetValue(defaultOptions);
UnusedReferences\ProjectAssets\ProjectAssetsReaderTests.cs (2)
42var realizedReference = Assert.Single(realizedReferences); 63var realizedReference = Assert.Single(realizedReferences);
Utilities\StackFrameUtils.cs (2)
186foreach (var trivia in token.LeadingTrivia) 193foreach (var trivia in token.TrailingTrivia)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
184foreach (var child in stackPanel.Children)
Lightup\ISmartRenameSessionFactoryWrapper.cs (1)
56var session = s_createSmartRenameSession(_instance, renamedIdentifier);
Lightup\ISmartRenameSessionWrapper.cs (2)
134var renameContextArrayBuilder = s_renameContextImmutableListCreateBuilderAccessor(arg: null); 148var renameContextArray = s_renameContextImmutableListBuilderToArrayAccessor(renameContextArrayBuilder);
Suggestions\SuggestedActions\SuggestedAction.cs (1)
154var options = actionWithOptions.GetOptions(cancellationToken);
Utilities\RoslynServiceExtensions.cs (2)
18var service = serviceProvider.GetService(typeof(TService)); 82var service = serviceProvider.GetService(typeof(TService));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
DkmUtilities.cs (1)
140var symReader = module.GetSymReader();
ExpressionEvaluatorFatalError.cs (1)
51var value = RegistryHelpers.GetRegistryValue(name);
PDB\MethodDebugInfo.Native.cs (2)
403foreach (var dynamicLocal in dynamicLocals) 488foreach (var tuple in tuples)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
VisualBasicParsingTests.cs (2)
46foreach (var pair in MemberSignatureParser.KeywordKinds) 61foreach (var value in typeof(MemberSignatureParser.SyntaxKind).GetEnumValues())
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (1)
51var value = RegistryHelpers.GetRegistryValue(name);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (7)
Debugger\Engine\DkmClrValue.cs (6)
230var rawValue = RawValue; 306var fieldValue = field.GetValue(RawValue); 320var propertyValue = property.GetValue(RawValue); 342var methodValue = method.Invoke(RawValue, []); 571var element = array.GetValue(indices); 637var value = constructor.Invoke(bindingFlags, null, new[] { RawValue }, null);
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\ExpressionEvaluatorFatalError.cs (1)
51var value = RegistryHelpers.GetRegistryValue(name);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.ReflectionWrapper.cs (1)
61var analyzerInstance = Activator.CreateInstance(analyzerType, serviceProvider, brokeredServiceContainer);
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (6)
FSharpGlyphTests.cs (2)
19foreach (var number in Enum.GetValues(typeof(FSharpGlyph))) 27foreach (var number in Enum.GetValues(typeof(Glyph)))
FSharpHighlightSpanKindTests.cs (1)
21foreach (var number in Enum.GetValues(typeof(FSharpHighlightSpanKind)))
FSharpInlineRenameReplacementKindTests.cs (1)
21foreach (var number in Enum.GetValues(typeof(FSharpInlineRenameReplacementKind)))
FSharpNavigateToMatchKindTests.cs (1)
21foreach (var number in Enum.GetValues(typeof(FSharpNavigateToMatchKind)))
FSharpSignatureHelpTriggerReasonTests.cs (1)
21foreach (var number in Enum.GetValues(typeof(SignatureHelpTriggerReason)))
Microsoft.CodeAnalysis.ExternalAccess.Xaml (2)
External\ResolveDataConversions.cs (1)
48var data = resolveDataCache.GetCachedEntry(resolveData.DataId);
Internal\LocationService.cs (1)
52foreach (var item in items)
Microsoft.CodeAnalysis.Features (15)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
123foreach (var enumValue in Enum.GetValues(t))
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
466foreach (var methodInfo in methodInfos) 502builder.Add(nameof(Object));
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (2)
90foreach (var trivia in token.LeadingTrivia) 103foreach (var trivia in token.TrailingTrivia)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexClassifier.cs (1)
91foreach (var trivia in token.LeadingTrivia)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1460foreach (var trivia in token.LeadingTrivia)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
562foreach (var projectOrDocumentId in _projectOrDocumentIds) 610foreach (var projectOrDocumentId in _projectOrDocumentIds) 653foreach (var projectOrDocumentId in _projectOrDocumentIds)
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
89foreach (var declaredSymbolInfo in index.DeclaredSymbolInfos)
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
67if (configOptions.TryGetOption<object?>(optionKey, out var value))
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
145var constant = semanticModel.GetConstantValue(binaryRight, cancellationToken).Value;
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (2)
70var ourSentinel = new object(); 71var currentSentinel = _sourceToUpdateSentinel.GetOrAdd(source, ourSentinel);
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.cs (2)
158var guard = error ? _errorOutputGuard : _outputGuard; 169var guard = isError ? _errorOutputGuard : _outputGuard;
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\ProjectDependencyHelper.cs (1)
75foreach (var reference in projectFileInfo.PackageReferences)
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (1)
140var completionProviderObj = createCompletionProviderMethodInfo.Invoke(null, new object[4] { serviceBroker, BrokeredServices.Services.Descriptors.RemoteModelService, modelBasePath, logger });
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Handler\Diagnostics\DiagnosticsPullCache.cs (1)
84foreach (var additionalLocation in diagnosticData.AdditionalLocations)
Handler\FoldingRanges\FoldingRangesHandler.cs (1)
91foreach (var span in blockStructure.Spans)
Handler\References\FindImplementationsHandler.cs (1)
60foreach (var sourceSpan in definition.SourceSpans)
Handler\WorkspaceCommand\ExecuteWorkspaceCommandHandler.cs (1)
39var result = await handler.HandleRequestAsync(request, context, cancellationToken).ConfigureAwait(false);
LspServices\LspServices.cs (2)
97return TryGetService(typeof(T), out var service) 213var serviceInstance = GetService(typeName);
Protocol\Converters\NaturalObjectConverter.cs (1)
61var element = ReadObjectCore(ref reader);
Protocol\Converters\SumConverter.cs (1)
261var sumValue = value.Value;
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
72foreach (var run in value.Elements)
RoslynLanguageServer.cs (1)
132if (!baseServiceMap.TryGetValue(typeName, out var value))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (1)
204var result = await queue.ExecuteAsync(requestObject, _method, lspServices, cancellationToken).ConfigureAwait(false);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
110if (!lspServices.TryGetService(handlerType, out var lspService))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (1)
313var result = methodInfo.Invoke(this, [work, handler, metadata, concurrentlyExecutingTasks, currentWorkCts, cancellationToken]);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (6)
172var valueInServer = globalOptionService.GetOption<object>(new OptionKey2(option, languageName)); 177var valueInServer = globalOptionService.GetOption<object>(new OptionKey2(option, null)); 222foreach (var option in DidChangeConfigurationNotificationHandler.SupportedOptions) 248var nonDefaultValue = GetNonDefaultValue(option); 257if (TryGetValueNonDefaultValueBasedOnName(option, out var nonDefaultValue)) 307foreach (var value in Enum.GetValues(type))
Hover\HoverTests.cs (1)
552foreach (var element in container.Elements)
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
RoundTripUtil.cs (6)
239var originalValue = propertyInfo.GetValue(originalOptions)!; 240var rebuildValue = propertyInfo.GetValue(rebuildOptions)!; 246var originalValue = propertyInfo.GetValue(originalOptions); 247var rebuildValue = propertyInfo.GetValue(rebuildOptions); 267var originalValue = propertyInfo.GetValue(originalOptions); 268var rebuildValue = propertyInfo.GetValue(rebuildOptions);
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\TestUtils.cs (1)
275foreach (var child in checksums.Children)
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
76var convertedType = System.Convert.ChangeType(value, typeCode);
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (1)
87var aggregatorLock = new object();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (1)
150Contract.ThrowIfFalse(_pendingScopes.TryRemove(blockId, out var scope));
Microsoft.CodeAnalysis.Remote.Workspaces (1)
AbstractAssetProviderExtensions.cs (1)
76foreach (var checksum in checksums.Children)
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
626foreach (var item in sequence)
ScriptBuilder.cs (1)
142foreach (var referencedAssembly in compilation.GetBoundReferenceManager().GetReferencedAssemblies())
ScriptState.cs (1)
103var state = executionState.GetSubmissionState(i);
Microsoft.CodeAnalysis.Test.Utilities (4)
Mocks\TestSourceReferenceResolver.cs (1)
51var data = _sources[resolvedPath];
Platform\Custom\MetadataSignatureHelper.cs (1)
150var defaultValue = parameter.RawDefaultValue;
Platform\Desktop\TestHelpers.cs (1)
103var toolsPath = key.GetValue("MSBuildToolsPath");
TargetFrameworkUtil.cs (1)
428var obj = prop.GetGetMethod()!.Invoke(obj: null, parameters: null);
Microsoft.CodeAnalysis.UnitTests (38)
AnalyzerAssemblyLoaderTests.cs (30)
225var obj = member.IsStatic 311var a = alpha.CreateInstance("Alpha.A")!; 316var b = beta.CreateInstance("Beta.B")!; 381var b = beta.CreateInstance("Beta.B")!; 541var b = gamma.CreateInstance("Gamma.G")!; 573var b = gamma.CreateInstance("Gamma.G")!; 689var b = gamma.CreateInstance("Gamma.G")!; 738var b = gamma.CreateInstance("Gamma.G")!; 798var g = gamma.CreateInstance("Gamma.G")!; 802var e = epsilon.CreateInstance("Epsilon.E")!; 854var e = epsilon.CreateInstance("Epsilon.E")!; 913var e = epsilon.CreateInstance("Epsilon.E")!; 1000var e = epsilon.CreateInstance("Epsilon.E")!; 1060var e = epsilon.CreateInstance("Epsilon.E")!; 1114var g = gamma.CreateInstance("Gamma.G")!; 1118var e = epsilon.CreateInstance("Epsilon.E")!; 1174var g = gamma.CreateInstance("Gamma.G")!; 1178var e = epsilon.CreateInstance("Epsilon.E")!; 1236var value = prop.GetValue(a, null); 1353var g = gamma.CreateInstance("Gamma.G")!; 1357var e = epsilon.CreateInstance("Epsilon.E")!; 1383var delta1Instance = delta1Assembly.CreateInstance("Delta.D")!; 1387var delta2Instance = delta2Assembly.CreateInstance("Delta.D")!; 1412var analyzer = analyzerAssembly.CreateInstance("Analyzer")!; 1439var analyzer = analyzerAssembly.CreateInstance("Analyzer")!; 1476var analyzer = analyzerAssembly.CreateInstance("Class1")!; 1477var result = analyzer.GetType().GetMethod("GetFileAttributes")!.Invoke(analyzer, new[] { testFixture.AnalyzerWithNativeDependency }); 1526var d = delta.CreateInstance("Delta.D"); 1560var b = gamma.CreateInstance("Gamma.G")!; 1702var analyzer = analyzerAssembly.CreateInstance("Analyzer")!;
InternalUtilities\ConcurrentDictionaryExtensionsTests.cs (2)
27var first = new object(); 28var second = new object();
Win32Res.cs (6)
26var res = Resources.ResourceManager.GetObject("VerResourceBuiltByRC"); 35var res = Resources.ResourceManager.GetObject("nativeWithStringIDsAndTypesAndIntTypes"); 128var manifestContents = Resources.ResourceManager.GetObject("defaultWin32Manifest"); 132var icon = Resources.ResourceManager.GetObject("Roslyn_ico"); 140foreach (var r in resources) 176foreach (var rInner in resources)
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ReferenceManager.vb (2)
14Imports MetadataOrDiagnostic = System.Object 51Public Sub New(simpleAssemblyName As String, identityComparer As AssemblyIdentityComparer, observedMetadata As Dictionary(Of MetadataReference, MetadataOrDiagnostic))
Microsoft.CodeAnalysis.Workspaces (19)
CodeActions\CodeActionWithOptions.cs (1)
56var options = this.GetOptions(cancellationToken);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
265var key = reference.Id;
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
152var value = token.Value;
Log\KeyValueLogMessage.cs (1)
106foreach (var item in items)
Options\DocumentOptionSet.cs (1)
48if (_values.TryGetValue(optionKey, out var value))
Options\GlobalOptionService.cs (2)
85if (persister.TryFetch(optionKey, out var persistedValue)) 165if (currentValues.TryGetValue(optionKey, out var value))
Options\OptionSet.cs (2)
31var result = GetInternalOptionValue(optionKey); 76var currentValue = GetInternalOptionValue(mappedOptionKey);
Options\SolutionOptionSet.cs (2)
49if (_values.TryGetValue(optionKey, out var value)) 64var currentInternalValue = GetInternalOptionValue(optionKey);
Remote\RemoteServiceCallbackDispatchers.cs (1)
23var serviceInterface = data.GetValueOrDefault(nameof(ExportRemoteServiceCallbackDispatcherAttribute.ServiceInterface));
Shared\Extensions\ISymbolExtensions.cs (2)
193var argumentValue = attribute.ConstructorArguments.First().Value; 609foreach (var annotation in source.Annotations<object>())
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1079if (accumulator.TryGetValue(key, out var existingValueOrArray))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (1)
44if (option.Definition.Serializer.TryParse(stringValue, out var objectValue))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
520/// type order. i.e. the overridable members of <see cref="System.Object"/> will be at the start
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
80if (_eventNameToRegistries.TryGetValue(eventName, out var registries))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
415var state = stateMember.GetValue(generatorDriver);
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Rpc\RpcClient.cs (3)
75var result = response.Value?.ToObject(expectedType); 107var result = await InvokeCoreAsync(targetObject, methodName, parameters, expectedReturnType: typeof(T), cancellationToken).ConfigureAwait(false); 113var result = await InvokeCoreAsync(targetObject, methodName, parameters, expectedReturnType: typeof(T), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Rpc\RpcServer.cs (2)
110_rpcTargets.TryGetValue(request.TargetObject, out var rpcTarget), 138var result = method.Invoke(rpcTarget, arguments);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1079if (accumulator.TryGetValue(key, out var existingValueOrArray))
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
62foreach (var annotation in source.Annotations<object>())
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
FileSet.cs (1)
56if (_fileMap.TryGetValue(fileName, out var content))
src\Workspaces\Core\MSBuild.BuildHost\Rpc\RpcServer.cs (2)
110_rpcTargets.TryGetValue(request.TargetObject, out var rpcTarget), 138var result = method.Invoke(rpcTarget, arguments);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Fakes\SimpleAssetSource.cs (1)
36var asset = deserializerService.Deserialize(data.GetWellKnownSynchronizationKind(), reader, cancellationToken);
Fakes\TestOptionSet.cs (1)
25=> _values.TryGetValue(optionKey, out var value) ? value : optionKey.Option.DefaultValue;
MEF\UseExportProviderAttribute.cs (1)
153foreach (var token in ((AsynchronousOperationListenerProvider)listenerProvider).GetTokens())
ObjectExtensions.cs (2)
28var result = propertyInfo.GetValue(instance, null); 52var result = fieldInfo.GetValue(instance);
Options\OptionsTestHelpers.cs (1)
145var zero = Enum.ToObject(type, 0);
Remote\InProcRemostHostClient.cs (1)
240var service = inProcFactory();
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
ObjectSerializationTests.cs (1)
178public override Boolean Equals(Object obj)
Options\DocumentOptionSetTests.cs (1)
82var actualValue = updatedSet.GetOption(optionKey);
Options\OptionSerializerTests.cs (3)
78var defaultValue = option.DefaultValue; 130var defaultValue = option.DefaultValue; 165foreach (var enumValue in possibleEnumValues)
Remote\ServiceDescriptorTests.cs (4)
211foreach (var original in options) 217var deserialized = MessagePackSerializer.Deserialize(original.GetType(), stream, messagePackOptions); 282foreach (var original in options) 288var deserialized = MessagePackSerializer.Deserialize(original.GetType(), stream, messagePackOptions);
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
537var cachedStateAfterFirstChange = GetDeclarationManagerCachedStateForUnchangingTrees(compilationAfterFirstChange); 538var cachedStateAfterSecondChange = GetDeclarationManagerCachedStateForUnchangingTrees(compilationAfterSecondChange); 544var syntaxAndDeclarationsManager = compilation.GetFieldValue("_syntaxAndDeclarations"); 545var state = syntaxAndDeclarationsManager.GetType().GetMethod("GetLazyState", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)!.Invoke(syntaxAndDeclarationsManager, null); 546var declarationTable = state.GetFieldValue("DeclarationTable");
SymbolKeyTests.cs (2)
1454var expected = fnId(symbol); 1455var actual = fnId(found);
UtilityTest\ReferenceHolderTests.cs (3)
16var obj = new object(); 26var obj = new object(); 40var obj = new object();
UtilityTest\WeakEventTests.cs (1)
18var sender = new object();
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
178var values = globalOptions.GetOptions([new OptionKey2(option1), new OptionKey2(option2)]);
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
ExampleLspServices.cs (1)
26return TryGetService(typeof(T), out var service)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
AbstractLanguageServer.cs (1)
204var result = await queue.ExecuteAsync(requestObject, _method, lspServices, cancellationToken).ConfigureAwait(false);
HandlerProvider.cs (1)
110if (!lspServices.TryGetService(handlerType, out var lspService))
RequestExecutionQueue.cs (1)
313var result = methodInfo.Invoke(this, [work, handler, metadata, concurrentlyExecutingTasks, currentWorkCts, cancellationToken]);
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (1)
697foreach (var value in values)
DataFrameColumn.cs (1)
285var value = this[i];
Microsoft.Data.Analysis.Interactive (2)
DataFrameKernelExtension.cs (2)
64foreach (var obj in df.Rows[index]) 117foreach (var obj in df.Rows[index])
Microsoft.Data.Analysis.Tests (6)
DataFrame.IOTests.cs (1)
808foreach (var value in column)
DataFrameTests.cs (5)
21var foo = dataFrame[0, 0]; 631var colD = df.Columns[c][i]; 632var ocD = column[i]; 971foreach (var value in row) 1006foreach (var value in column)
Microsoft.DotNet.Arcade.Sdk (1)
src\SingleError.cs (1)
20var errorReportedSentinel = BuildEngine4.GetRegisteredTaskObject(key, RegisteredTaskObjectLifetime.Build);
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
283return Object.Equals(x, y) ||
Microsoft.DotNet.XUnitAssert.Tests (12)
CollectionAssertsTests.cs (1)
2300 var item = Assert.Single(collection);
EventAssertsTests.cs (9)
53 var eventObj = new object(); 118 var eventObj = new object(); 158 var eventObj = new object(); 203 var eventObj = new object(); 284 var eventObj = new object(); 377 var eventObj = new object(); 458 var eventObj = new object(); 568 var eventObj = new object(); 633 var eventObj = new object();
IdentityAssertsTests.cs (2)
12 var actual = new object(); 32 var actual = new object();
Microsoft.Extensions.AI.Abstractions.Tests (15)
ChatCompletion\DelegatingChatClientTests.cs (4)
117var expectedParam = new object(); 118var expectedKey = new object(); 137var expectedParam = new object(); 139var expectedKey = new object();
Contents\FunctionCallContentTests..cs (7)
114var result = await function.InvokeAsync(arguments); 136var result = await function.InvokeAsync(arguments); 169var result = await function.InvokeAsync(arguments); 190var result = await function.InvokeAsync(arguments); 208var result = await NetTypelessAIFunction.Instance.InvokeAsync(arguments); 226var result = await NetTypelessAIFunction.Instance.InvokeAsync(arguments); 244var result = await NetTypelessAIFunction.Instance.InvokeAsync(arguments);
Embeddings\DelegatingEmbeddingGeneratorTests.cs (4)
78var expectedParam = new object(); 79var expectedKey = new object(); 98var expectedParam = new object(); 100var expectedKey = new object();
Microsoft.Extensions.ApiDescription.Client (4)
MetadataSerializer.cs (4)
63foreach (var key in metadata.Keys) 65var value = metadata[key]; 75foreach (var key in metadata.Keys) 79var value = metadata[key];
Microsoft.Extensions.Caching.Hybrid (4)
Internal\DefaultHybridCache.cs (1)
136if (_localCache.TryGetValue(key, out var untyped)
Internal\DefaultHybridCache.Debug.cs (1)
20if (_localCache.TryGetValue(key, out var untyped) && untyped is CacheItem typed)
Internal\DefaultHybridCache.Serialization.cs (1)
24return _serializers.TryGetValue(typeof(T), out var serializer)
Internal\DefaultHybridCache.Stampede.cs (1)
59if ((flags & HybridCacheEntryFlags.DisableLocalCache) == 0 && _localCache.TryGetValue(key, out var untyped)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
StampedeTests.cs (1)
439var obj = cache.GetPartitionedSyncLock(in key);
TestEventListener.cs (1)
69foreach (var payload in eventData.Payload)
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
30private readonly Object _mutex = new Object();
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Microsoft.Extensions.Compliance.Testing.Tests (2)
RedactionFakesEventCollectorTests.cs (2)
38var @object = new object(); 59var @object = new object();
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteFactory.cs (2)
195var callsiteLock = _callSiteLocks.GetOrAdd(serviceIdentifier, static _ => new object()); 579foreach (var attribute in parameters[index].GetCustomAttributes(true))
ServiceLookup\DynamicServiceProviderEngine.cs (1)
28var result = CallSiteRuntimeResolver.Instance.Resolve(callSite, scope);
Microsoft.Extensions.Diagnostics (2)
Metrics\ListenerSubscription.cs (2)
74if (_instruments.TryGetValue(instrument, out var listenerState)) 104var alreadyEnabled = _instruments.TryGetValue(instrument, out var state);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
HttpExceptionSummaryProvider.cs (2)
42foreach (var v in Enum.GetValues(typeof(SocketError))) 57foreach (var v in Enum.GetValues(typeof(WebExceptionStatus)))
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
63if (!Tags.TryGetValue(kvp.Key, out var value))
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MetricCollectorTests.cs (1)
139var scope = new object();
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
125var feature = this[typeof(TFeature)];
Microsoft.Extensions.Features.Tests (2)
FeatureCollectionTests.cs (2)
19var thing2 = interfaces[typeof(IThing)]; 45var thing2 = interfaces[typeof(IThing)];
Microsoft.Extensions.Http.Diagnostics (3)
Logging\Internal\Log.cs (3)
155var httpMethod = request[startIndex].Value; 156var httpHost = request[startIndex + 1].Value; 157var httpPath = request[startIndex + 2].Value;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\TestLoggingHandler.cs (1)
24var handler = Activator.CreateInstance(handlerType, logger);
Microsoft.Extensions.Http.Polly (2)
HttpRequestMessageExtensions.cs (1)
36request.Properties.TryGetValue(PolicyExecutionContextKey, out var context);
PolicyHttpMessageHandler.cs (1)
163if (request.Properties.TryGetValue(PriorResponseKey, out var priorResult) && priorResult is IDisposable disposable)
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Microsoft.Extensions.Http.Resilience.Tests (2)
Helpers\OptionsUtilities.cs (2)
37var propertyValue1 = propertyDefinition1.Value; 39if (!propertiesValuesByName2.TryGetValue(propertyName, out var propertyValue2) ||
Microsoft.Extensions.ObjectPool.Tests (2)
DefaultObjectPoolTest.cs (2)
17var obj1 = pool.Get(); 21var obj2 = pool.Get();
Microsoft.Extensions.Options.SourceGeneration (2)
Emitter.cs (2)
575foreach (var type in data) 599foreach (var obj in data)
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Microsoft.Extensions.Telemetry.PerformanceTests (11)
BenchLogger.cs (1)
64var o = item.Value;
ModernCodeGen.cs (10)
32var connectionId = s.TagArray[6].Value ?? "(null)"; 33var type = s.TagArray[5].Value ?? "(null)"; 34var streamId = s.TagArray[4].Value ?? "(null)"; 35var length = s.TagArray[3].Value ?? "(null)"; 36var flags = s.TagArray[2].Value ?? "(null)"; 37var other = s.TagArray[1].Value ?? "(null)"; 65var start = s.TagArray[4].Value; 66var end = s.TagArray[3].Value; 67var options = s.TagArray[2].Value; 68var guid = s.TagArray[1].Value;
Microsoft.Extensions.Telemetry.Tests (1)
Logging\SerialExtendedLoggerTests.cs (1)
29var payload = e.Payload?[0];
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
19var value = property.GetValue(type, null);
Microsoft.Gen.Logging (5)
Parsing\AttributeProcessors.cs (5)
45var v = a.Value; 53var v = a.Value; 67var v = a.Value.Value; 136var v = a.Value.Value; 174var v = a.Value.Value;
Microsoft.Gen.Logging.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
20var value = property.GetValue(type, null);
Microsoft.Gen.Metrics.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
19var value = property.GetValue(type, null);
Microsoft.JSInterop (4)
Infrastructure\DotNetDispatcher.cs (2)
58var syncResult = InvokeSynchronously(jsRuntime, invocationInfo, targetInstance, argsJson); 151var result = TaskGenericsUtil.GetTaskResult(task);
JSRuntime.cs (2)
232if (!_pendingTasks.TryRemove(taskId, out var tcs)) 247var result = JsonSerializer.Deserialize(ref jsonReader, resultType, JsonSerializerOptions);
Microsoft.JSInterop.Tests (9)
DotNetObjectReferenceTest.cs (1)
11var obj = new object();
JSInProcessRuntimeTest.cs (5)
35var obj1 = new object(); 36var obj2 = new object(); 37var obj3 = new object(); 71var obj1 = new object(); 72var obj2 = new object();
JSRuntimeTest.cs (3)
265var obj1 = new object(); 266var obj2 = new object(); 267var obj3 = new object();
Microsoft.ML.AutoML (1)
TrainerExtensions\TrainerExtensionUtil.cs (1)
214props.TryGetValue(WeightColumn, out var weightColumn);
Microsoft.ML.AutoML.Tests (5)
MetricsUtil.cs (1)
48var instance = type.Assembly.CreateInstance(
TrainerExtensionsTests.cs (4)
67foreach (var sweepParam in sweepParams) 103foreach (var sweepParam in sweepParams) 148foreach (var sweepParam in sweepParams) 207foreach (var sweepParam in sweepParams)
Microsoft.ML.CodeGenerator.Tests (3)
ApprovalTests\ConsoleCodeGeneratorTests.cs (3)
238foreach (var project in codeGen.ToSolution()) 277foreach (var project in codeGen.ToSolution()) 315foreach (var project in codeGen.ToSolution())
Microsoft.ML.Core (9)
CommandLine\CmdParser.cs (7)
659var activator = Activator.CreateInstance(component.ArgumentType); 779var val = info.ArgDef.GetValue(values); 785var val = arg.GetValue(values); 812var val = info.ArgDef.GetValue(values); 818var val = arg.GetValue(values); 1595var kvp = Activator.CreateInstance(ItemType, comList[i].Key, comList[i].Value); 1638var kvp = Activator.CreateInstance(ItemType, values[i].Key, values[i].Value);
EntryPoints\EntryPointUtils.cs (1)
63var fieldVal = fieldInfo.GetValue(args);
Environment\HostEnvironmentBase.cs (1)
621if (!Options.TryGetValue(name, out var val) || val is not T)
Microsoft.ML.Data (13)
Data\DataViewUtils.cs (1)
356var pool = GetPool(type, ourPools, c);
EntryPoints\EntryPointNode.cs (2)
502var inputInstance = _inputBuilder.GetInstance(); 544var inputColName = inputInstance.GetType().GetField(colField).GetValue(inputInstance);
EntryPoints\InputBuilder.cs (5)
188var csValue = ParseJsonValue(_ectx, field.FieldType, _attrs[index], value, _catalog); 211var csValue = GetFieldAssignableValue(_ectx, field.FieldType, value); 223var defaults = Activator.CreateInstance(_type); 228var instanceVal = field.GetValue(instance); 229var defaultsVal = field.GetValue(defaults);
MLContext.cs (1)
186var result = method.Invoke(null, null);
Prediction\Calibrator.cs (2)
455var genericInstance = CreateCalibratedModelParameters.Create(env, ctx, predictor, calibrator, genericType); 522var genericInstance = CreateCalibratedModelParameters.Create(env, ctx, predictor, calibrator, genericType);
Scorers\PredictionTransformer.cs (2)
791var genericInstance = genericCtor.Invoke(new object[] { env, ctx, host, model }); 802var genericInstance = genericCtor.Invoke(new object[] { env, ctx, host, model });
Microsoft.ML.DataView (1)
SchemaDebuggerProxy.cs (1)
45var value = Utils.MarshalInvoke(GetValue<DataViewSchema.Column>, column.Type.RawType, annotations, column);
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
60var valCur = field.GetValue(null);
Microsoft.ML.EntryPoints (10)
CrossValidationMacro.cs (1)
209foreach (var entryPointNode in graph)
JsonUtils\JsonManifestUtils.cs (4)
42foreach (var component in catalog.GetAllComponents(kind)) 155var defaults = Activator.CreateInstance(inputType); 183var defaultValue = fieldInfo.GetValue(defaults); 428foreach (var item in valArray)
OneVersusAllMacro.cs (1)
81foreach (var entryPointNode in subGraphNodes)
TrainTestMacro.cs (4)
133foreach (var subGraphNode in subGraphNodes) 144foreach (var subGraphNode in subGraphNodes) 152foreach (var subGraphNode in subGraphNodes) 291foreach (var subGraphNode in subGraphNodes)
Microsoft.ML.FastTree (2)
Training\Test.cs (2)
534Object testLock = new Object(); 648var testLock = new Object();
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
410var parsedJson = JsonConvert.DeserializeObject(model.ToString());
Microsoft.ML.OnnxTransformer (1)
OnnxTypeParser.cs (1)
308var scalar = accessSpecialized.Invoke(value, new object[] { 0 });
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLineReverseTest.cs (1)
94foreach (var component in components)
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
165var defs = cls.CreateArguments();
Microsoft.ML.Samples (48)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (21)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 48Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 54Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 60Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 66Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 72Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 78Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 84Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 90Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 99private static Dictionary<string, Object> GetAnomalyDimension() 101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (27)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object> 56Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 62Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 68Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 74Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 80Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 86Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 92Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 98Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 104Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 110Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 116Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 125private static Dictionary<string, Object> GetAnomalyDimension() 127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (3)
Parameter.cs (3)
199var pValue = property.GetValue(value); 388if (Object.ReferenceEquals(other, null)) return false; 391if (Object.ReferenceEquals(this, other)) return true;
Microsoft.ML.StandardTrainers (1)
Standard\SdcaBinary.cs (1)
2062var weightsSync = new object();
Microsoft.ML.Sweeper (2)
SweepResultEvaluator.cs (2)
47var args = evalInfo.CreateArguments(); 53foreach (var metric in eval.GetOverallMetricColumns())
Microsoft.ML.Sweeper.Tests (2)
TestSweeper.cs (2)
323var mlock = new object(); 384var mlock = new object();
Microsoft.ML.TestFramework (3)
DataPipe\TestDataPipeBase.cs (3)
352var def = info.CreateArguments(); 354var a1 = info.CreateArguments(); 362var a2 = info.CreateArguments();
Microsoft.ML.Tests (5)
CollectionsDataViewTest.cs (4)
58var xvalue = field.GetValue(x); 59var yvalue = field.GetValue(y); 77var xvalue = property.GetValue(x); 78var yvalue = property.GetValue(y);
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
279var res = del.DynamicInvoke(args);
Microsoft.ML.TimeSeries (40)
RootCauseAnalyzer.cs (26)
51Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping = pointInfo.Item3; 75private DimensionInfo SeparateDimension(Dictionary<string, Object> dimensions, Object aggSymbol) 78foreach (KeyValuePair<string, Object> entry in dimensions) 102Dictionary<string, Object> subDim = GetSubDim(src.AnomalyDimension, dimensionInfo.DetailDims); 125return new Tuple<PointTree, PointTree, Dictionary<Dictionary<string, Object>, TimeSeriesPoint>>(pointTree, anomalyTree, dimPointMapping); 128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList) 133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims) 350private void GetRootCauseDirectionAndScore(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> anomalyRoot, RootCause dst, double beta, PointTree pointTree, AggregateType aggType, Object aggSymbol) 401private TimeSeriesPoint GetPointByDimension(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> dimension, PointTree pointTree, AggregateType aggType, Object aggSymbol) 411Dictionary<string, Object> subDim = GetSubDim(dimension, dimensionInfo.DetailDims); 442private void BuildTree(PointTree tree, List<string> aggDims, TimeSeriesPoint point, Object aggSymbol) 637private static Dictionary<string, Object> UpdateDimensionValue(Dictionary<string, Object> dimension, string key, Object value) 639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension); 722private static bool ContainsAll(Dictionary<string, Object> bigDictionary, Dictionary<string, Object> smallDictionary) 735private bool IsAggregationDimension(Object val, Object aggSymbol)
RootCauseLocalizationType.cs (14)
44public Dictionary<string, Object> AnomalyDimension { get; set; } 59public Object AggregateSymbol { get; set; } 61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol) 70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol) 135public Dictionary<string, Object> Dimension; 141public RootCauseItem(Dictionary<string, Object> rootCause) 147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path) 156foreach (KeyValuePair<string, Object> item in Dimension) 206public Dictionary<string, Object> Dimension { get; set; } 212public TimeSeriesPoint(Dictionary<string, Object> dimension) 218public TimeSeriesPoint(double value, double expectedValue, bool isAnomaly, Dictionary<string, Object> dimension) 229foreach (KeyValuePair<string, Object> item in Dimension)
Microsoft.ML.TimeSeries.Tests (33)
TimeSeriesDirectApi.cs (33)
102private static Object _rootCauseAggSymbol = "##SUM##"; 970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 1015expectedDim = new Dictionary<string, Object>(); 1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 1162private static Dictionary<string, Object> GetRootCauseAnomalyDimension(object val, object aggSymbol) 1164Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.Transforms (7)
Expression\CodeGen.cs (3)
228var value = node.ExprValue; 295var value = node.ExprValue; 966var val = node.ExprValue;
Expression\LambdaBinder.cs (2)
1069var valuePrev = arg.ExprValue; 1110var value2 = arg2.ExprValue;
Expression\Printer.cs (1)
217var value = node.ExprValue;
MissingValueReplacing.cs (1)
506var repValue = _repValues[iinfo];
Microsoft.NET.StringTools.net35.UnitTests (1)
StringTools_Tests.cs (1)
37Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue();
Microsoft.NET.StringTools.UnitTests (2)
StringTools_Tests.cs (2)
37Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue(); 45Object.ReferenceEquals(internedString1, internedString2).ShouldBeTrue();
Microsoft.TestUtilities (1)
XUnit\ConditionalTheoryDiscoverer.cs (1)
54var obj = dataRow[0];
Microsoft.VisualStudio.LanguageServices (45)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
83if (ErrorHandler.Succeeded(hierarchy.GetProperty((uint)VSConstants.VSITEMID.Root, (int)__VSHPROPID8.VSHPROPID_ActiveIntellisenseProjectContext, out var contextProjectNameObject))
CodeCleanup\AbstractCodeCleanUpFixer_Helper.cs (2)
27foreach (var diagnostic in enabledDiagnostics.Diagnostics) 53foreach (var diagnostic in enabledDiagnostics.Diagnostics)
CodeLens\CodeLensCallbackListener.cs (1)
237return descriptorContext.Properties.TryGetValue(key, out var guidStringUntyped) &&
DebuggerIntelliSense\DebuggerTextView.HACK_CompletionSession.cs (1)
51var shimController = propertyList.Single(x => x.Value != null && x.Value.GetType().Name == "ShimCompletionController").Value;
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
211if (ErrorHandler.Succeeded(hierarchy.GetProperty(itemId, (int)__VSHPROPID.VSHPROPID_ItemSubType, out var currentValue)))
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (3)
62foreach (var extension in enabledExtensions) 66var extension_Header = extensionType_HeaderProperty.GetValue(extension); 74foreach (var content in extension_Content)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.Factory.cs (1)
53var extensionManager = _serviceProvider.GetService(type);
DocumentOutline\DocumentOutlineView.xaml.cs (2)
67ErrorHandler.ThrowOnFailure(toolbarTray.GetUIObject(out var uiObject)); 68ErrorHandler.ThrowOnFailure(((IVsUIWpfElement)uiObject).GetFrameworkElement(out var frameworkElement));
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleCategoryColumnDefinition.cs (1)
46=> entry.TryGetValue(Category, out var categoryName)
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
107foreach (var metadataLocation in definition.MetadataLocations)
FindReferences\Entries\DocumentSpanEntry.cs (1)
212var key = PredefinedPreviewTaggerKeys.StaticClassificationSpansKey;
FindReferences\FindReferencesTableControlEventProcessorProvider.cs (1)
61(entry.TryGetValue(StreamingFindUsagesPresenter.SelfKeyName, out var item) ? item as ISupportsNavigation : null);
FindReferences\RoslynDefinitionBucket.cs (1)
97if (TryGetValue(StandardTableKeyNames.Text, out var contentValue) && contentValue is string textContent)
FindReferences\StreamingFindUsagesPresenter.cs (1)
314windowFrame.GetProperty((int)__VSFPROPID7.VSFPROPID_InfoBarHost, out var infoBarHostObj) != VSConstants.S_OK ||
Implementation\AbstractEditorFactory.cs (1)
89var docDataExisting = Marshal.GetObjectForIUnknown(punkDocDataExisting);
InheritanceMargin\InheritanceMarginHelpers.cs (1)
107foreach (var target in targets)
Interactive\VsResetInteractive.cs (1)
108hierarchy.GetProperty((uint)VSConstants.VSITEMID.Root, (int)__VSHPROPID.VSHPROPID_ExtObject, out var extensibilityObject));
Interop\ComAggregate.cs (1)
59var target = handle.Target;
Interop\WeakComHandle.cs (1)
96var target = _managedObjectWeakReference.Target;
Interop\WrapperPolicy.cs (1)
38var wrapper = Marshal.GetObjectForIUnknown(ptr);
Options\LocalUserRegistryOptionPersister.cs (2)
59var untypedValue = subKey.GetValue(key, defaultValue: optionKey.Option.DefaultValue); 78var untypedValue = subKey.GetValue(key, defaultValue: optionKey.Option.DefaultValue);
Options\VisualStudioSettingsOptionPersister.cs (1)
55TryFetch(entry.primaryOptionKey, entry.primaryStorageKey, out var newValue))
PreviewPane\PreviewPane.xaml.cs (1)
170foreach (var previewItem in previewItems)
ProjectSystem\Extensions\IVsHierarchyExtensions.cs (1)
15if (ErrorHandler.Failed(hierarchy.GetProperty(itemId, propertyId, out var property)) ||
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
326if (documentItemID != (uint)VSConstants.VSITEMID.Nil && Hierarchy.GetProperty(documentItemID, (int)VsHierarchyPropID.Parent, out var parentObj) == VSConstants.S_OK) 377if (hierarchy.GetProperty(folderItemID, (int)VsHierarchyPropID.Name, out var nameObj) == VSConstants.S_OK) 392if (hierarchy.GetProperty(folderItemID, (int)VsHierarchyPropID.Parent, out var parentObj) == VSConstants.S_OK)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
310if (ErrorHandler.Failed(SmartOpenScopeServiceOpt.OpenScope(fullPath, (uint)CorOpenFlags.ReadOnly, s_IID_IMetaDataImport, out var ppUnknown)))
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
229if (ErrorHandler.Succeeded(hierarchy.GetProperty(VSConstants.VSITEMID_ROOT, (int)__VSHPROPID8.VSHPROPID_ActiveIntellisenseProjectContext, out var contextProjectNameObject)))
PullMemberUp\WarningDialog\PullMemberUpWarningViewModel.cs (1)
34foreach (var result in options.MemberAnalysisResults)
RoslynPackage.cs (1)
340var gate = new object();
Telemetry\Shared\AbstractAggregatingLog.cs (1)
87var aggregatorLock = new object();
Telemetry\Shared\TelemetryLogger.cs (1)
150Contract.ThrowIfFalse(_pendingScopes.TryRemove(blockId, out var scope));
Utilities\IVsShellExtensions.cs (2)
34ErrorHandler.Succeeded(shell.GetProperty((int)__VSSPROPID.VSSPROPID_IsInCommandLineMode, out var result)) && 44var hresult = shell.GetProperty((int)id, out var objValue);
Workspace\VisualStudioActiveDocumentTracker.cs (4)
66if (ErrorHandler.Succeeded(monitorSelectionService.GetCurrentElementValue((uint)VSConstants.VSSELELEMID.SEID_DocumentFrame, out var value))) 194ErrorHandler.Succeeded(frame.GetProperty((int)__VSFPROPID.VSFPROPID_Type, out var frameType)) && 289if (ErrorHandler.Succeeded(Frame.GetProperty((int)__VSFPROPID12.VSFPROPID_IsDocDataInitialized, out var boxedIsDocDataInitialized))) 304if (ErrorHandler.Succeeded(Frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocData, out var docData)) &&
Workspace\VisualStudioSymbolNavigationService.cs (1)
255foreach (var loc in sourceLocations)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\TempPECompilerService.cs (1)
80var optionValue = optionValues[i];
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\AbstractFileCodeElementTests.cs (1)
73foreach (var pathElement in path.Skip(1))
Microsoft.VisualStudio.LanguageServices.DevKit (3)
Logging\VSCodeTelemetryLogger.cs (1)
84var found = _pendingScopes.TryRemove(blockId, out var scope);
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (1)
87var aggregatorLock = new object();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (1)
150Contract.ThrowIfFalse(_pendingScopes.TryRemove(blockId, out var scope));
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (1)
164foreach (var item in items)
MinimalSample (2)
Program.cs (2)
36var result = await next(invocationContext); 50var result = await next(invocationContext);
MSBuild (12)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
CommunicationsUtilities.cs (1)
404foreach (var key in vars.Keys)
LogMessagePacketBase.cs (1)
588private static Delegate CreateDelegateRobust(Type type, Object firstArgument, MethodInfo methodInfo)
OutOfProcTaskAppDomainWrapperBase.cs (2)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (1)
127private Object _taskCompleteLock = new Object();
OutOfProcTaskHostTaskResult.cs (3)
30internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams) 57internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 101public IDictionary<string, Object> FinalParameterValues
RegisteredTaskObjectCacheBase.cs (1)
144foreach (var obj in lifetimeObjects.Value.Values)
ThreadPoolExtensions.cs (1)
23delegate (Object state)
TypeLoader.cs (1)
268private readonly Object _lockObject = new Object();
MSBuildTaskHost (10)
AssemblyLoadInfo.cs (1)
83public override bool Equals(Object obj)
Immutable\ImmutableDictionary.cs (1)
132if (TryGetValue(key, out V existingValue) && Object.Equals(existingValue, value))
LogMessagePacketBase.cs (1)
588private static Delegate CreateDelegateRobust(Type type, Object firstArgument, MethodInfo methodInfo)
OutOfProcTaskAppDomainWrapperBase.cs (2)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (1)
127private Object _taskCompleteLock = new Object();
OutOfProcTaskHostTaskResult.cs (3)
30internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams) 57internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 101public IDictionary<string, Object> FinalParameterValues
TypeLoader.cs (1)
184private readonly Object _lockObject = new Object();
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
378[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Object))]
Mvc.Api.Analyzers.Test (1)
ActualApiResponseMetadataFactoryTest.cs (1)
86var metadata = Assert.Single(actualResponseMetadata);
Mvc.RoutingWebSite (1)
StartupForEndpointFilters.cs (1)
34var result = await next(ic);
NativeIISSample (1)
Startup.cs (1)
75var value = vars[key];
netstandard (1)
netstandard.cs (1)
1342[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Object))]
PresentationBuildTasks (24)
MS\Internal\MarkupCompiler\CompilationUnit.cs (2)
93internal delegate void MarkupErrorEventHandler(Object sender, MarkupErrorEventArgs e); 170internal delegate void SourceFileResolveEventHandler(Object sender, SourceFileResolveEventArgs e);
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
1783private CodeExpression GetPropertyValueExpression(ITypeDescriptorContext ctx, Type typeToConvertTo, Object value, string attributeValue) 2760cmmCI.ReturnType = new CodeTypeReference(typeof(Object)); 2795cmmGPV.ReturnType = new CodeTypeReference(typeof(Object));
MS\Internal\Tasks\CompilerWrapper.cs (2)
287private void OnCompilerError(Object sender, MarkupErrorEventArgs e) 352private void OnSourceFileResolve(Object sender, SourceFileResolveEventArgs e)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1675internal Object GetHashTableData(object key)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5507case KnownElements.Object: t = typeof(Object); break;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1656out Object dynamicObject, // resolved object.
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (9)
1148ref Object dynamicObject, // Property found -> PI, MI or DP 1463public Object ContextData 1645Object _contextData; 1696out Object dynamicObject, // resolved object. 1774ref Object dynamicObject, // resolved object. 2818Object dynamicObject = null; 3176Object dynamicObject, 3596Object dynamicObject = null; 4907return ReflectionHelper.GetMscorlibType(typeof(Object));
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (5)
129if ((Object) v1 == null && (Object) v2 == null) 134else if ((Object) v1 != null && (Object) v2 != null) 244public override bool Equals(Object obj)
PresentationCore (167)
MS\Internal\AnimatedTypeHelpers.cs (2)
434internal static Double GetSegmentLengthObject(Object from, Object to)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
229private Object _globalLock = new Object();
MS\Internal\FontFace\MatchingStyle.cs (2)
68public override bool Equals(Object o) 248public override bool Equals(Object o)
MS\Internal\Generated\AvTraceMessages.cs (2)
101static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 285static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters )
MS\Internal\Ink\StrokeFIndices.cs (1)
97public override bool Equals(Object obj)
MS\Internal\Ink\StrokeIntersection.cs (1)
111public override bool Equals(Object obj)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
847private Object _syncObject = new Object();
MS\Internal\IO\Packaging\NetStream.cs (1)
1293private Object _syncObject = new Object();
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
240static private readonly Object _globalLock;
MS\Internal\Span.cs (2)
444static private Equals _referenceEquals = new Equals(Object.ReferenceEquals); 445static private Equals _equals = new Equals(Object.Equals);
MS\Internal\SystemDrawingHelper.cs (2)
40internal static IntPtr GetHandleFromMetafile(Object data) 47internal static Object GetMetafileFromHemf(IntPtr hMetafile)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
1401if (Object.ReferenceEquals(textDecoration.Pen, textDecorationPen))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (2)
37internal SynchronizingStream(Stream stream, Object syncRoot) 281private Object _syncRoot; // object to lock on
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\PerfService.cs (1)
52if (!Object.ReferenceEquals(key, asm))
System\IO\Packaging\PackageStore.cs (1)
169static private readonly Object _globalLock;
System\IO\Packaging\PackWebResponse.cs (2)
873private void TimeoutCallback(Object stateInfo) 964private Object _lockObject; // Serialize access to _disposed, _timoutTimer and _responseAvailable because even though the main client
System\Windows\DataFormats.cs (1)
470private static readonly Object _formatListlock = new Object();
System\Windows\dataobject.cs (38)
334public void SetData(string format, Object data, bool autoConvert) 1675private int SaveObjectToHandle(IntPtr handle, Object data, bool doNotReallocate) 1754private int SaveSystemBitmapSourceToHandle(IntPtr handle, Object data, bool doNotReallocate) 1792private int SaveSystemDrawingBitmapToHandle(IntPtr handle, Object data, bool doNotReallocate) 2433public Object GetData(string format) 2438public Object GetData(Type format) 2443public Object GetData(string format, bool autoConvert) 2468public void SetData(Object data) 2545public void SetData(string format, Object data) 2550public void SetData(Type format, Object data) 2555public void SetData(string format, Object data, bool autoConvert) 2603private Object GetData(string format, bool autoConvert, DVASPECT aspect, int index) 2606Object baseVar; 2607Object original; 2692private Object GetDataFromOleIStream(string format, DVASPECT aspect, int index) 2867Object data; 2903private Object GetDataFromOleOther(string format, DVASPECT aspect, int index) 2908Object data; 2968private Object GetDataFromBoundOleDataObject(string format, DVASPECT aspect, int index) 2970Object data; 3049private Object ReadObjectFromHandle(IntPtr handle, bool restrictDeserialization) 3283private Object GetBitmapSourceFromHbitmap(IntPtr hbitmap) 3350public Object GetData(string format) 3355public Object GetData(Type format) 3360public Object GetData(string format, bool autoConvert) 3470public void SetData(Object data) 3481public void SetData(string format, Object data) 3486public void SetData(Type format, Object data) 3491public void SetData(string format, Object data, bool autoConvert) 3518private Object GetData(string format, bool autoConvert, DVASPECT aspect, int index) 3520Object baseVar; 3521Object original; 3639private void SetData(string format, Object data, bool autoConvert, DVASPECT aspect, int index) 3707private Object GetDataFromDataStoreEntry(DataStoreEntry dataStoreEntry, string format) 3709Object data; 3748public DataStoreEntry(Object data, bool autoConvert, DVASPECT aspect, int index) 3767public Object Data 3801private Object _data;
System\Windows\Documents\DynamicDocumentPaginator.cs (1)
103public abstract ContentPosition GetObjectPosition(Object value);
System\Windows\Duration.cs (1)
430public override bool Equals(Object value)
System\Windows\FreezableCollection.cs (1)
346bool isChanging = !Object.ReferenceEquals(oldValue, value);
System\Windows\Generated\TextDecorationCollection.cs (1)
252if (!Object.ReferenceEquals(_collection[index], value))
System\Windows\Ink\DrawingAttributes.cs (1)
753if (Object.ReferenceEquals(left, right))
System\Windows\Ink\IncrementalHitTester.cs (1)
904private void OnDrawingAttributesReplaced(Object sender, DrawingAttributesReplacedEventArgs args)
System\Windows\Input\InputLanguageManager.cs (1)
517public delegate void InputLanguageEventHandler(Object sender, InputLanguageEventArgs e);
System\Windows\Input\InputMethod.cs (1)
1815public delegate void InputMethodStateChangedEventHandler(Object sender, InputMethodStateChangedEventArgs e);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
87Object valDefault = null;
System\Windows\Input\TextServicesContext.cs (2)
344Object var; 395Object var;
System\Windows\Markup\IAddChild.cs (1)
34void AddChild(Object value);
System\Windows\Media\Animation\Animatable.cs (2)
80Object storageObject; 105Object storageObject;
System\Windows\Media\Animation\AnimationStorage.cs (1)
1052|| (animation.TargetPropertyType == typeof(Object));
System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
809public DiscreteObjectKeyFrame(Object value) 817public DiscreteObjectKeyFrame(Object value, KeyTime keyTime) 845protected override Object InterpolateValueCore(Object baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
1455protected ObjectKeyFrame(Object value) 1464protected ObjectKeyFrame(Object value, KeyTime keyTime) 1507typeof(Object), 1522Value = (Object)value; 1529public Object Value 1533return (Object)GetValue(ValueProperty); 1550public Object InterpolateValue( 1551Object baseValue, 1568protected abstract Object InterpolateValueCore( 1569Object baseValue,
System\Windows\Media\Animation\Generated\ObjectAnimationBase.cs (4)
130return typeof(Object); 168protected abstract Object GetCurrentValueCore(Object defaultOriginValue, Object defaultDestinationValue, AnimationClock animationClock);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (8)
323protected sealed override Object GetCurrentValueCore( 324Object defaultOriginValue, 325Object defaultDestinationValue, 351Object currentIterationValue; 387Object fromValue; 540private Object GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 851Object prevKeyValue = _keyFrames[index - 1].Value; 855Object currentKeyValue = _keyFrames[index].Value;
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
259if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Animation\IAnimatable.cs (1)
85Object GetAnimationBaseValue(DependencyProperty dp);
System\Windows\Media\Animation\KeyTime.cs (2)
175/// Implementation of <see cref="System.Object.Equals(object)">Object.Equals</see>. 189/// Implementation of <see cref="System.Object.GetHashCode">Object.GetHashCode</see>.
System\Windows\Media\Animation\RepeatBehavior.cs (1)
170public override bool Equals(Object value)
System\Windows\Media\Animation\TimelineClockCollection.cs (3)
230if (Object.ReferenceEquals(objA, objB)) 235else if ( Object.ReferenceEquals(objA, null) 236|| Object.ReferenceEquals(objB, null))
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
258if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (2)
136Object.ReferenceEquals(vTransform, Transform.Identity) 147Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
336Object.ReferenceEquals(vTransform, Transform.Identity) 347Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\CombinedGeometry.cs (1)
276Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\DrawingBrush.cs (2)
195Object.ReferenceEquals(vTransform, Transform.Identity) 206Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\DrawingCollection.cs (1)
272if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\DrawingGroup.cs (1)
565Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\EllipseGeometry.cs (1)
200Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
260if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\GeometryCollection.cs (1)
272if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\GeometryGroup.cs (1)
259Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
260if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\ImageBrush.cs (2)
195Object.ReferenceEquals(vTransform, Transform.Identity) 206Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\LineGeometry.cs (1)
178Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
261if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
260if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\RectangleGeometry.cs (1)
200Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\Generated\SolidColorBrush.cs (2)
157Object.ReferenceEquals(vTransform, Transform.Identity) 168Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
260if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\TransformCollection.cs (1)
272if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media\Generated\VisualBrush.cs (2)
229Object.ReferenceEquals(vTransform, Transform.Identity) 240Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\LinearGradientBrush.cs (2)
145Object.ReferenceEquals(vTransform, Transform.Identity) 156Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\PathGeometry.cs (1)
1016Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media\PixelFormat.cs (2)
128public override bool Equals(Object obj) 477public override bool Equals(Object obj)
System\Windows\Media\RadialGradientBrush.cs (2)
86Object.ReferenceEquals(vTransform, Transform.Identity) 97Object.ReferenceEquals(vRelativeTransform, Transform.Identity)
System\Windows\Media\RenderData.cs (3)
437public uint AddDependentResource(Object o) 543private FrugalStructList<Object> _dependentResources = new FrugalStructList<Object>();
System\Windows\Media\StreamGeometry.cs (1)
404Object.ReferenceEquals(vTransform, Transform.Identity)
System\Windows\Media3D\Generated\AmbientLight.cs (1)
133Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\DirectionalLight.cs (1)
152Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
256if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media3D\Generated\GeometryModel3D.cs (1)
320Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
268if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media3D\Generated\MatrixCamera.cs (1)
174Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
268if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media3D\Generated\Model3DGroup.cs (1)
233Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\OrthographicCamera.cs (1)
152Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\PerspectiveCamera.cs (1)
152Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\PointLight.cs (1)
133Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\SpotLight.cs (1)
196Object.ReferenceEquals(vTransform, Transform3D.Identity)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
268if (!Object.ReferenceEquals(_collection[ index ], value))
System\Windows\Media3D\ModelVisual3D.cs (1)
88void IAddChild.AddChild(Object value)
System\Windows\Media3D\Viewport2DVisual3D.cs (4)
314internal static void OnVisualChanged(Object sender, DependencyPropertyChangedEventArgs e) 568internal static void OnGeometryChanged(Object sender, DependencyPropertyChangedEventArgs e) 692internal static void OnMaterialPropertyChanged(Object sender, DependencyPropertyChangedEventArgs e) 748internal static void OnCacheModeChanged(Object sender, DependencyPropertyChangedEventArgs e)
PresentationFramework (485)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (8)
52internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 68internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 98public bool IsAnchorEqual(Object o) 142public Object AttachedAnchor { get { return _attachedAnchor; } } 149public Object ResolvedAnchor { get { return FullyAttachedAnchor; } } 162public Object FullyAttachedAnchor 311private Object _attachedAnchor; 314private Object _fullyAttachedAnchor;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (8)
81public override bool MergeSelections(Object anchor1, Object anchor2, out Object newAnchor) 96public override IList<DependencyObject> GetSelectedNodes(Object selection) 163public override UIElement GetParent(Object selection) 179public override Point GetAnchorPoint(Object selection) 195GenerateLocatorParts(Object selection, DependencyObject startNode) 264public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (11)
357public IList<ContentLocatorBase> GenerateLocators(Object selection) 409public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel) 543internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel) 551Object anchor = null; 656private IList<ContentLocatorBase> GenerateLocators(SubTreeProcessor processor, PathNode startNode, Object selection) 768private ContentLocatorBase GenerateLocatorGroup(PathNode node, Object selection) 901private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel) 908Object selection = null; 1165Object selection = selProcessor.ResolveLocatorPart(locatorPart, node, out attachmentLevel); 1346public Object AttachedAnchor; 1350public Object LastNodeMatched;
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
70public override bool Equals(Object obj)
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (8)
70public abstract bool MergeSelections(Object selection1, Object selection2, out Object newSelection); 80public abstract IList<DependencyObject> GetSelectedNodes(Object selection); 89public abstract UIElement GetParent(Object selection); 98public abstract Point GetAnchorPoint(Object selection); 112public abstract IList<ContentLocatorPart> GenerateLocatorParts(Object selection, DependencyObject startNode); 127public abstract Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (6)
76public static bool MergeSelections(Object anchor1, Object anchor2, out Object newAnchor) 113public static IList<DependencyObject> GetSelectedNodes(Object selection) 157public static UIElement GetParent(Object selection) 231public static Point GetAnchorPoint(Object selection)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (8)
78public override bool MergeSelections(Object anchor1, Object anchor2, out Object newAnchor) 92public override IList<DependencyObject> GetSelectedNodes(Object selection) 104public override UIElement GetParent(Object selection) 117public override Point GetAnchorPoint(Object selection) 135GenerateLocatorParts(Object selection, DependencyObject startNode) 197public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (8)
68public override bool MergeSelections(Object selection1, Object selection2, out Object newSelection) 82public override IList<DependencyObject> GetSelectedNodes(Object selection) 97public override UIElement GetParent(Object selection) 114public override Point GetAnchorPoint(Object selection) 135GenerateLocatorParts(Object selection, DependencyObject startNode) 177public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel)
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (8)
69public override bool MergeSelections(Object selection1, Object selection2, out Object newSelection) 86public override IList<DependencyObject> GetSelectedNodes(Object selection) 98public override UIElement GetParent(Object selection) 118public override Point GetAnchorPoint(Object selection) 145public override IList<ContentLocatorPart> GenerateLocatorParts(Object selection, DependencyObject startNode) 166public override Object ResolveLocatorPart(ContentLocatorPart locatorPart, DependencyObject startNode, out AttachmentLevel attachmentLevel)
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
211private bool ItemOwned(Object item) 222private void SetOwned(Object item, bool owned)
MS\Internal\Annotations\AttachedAnnotation.cs (2)
62Object AttachedAnchor { get; } 75Object FullyAttachedAnchor { get; }
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
725private void OnContainerGotFocus(Object sender, KeyboardFocusChangedEventArgs args)
MS\Internal\AppModel\AppSecurityManager.cs (2)
87bool isKnownScheme = (Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttp)) || 88(Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttps)) ||
MS\Internal\AppModel\IContentContainer.cs (2)
23void OnContentReady(ContentType contentType, Object content, Uri uri, Object navState);
MS\Internal\AppModel\INavigator.cs (5)
74Object Content 96bool Navigate(Uri source, Object extraData); 103bool Navigate(Object content); 115bool Navigate(Object content, Object extraData);
MS\Internal\AppModel\ResourcePart.cs (1)
188private readonly Object _globalLock = new Object();
MS\Internal\AppModel\ReturnEventSaver.cs (1)
106internal void _Attach(Object caller, PageFunctionBase child)
MS\Internal\Controls\ActiveXContainer.cs (4)
55int UnsafeNativeMethods.IOleContainer.ParseDisplayName(Object pbc, string pszDisplayName, int[] pchEaten, Object[] ppmkOut) 80Object[] temp = new Object[1];
MS\Internal\Controls\ActiveXSite.cs (2)
162int UnsafeNativeMethods.IOleClientSite.GetMoniker(int dwAssign, int dwWhichMoniker, out Object moniker) 444Object nativeObject = this.Host.ActiveXInstance;
MS\Internal\Controls\EnumUnknown.cs (3)
26private Object[] arr; 30internal EnumUnknown(Object[] arr) 37private EnumUnknown(Object[] arr, int loc)
MS\Internal\Controls\ModelTreeEnumerator.cs (4)
159return Object.ReferenceEquals(Content, _owner.Content); 217return Object.ReferenceEquals(header, _owner.Header) && 218Object.ReferenceEquals(_content, _owner.Content); 273return Object.ReferenceEquals(header, _owner.Header);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1376private void OnRequestBringIntoView(Object sender, RequestBringIntoViewEventArgs e)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
296private void OnPastingDataObject(Object sender, DataObjectPastingEventArgs e)
MS\Internal\Data\BindingWorker.cs (1)
132internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
MS\Internal\Data\ClrBindingWorker.cs (1)
70if (targetType == typeof(Object))
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
258if (Object.Equals(name, child.Group.Name))
MS\Internal\Data\IndexerPropertyInfo.cs (1)
74get { return typeof(Object); }
MS\Internal\Data\PropertyPathWorker.cs (4)
1232sourceType = typeof(Object); 1272if (!Object.Equals(info, svs.info)) 1287if (!Object.Equals(args[i], svs.args[i])) 1368Type paramType = (aryPI != null) ? aryPI[i].ParameterType : typeof(Object);
MS\Internal\Data\ValueTable.cs (3)
253if (Object.Equals(item, key.Item)) 346Object.Equals(item, that.Item) && 347Object.Equals(descriptor, that.PropertyDescriptor);
MS\Internal\DataStreams.cs (2)
366internal void Save(Object root) 379internal void Load(Object root)
MS\Internal\Documents\FixedDocumentPaginator.cs (1)
95public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Documents\FixedDocumentSequencePaginator.cs (1)
95public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
412public override ContentPosition GetObjectPosition(Object o)
MS\Internal\Generated\AvTraceMessages.cs (6)
1365static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 1493static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 1733static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 2029static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 2115static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters ) 2277static public void TraceActivityItem( AvTraceDetails traceDetails, params Object[] parameters )
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
182internal static IntPtr MarshalPropVariant(Object obj)
MS\Internal\IO\Packaging\ManagedFilter.cs (1)
425Object GetValue();
MS\Internal\IO\Packaging\XamlFilter.cs (1)
306public Object GetValue()
MS\Internal\PtsHost\PtsContext.cs (2)
123Object obj = _unmanagedHandles[index].Obj; 140Object objDbg = _unmanagedHandles[i].Obj;
MS\Internal\WeakHashtable.cs (1)
238if (tKey == typeof(Object) || tKey.IsValueType)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (3)
48var obj = MarshalInspectable.FromAbi(thisPtr); 266var obj = MarshalInspectable.FromAbi(thisPtr); 371var obj = MarshalInspectable.FromAbi(thisPtr);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (1)
143var obj = MarshalInspectable.FromAbi(thisPtr);
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (2)
24var _this = FindObject<object>(pThis); 131foreach (var obj in objects)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
443foreach (var marshaler in _marshalers) 507var abi_element = Marshal.PtrToStructure((IntPtr)data, HelperType); 525var abi_element = Marshal.PtrToStructure((IntPtr)data, HelperType); 601var abi_element = Marshal.PtrToStructure((IntPtr)data, HelperType);
System\Windows\Annotations\AnchorInfo.cs (1)
44Object ResolvedAnchor { get;}
System\Windows\Annotations\Annotation.cs (2)
845foreach (Object author in changedItems) 857private void FireAuthorEvent(Object author, AnnotationAction action)
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (4)
25public delegate void AnnotationAuthorChangedEventHandler(Object sender, AnnotationAuthorChangedEventArgs e); 50public AnnotationAuthorChangedEventArgs(Annotation annotation, AnnotationAction action, Object author) 90public Object Author 127private Object _author;
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
25public delegate void AnnotationResourceChangedEventHandler(Object sender, AnnotationResourceChangedEventArgs e);
System\Windows\Annotations\AnnotationService.cs (3)
1071DescendentsWalker<Object> walker = new DescendentsWalker<Object>(TreeWalkPriority.VisualTree, VerifyNoServiceOnNode, null); 1621Object attachedAnchor = null;
System\Windows\Annotations\LocatorGroup.cs (1)
71public override Object Clone()
System\Windows\Annotations\LocatorPart.cs (1)
350private void OnPropertyChanged(Object sender, System.ComponentModel.PropertyChangedEventArgs e)
System\Windows\Annotations\LocatorPartList.cs (1)
123public override Object Clone()
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
395private readonly Object lockObject = new Object();
System\Windows\Application.cs (4)
70public delegate void StartupEventHandler(Object sender, StartupEventArgs e); 75public delegate void ExitEventHandler(Object sender, ExitEventArgs e); 80public delegate void SessionEndingCancelEventHandler(Object sender, SessionEndingCancelEventArgs e); 386public static void LoadComponent(Object component, Uri resourceLocator)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
707System.Diagnostics.Debug.Assert(Object.Equals(item, Item), "ItemPeer reuse for an unequal item is not supported"); 711if (!Object.ReferenceEquals(item, iwr.Target))
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
616if (Object.Equals(item, pair.Key)) 676if (Object.Equals(item, pair.Key))
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
105foreach (var item in parent.Items) 137foreach (var item in parent.Items)
System\Windows\Controls\AccessText.cs (1)
41void IAddChild.AddChild(Object value)
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
60void IAddChild.AddChild (Object value)
System\Windows\Controls\ContentPresenter.cs (2)
222Object.ReferenceEquals(typeof(String), newDataType) && 653else if (type == typeof(Object))
System\Windows\Controls\DataGridHelper.cs (1)
387var coercedValue = baseValue;
System\Windows\Controls\DataGridLength.cs (2)
183/// <see cref="Object.GetHashCode"/> 185/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Controls\Decorator.cs (1)
67void IAddChild.AddChild (Object value)
System\Windows\Controls\FlowDocumentReader.cs (1)
1952void IAddChild.AddChild(Object value)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1849void IAddChild.AddChild(Object value)
System\Windows\Controls\Frame.cs (5)
565private void _OnBPReady(Object o, BPReadyEventArgs e) 891public bool Navigate(Uri source, Object extraData) 902public bool Navigate(Object content) 921public bool Navigate(Object content, Object extraData)
System\Windows\Controls\Grid.cs (2)
3927public Object Current 3958private Object _currentChild;
System\Windows\Controls\InkCanvas.cs (1)
1908void IAddChild.AddChild(Object value)
System\Windows\Controls\ItemsControl.cs (4)
1259void IAddChild.AddChild(Object value) 3561return Object.Equals(o1, o2); 3923return Object.Equals(info1, info2); 3928return !Object.Equals(info1, info2);
System\Windows\Controls\Page.cs (2)
84void IAddChild.AddChild(Object obj) 144public Object Content
System\Windows\Controls\Panel.cs (1)
87void IAddChild.AddChild (Object value)
System\Windows\Controls\PasswordBox.cs (1)
1145private void OnNavigating(Object sender, NavigatingCancelEventArgs e)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1731void IAddChild.AddChild(Object value)
System\Windows\Controls\Primitives\HierarchicalVirtualizationConstraints.cs (2)
125/// <see cref="Object.GetHashCode"/> 127/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Controls\Primitives\HierarchicalVirtualizationHeaderDesiredSizes.cs (2)
108/// <see cref="Object.GetHashCode"/> 110/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Controls\Primitives\HierarchicalVirtualizationItemDesiredSizes.cs (2)
199/// <see cref="Object.GetHashCode"/> 201/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Controls\Primitives\Popup.cs (2)
1289void IAddChild.AddChild(Object value) 1405return Object.ReferenceEquals(Content, _popup.Child);
System\Windows\Controls\Primitives\Selector.cs (4)
653return Object.Equals(tempValue, itemValue); 1143!Object.Equals(SelectedValue, InternalSelectedValue)) 1765if (!Object.Equals(SelectedValue, desiredSelectedValue)) 2971if (Object.ReferenceEquals(x, y))
System\Windows\Controls\PrintDialog.cs (1)
649Object sender,
System\Windows\Controls\RichTextBox.cs (1)
152void IAddChild.AddChild(Object value)
System\Windows\Controls\SoundPlayerAction.cs (4)
206private Object OnLoadStreamCompleted(Object asyncResultArg) 235private void OnSoundPlayerLoadCompleted(Object sender, AsyncCompletedEventArgs e) 237if (Object.ReferenceEquals(m_player, sender))
System\Windows\Controls\TextBlock.cs (1)
132void IAddChild.AddChild(Object value)
System\Windows\Controls\TextBox.cs (2)
131void IAddChild.AddChild(Object value) 1590if (Object.Equals(_newTextValue, newText))
System\Windows\Controls\ToolBarTray.cs (1)
274void IAddChild.AddChild(Object value)
System\Windows\Controls\Validation.cs (1)
205if (!Object.Equals(oldValue, value))
System\Windows\Controls\ValidationResult.cs (2)
72return Object.Equals(left, right); 83return !Object.Equals(left, right);
System\Windows\Controls\ViewPort3D.cs (1)
229void IAddChild.AddChild(Object value)
System\Windows\Controls\VirtualizationCacheLength.cs (2)
147/// <see cref="Object.GetHashCode"/> 149/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Controls\VirtualizingStackPanel.cs (2)
8064result = !Object.Equals(oldValue, value); 12202if (Object.Equals(parentItem, oldsti.ParentItem))
System\Windows\Data\BindingBase.cs (1)
535internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\BindingExpressionBase.cs (4)
2582targetType = typeof(Object); 2611targetType = typeof(Object); 2684targetType = typeof(Object); 2994internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); }
System\Windows\Data\CollectionView.cs (1)
1542if (type == typeof(Object))
System\Windows\Data\MultiBinding.cs (1)
56void IAddChild.AddChild(Object value)
System\Windows\Data\PriorityBinding.cs (1)
52void IAddChild.AddChild(Object value)
System\Windows\Data\PropertyGroupDescription.cs (1)
240return Object.Equals(groupName, itemName);
System\Windows\DataTrigger.cs (1)
119void IAddChild.AddChild (Object value)
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
308foreach (Object o in list) 376if (!Object.Equals(result.Requester.ResourceKey, key)) 423Debug.Assert(Object.Equals(result.Requester, requester), "Reverting a request for the wrong requester"); 549public Object Key { get; set; }
System\Windows\Diagnostics\StaticResourceResolvedEventArgs.cs (5)
18Object targetObject, 19Object targetProperty, 21Object key) 29public Object TargetObject { get; private set; } 30public Object TargetProperty { get; private set; }
System\Windows\Documents\DocumentSequence.cs (7)
103void IAddChild.AddChild(Object value) 373internal ContentPosition GetObjectPosition(Object o) 671_asyncOps = new Dictionary<Object,GetPageAsyncRequest>(); 907IEnumerator<KeyValuePair<Object, GetPageAsyncRequest>> ienum = _asyncOps.GetEnumerator(); 926foreach (Object userState in notificationList) 961private IDictionary<Object, GetPageAsyncRequest> _asyncOps; // pending request from client code 1109/// <see cref="System.Object.ToString" />
System\Windows\Documents\FixedDocument.cs (6)
137void IAddChild.AddChild(Object value) 447internal ContentPosition GetObjectPosition(Object o) 840_asyncOps = new Dictionary<Object, GetPageAsyncRequest>(); 1226IEnumerator<KeyValuePair<Object, GetPageAsyncRequest>> ienum = _asyncOps.GetEnumerator(); 1257foreach (Object userState in completedRequests) 1296private IDictionary<Object, GetPageAsyncRequest> _asyncOps;
System\Windows\Documents\FixedElement.cs (3)
313private void ClickHyperlink(Object sender, RequestNavigateEventArgs args) 396return typeof(Object); 428return typeof(Object);
System\Windows\Documents\FixedPage.cs (2)
186void IAddChild.AddChild (Object value) 604private static object CoerceFlowDirection(DependencyObject page, Object flowDirection)
System\Windows\Documents\FixedTextContainer.cs (1)
594internal void OnNewFlowElement(FixedElement parentElement, FixedElement.ElementType elementType, FlowPosition pStart, FlowPosition pEnd, Object source, int pageIndex)
System\Windows\Documents\FlowDocument.cs (2)
882internal ContentPosition GetObjectPosition(Object element) 1636void IAddChild.AddChild(Object value)
System\Windows\Documents\FlowNode.cs (1)
120if (Object.ReferenceEquals(this, fp))
System\Windows\Documents\FlowPosition.cs (1)
252Object obj = ((FixedElement)flow._flowNode.Cookie).GetObject();
System\Windows\Documents\PageContent.cs (1)
181void IAddChild.AddChild(Object value)
System\Windows\Documents\Serialization\SerializerWriterEventHandlers.cs (6)
132Object state, 151Object state): base(progressPercentage, state) 238Object sender, 249Object sender, 260Object sender, 271Object sender,
System\Windows\Documents\Table.cs (4)
440public Object Clone() 456Object currentChild = null; 489public Object Current 526private Object _currentChild;
System\Windows\Documents\TextRangeEdit.cs (2)
821if (!Object.Equals(currentValue, value)) 901if (!Object.Equals(currentValue, newValue))
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (1)
281Object obj = GetValue(ecReadOnly, property, range);
System\Windows\Documents\TextServicesHost.cs (2)
126Object var; 158Object var;
System\Windows\Documents\TextServicesPropertyRanges.cs (2)
146protected static Object GetValue(int ecReadOnly, UnsafeNativeMethods.ITfProperty property, UnsafeNativeMethods.ITfRange range) 151Object obj;
System\Windows\Documents\TextStore.cs (2)
4292public int Compare( Object x, Object y )
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
399private readonly Object _element;
System\Windows\FigureLength.cs (2)
207/// <see cref="Object.GetHashCode"/> 209/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\FrameworkElement.cs (1)
1461if (type == typeof(Object)) // don't search for Object - perf
System\Windows\FrameworkTemplate.cs (2)
307public Object FindName(string name, FrameworkElement templatedParent) 1167private void InvalidatePropertiesOnTemplate(DependencyObject container, Object currentObject)
System\Windows\GridLength.cs (2)
176/// <see cref="Object.GetHashCode"/> 178/// <returns><see cref="Object.GetHashCode"/></returns>
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (3)
50public List<Object> StaticResources 56_resources = new List<Object>(); 95private List<Object> _resources;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
522case 426: t = () => typeof(Object); break;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1891Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId];
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
632Object property = _bamlProperty[propertyId]; 668private readonly List<Object> _bamlProperty = new List<Object>();
System\Windows\Markup\Baml2006\Baml6ConstructorInfo.cs (3)
13public Baml6ConstructorInfo(List<Type> types, Func<Object[], object> ctor) 20Func<Object[], object> _constructor; 23public Func<Object[], object> Constructor { get { return _constructor; } }
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (59)
1847bamlMember.TypeConverterType = typeof(System.Object); 1950bamlMember.TypeConverterType = typeof(System.Object); 2035bamlMember.TypeConverterType = typeof(System.Object); 2806bamlMember.TypeConverterType = typeof(System.Object); 2842bamlMember.TypeConverterType = typeof(System.Object); 2910bamlMember.TypeConverterType = typeof(System.Object); 3139bamlMember.TypeConverterType = typeof(System.Object); 4189bamlMember.TypeConverterType = typeof(System.Object); 4207bamlMember.TypeConverterType = typeof(System.Object); 4276bamlMember.TypeConverterType = typeof(System.Object); 4328bamlMember.TypeConverterType = typeof(System.Object); 4515bamlMember.TypeConverterType = typeof(System.Object); 4702bamlMember.TypeConverterType = typeof(System.Object); 4720bamlMember.TypeConverterType = typeof(System.Object); 4738bamlMember.TypeConverterType = typeof(System.Object); 4756bamlMember.TypeConverterType = typeof(System.Object); 4996bamlMember.TypeConverterType = typeof(System.Object); 5064bamlMember.TypeConverterType = typeof(System.Object); 5116bamlMember.TypeConverterType = typeof(System.Object); 5304bamlMember.TypeConverterType = typeof(System.Object); 5456bamlMember.TypeConverterType = typeof(System.Object); 5491bamlMember.TypeConverterType = typeof(System.Object); 5577bamlMember.TypeConverterType = typeof(System.Object); 5714bamlMember.TypeConverterType = typeof(System.Object); 5799bamlMember.TypeConverterType = typeof(System.Object); 5936bamlMember.TypeConverterType = typeof(System.Object); 6022bamlMember.TypeConverterType = typeof(System.Object); 6125bamlMember.TypeConverterType = typeof(System.Object); 6245bamlMember.TypeConverterType = typeof(System.Object); 6325typeof(System.Object), // type 6330bamlMember.TypeConverterType = typeof(System.Object); 6505typeof(System.Object), // type 6510bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Setter)target).Value = (System.Object)value; }; 6560typeof(System.Object), // type 6565bamlMember.TypeConverterType = typeof(System.Object); 6566bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ComponentResourceKey)target).ResourceId = (System.Object)value; }; 6615typeof(System.Object), // type 6620bamlMember.TypeConverterType = typeof(System.Object); 6621bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).Source = (System.Object)value; }; 6758typeof(System.Object), // type 6763bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Trigger)target).Value = (System.Object)value; }; 6937typeof(System.Object), // type 6942bamlMember.TypeConverterType = typeof(System.Object); 6943bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.MultiBinding)target).ConverterParameter = (System.Object)value; }; 7027typeof(System.Object), // type 7032bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Condition)target).Value = (System.Object)value; }; 7062typeof(System.Object), // type 7067bamlMember.TypeConverterType = typeof(System.Object); 7068bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.BindingBase)target).FallbackValue = (System.Object)value; }; 7474typeof(System.Object), // type 7479bamlMember.TypeConverterType = typeof(System.Object); 7480bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTrigger)target).Value = (System.Object)value; }; 7693bamlMember.TypeConverterType = typeof(System.Object); 8063typeof(System.Object), // type 8068bamlMember.TypeConverterType = typeof(System.Object); 8070bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; }; 8308typeof(System.Object), // type 8313bamlMember.TypeConverterType = typeof(System.Object); 8314bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).ConverterParameter = (System.Object)value; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (13)
2699new List<Type>() { typeof(System.Object) }, 2703(System.Object)arguments[0]); 2829new List<Type>() { typeof(System.Type), typeof(System.Object) }, 2834(System.Object)arguments[1]); 3169new List<Type>() { typeof(System.Object) }, 3173(System.Object)arguments[0]); 4037new List<Type>() { typeof(System.Object) }, 4041(System.Object)arguments[0]); 7121typeof(System.Object), 9447new List<Type>() { typeof(System.Object) }, 9451(System.Object)arguments[0]); 11834new List<Type>() { typeof(System.Object) }, 11838(System.Object)arguments[0]);
System\Windows\Markup\BamlMapTable.cs (1)
1675internal Object GetHashTableData(object key)
System\Windows\Markup\BamlRecordReader.cs (5)
1607paramInfo.ParameterType != typeof(Object) && 2520private bool SetPropertyValue( Object o, WpfPropertyDefinition propertyDefinition, object value ) 3969Object propValue = null; 5114Object currentParent = GetCurrentObjectData(); 5771Object currentParent = _reader.GetCurrentObjectData();
System\Windows\Markup\KnownTypes.cs (1)
5980case KnownElements.Object: t = typeof(System.Object); break;
System\Windows\Markup\MarkupExtensionParser.cs (1)
1656out Object dynamicObject, // resolved object.
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
523ElementProperty.CheckForMarkupExtension(typeof(Object), entry.Value, Context, false), Manager); 538ElementProperty.CheckForMarkupExtension(typeof(Object), o, Context, false), Manager); 554ElementProperty.CheckForMarkupExtension(typeof(Object), value, Context, true), Manager); 565ElementProperty.CheckForMarkupExtension(typeof(Object), value, Context, true), Manager);
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1001Object instance = firstItem.Instance; 1572Object[] customAttrs = assembly.GetCustomAttributes(typeof(XmlnsDefinitionAttribute), true);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
108throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 170throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 175throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName));
System\Windows\Markup\WpfXamlLoader.cs (3)
30bool skipJournaledProperties, Object rootObject, XamlObjectWriterSettings parentSettings, Uri baseUri) 38Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) 72bool skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
System\Windows\Markup\XamlTypeMapper.cs (2)
503internal Object ParseProperty( 531Object obj = null; // Object to return
System\Windows\MultiDataTrigger.cs (1)
69void IAddChild.AddChild (Object value)
System\Windows\MultiTrigger.cs (1)
64void IAddChild.AddChild (Object value)
System\Windows\Navigation\NavigatingCancelEventArgs.cs (6)
35Uri uri, Object content, CustomContentState customContentState, 36Object extraData, NavigationMode navigationMode, 65public Object Content 93public Object ExtraData 162private Object _content; 164private Object _extraData;
System\Windows\Navigation\NavigationEventArgs.cs (6)
32internal NavigationEventArgs(Uri uri, Object content, Object extraData, WebResponse response, object Navigator, bool isNavigationInitiator) 58public Object Content 89public Object ExtraData 120private Object _content; 121private Object _extraData;
System\Windows\Navigation\NavigationFailedEventArgs.cs (5)
33internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) 57public Object ExtraData 125Object _extraData; 126Object _navigator;
System\Windows\Navigation\NavigationService.cs (40)
788private bool UnhookOldTree(Object oldTree) 877private bool HookupNewTree(Object newTree, NavigateInfo navInfo, Uri newUri) 999private bool OnBeforeSwitchContent(Object newBP, NavigateInfo navInfo, Uri newUri) 1122void IContentContainer.OnContentReady(ContentType contentType, Object bp, Uri bpu, Object navState) 1410public Object Content 1497public bool Navigate(Object root) 1506public bool Navigate(Uri source, Object navigationState) 1515public bool Navigate(Uri source, Object navigationState, bool sandboxExternalContent) 1525internal bool Navigate(Uri source, Object navigationState, bool sandboxExternalContent, bool navigateOnSourceChanged) 1644public bool Navigate(Object root, Object navigationState) 2040private bool FireNavigating(Uri source, Object bp, Object navState, WebRequest request) 2109private bool HandleNavigating(Uri source, Object content, Object navState, WebRequest newRequest, bool navigateOnSourceChanged) 2664internal void DoNavigate(Uri source, NavigationMode f, Object navState) 2909private void GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState) 2945Object o = MimeObjectFactory.GetObjectAndCloseStreamCore(bindStream, contentType, destinationUri, canUseTopLevelBrowserForHTMLRendering, sandBoxContent, true /*allowAsync*/, IsJournalNavigation(navigateInfo), out _asyncObjectConverter, IsUnsafe); 3072internal void DoNavigate(Object bp, NavigationMode navFlags, Object navState) 3677private void SetupPageFunctionHandlers(Object bp) 4155public delegate void NavigatingCancelEventHandler(Object sender, NavigatingCancelEventArgs e); 4160public delegate void NavigationProgressEventHandler(Object sender, NavigationProgressEventArgs e); 4167public delegate void NavigationFailedEventHandler(Object sender, NavigationFailedEventArgs e); 4172public delegate void NavigatedEventHandler(Object sender, NavigationEventArgs e); 4177public delegate void LoadCompletedEventHandler(Object sender, NavigationEventArgs e); 4182public delegate void NavigationStoppedEventHandler(Object sender, NavigationEventArgs e); 4195internal delegate void BPReadyEventHandler(Object sender, BPReadyEventArgs e); 4205internal RequestState(WebRequest request, Uri source, Object navState, Dispatcher callbackDispatcher) 4229internal Object NavState 4247private Object _navState; 4262internal BPReadyEventArgs(Object content, Uri uri) 4272internal Object Content 4288Object _content; 4394internal NavigateQueueItem(Uri source, object content, NavigationMode mode, Object navState, NavigationService nc) 4468Object _navState; 4491internal void DisposeElement(Object node) 4529internal DisposeTreeQueueItem(Object node) 4535private Object _root;
System\Windows\Navigation\NavigationWindow.cs (5)
276public bool Navigate(Uri source, Object extraData) 290public bool Navigate(Object content) 309public bool Navigate(Object content, Object extraData) 1007private void OnBPReady(Object sender, BPReadyEventArgs e)
System\Windows\Navigation\PageFunction.cs (1)
218internal Object O;
System\Windows\ResourceDictionary.cs (9)
999if (!Object.Equals(_baseDictionary[key], value)) 1638foreach (Object o in _ownerFEs) 1658foreach (Object o in _ownerFCEs) 1678foreach (Object o in _ownerApps) 1801foreach (Object o in _weakDeferredResourceReferences) 1804if (deferredResourceReference != null && (resourceKey == null || Object.Equals(resourceKey, deferredResourceReference.Key))) 2044foreach (Object o in _ownerFEs) 2056foreach (Object o in _ownerFCEs) 2068foreach (Object o in _ownerApps)
System\Windows\ResourcesChangeInfo.cs (1)
234if (Object.Equals(_key, key))
System\Windows\Shapes\Shape.cs (2)
79if (Object.ReferenceEquals(geometry, _renderedGeometry)) 742if (Object.ReferenceEquals(_renderedGeometry, currentValue))
System\Windows\Style.cs (1)
406void IAddChild.AddChild (Object value)
System\Windows\StyleHelper.cs (3)
5386internal static Object FindNameInTemplateContent( 5877return Object.Equals(state, referenceValue); 5881return !Object.Equals(state, referenceValue);
System\Windows\SystemResources.cs (1)
1251private static object InvalidateTreeResources(Object args)
System\Windows\TemplateBindingExtension.cs (1)
26[MarkupExtensionReturnType(typeof(Object))]
System\Windows\TemplateContent.cs (6)
1419private Object _targetObject; 1420private Object _targetProperty; 1510public void SetData(Object targetObject, Object targetProperty) 1520Object IProvideValueTarget.TargetObject { get { return _targetObject; } } 1521Object IProvideValueTarget.TargetProperty { get { return _targetProperty; } }
System\Windows\TemplateKey.cs (2)
112Object.Equals(_dataType, key._dataType); 168else if (typeof(Object).Equals(dataType))
System\Windows\Trigger.cs (1)
156void IAddChild.AddChild (Object value)
System\Windows\WindowCollection.cs (1)
131public Object SyncRoot
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
44internal override IntPtr GetHandleFromMetafile(Object data) 59internal override Object GetMetafileFromHemf(IntPtr hMetafile)
PresentationUI (4)
MS\Internal\Documents\Application\DocumentManager.cs (1)
233internal static void OnModify(Object sender, EventArgs args)
MS\Internal\Documents\Application\StreamProxy.cs (2)
229/// <see cref="System.Object"/> 237/// <see cref="System.Object"/>
MS\Internal\Documents\RightsManagementManager.cs (1)
1154private void RMEnrollThreadProc(Object stateInfo)
ReachFramework (141)
AlphaFlattener\MetroDevice.cs (1)
759static public void TestingHook(Object obj)
AlphaFlattener\SegmentTree.cs (2)
32int IComparer.Compare(Object x, Object y)
Packaging\XpsInterleavingPolicy.cs (2)
493if( Object.ReferenceEquals(node, n.Node)) 506if (Object.ReferenceEquals(node, n.Node))
Packaging\XpsManager.cs (1)
1340internal static Object _globalLock;
Serialization\DrawingContextFlattener.cs (1)
239if (! Object.ReferenceEquals(b, pen.Brush))
Serialization\Manager\MetroSerializationManager.cs (10)
76Object serializedObject 120Object serializedObject 158Object serializedObject 296Object serializableObject, 307Object serializableObject, 510Object serializedObject 554Object serializableObject 622Object serializableObject 702Object serializableObject 761Object serializableObject
Serialization\Manager\NGCSerializationManager.cs (5)
70Object serializedObject 207Object serializedObject 432Object o, 664Object serializedObject 697Object serializedObject
Serialization\Manager\NGCSerializationManagerAsync.cs (11)
79Object serializedObject 146Object 148Object arg 166Object objectOnStack = _operationStack.Pop(); 225Object 227Object arg 289Object objectOnStack = _operationStack.Pop(); 446Object serializedObject 678Object o, 934Object serializedObject 995Object serializedObject
Serialization\Manager\NGCSerializer.cs (10)
92Object serializedObject 159Object serializedObject 238Object serializedObject 318Object serializedObject 392Object serializedObject 478Object serializedObject 565Object serializedObject 691Object serializedObject 820Object serializedObject 910Object serializedObject
Serialization\Manager\NGCSerializerAsync.cs (10)
94Object serializedObject 174Object serializedObject 329Object serializedObject, 550Object serializedObject 660Object serializedObject 812Object serializedObject 926Object serializedObject 1029Object serializedObject 1123Object serializedObject 1237Object serializedObject
Serialization\Manager\NGCUIElementCollectionSerializerAsync.cs (1)
110Object serializedObject
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
49Object serializedObject
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
56Object serializedObject
Serialization\Manager\ReachDocumentSequenceSerializer.cs (2)
179Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 180Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (2)
217Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 218Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachFixedDocumentSerializer.cs (3)
67Object serializedObject 259Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 260Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (3)
96Object serializedObject 299Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 300Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachFixedPageSerializer.cs (3)
72Object serializedObject 332Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 333Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
109Object serializedObject 304Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 305Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (1)
47Object serializedObject
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (1)
84Object serializedObject
Serialization\Manager\ReachSerializableProperties.cs (2)
874Object 879Object dependencyProperty = null;
Serialization\Manager\ReachSerializationCacheItems.cs (2)
453Object dependencyProperty, 621Object
Serialization\Manager\ReachSerializationUtils.cs (2)
287Object serializedObject 729Object _serializedObject;
Serialization\Manager\ReachSerializer.cs (2)
80Object serializedObject 268Object serializedObject,
Serialization\Manager\ReachSerializerAsync.cs (3)
107Object serializedObject 187Object serializedObject 342Object serializedObject,
Serialization\Manager\ReachUIElementCollectionSerializer.cs (1)
71Object serializedObject
Serialization\Manager\ReachUIElementCollectionSerializerAsync.cs (1)
111Object serializedObject
Serialization\Manager\XpsDocumentEvent.cs (2)
119Object sender, 194Object sender,
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
49Object serializedObject
Serialization\Manager\XpsOMDocumentPageSerializerAsync.cs (1)
79Object serializedObject
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (2)
47Object serializedObject 57Object serializedObject
Serialization\Manager\XpsOMDocumentPaginatorSerializerAsync.cs (1)
78Object serializedObject
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (1)
52Object serializedObject
Serialization\Manager\XpsOMFixedDocumentSerializerAsync.cs (1)
71Object serializedObject
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
54Object serializedObject 290Object targetObjectContainingProperty = serializablePropertyContext.TargetObject; 291Object propertyValue = serializablePropertyContext.Value;
Serialization\Manager\XpsOMFixedPageSerializerAsync.cs (1)
88Object serializedObject
Serialization\Manager\XpsOMHierarchySimulator.cs (1)
24Object serializedObject
Serialization\Manager\XpsOMSerializationManager.cs (3)
216Object serializedObject 277Object serializableObject, 288Object serializableObject,
Serialization\Manager\XpsOMSerializationManagerAsync.cs (7)
56Object serializedObject 119Object 121Object arg 130Object objectOnStack = _operationStack.Pop(); 175Object 177Object arg 227Object objectOnStack = _operationStack.Pop();
Serialization\Manager\XpsSerializationManager.cs (9)
100Object serializedObject 289Object serializedObject 377Object serializedObject 741Object serializableObject, 752Object serializableObject, 795Object serializableObject, 806Object serializableObject, 1059Object serializedObject 1069Object serializedObject,
Serialization\Manager\XpsSerializationManagerAsync.cs (13)
76Object serializedObject 135Object 137Object arg 155Object objectOnStack = _operationStack.Pop(); 213Object 215Object arg 274Object objectOnStack = _operationStack.Pop(); 603Object serializedObject 621Object 634Object _serializedObject; 882Object serializedObject 900Object 911Object _serializedObject;
Serialization\Manager\XpsTokenContext.cs (5)
53Object targetObject, 54Object objectValue 96Object serviceObject = null; 192Object targetObject; 195Object objectValue;
Serialization\VisualSerializer.cs (1)
647Object obj = converter.ConvertTo(_context, null, imageSource, typeof(Uri));
Serialization\VisualTreeFlattener.cs (2)
177public override void SaveAsXaml(Object serializedObject) 240internal override TypeConverter GetTypeConverter(Object serializedObject)
Roslyn.Test.PdbUtilities (5)
Reader\Token2SourceLineExporter.cs (5)
381internal Object val; 438internal void Add(int key, Object value) 443internal Object this[int key] 525private void Insert(int key, Object nvalue, bool add) 629private void putEntry(bucket[] newBuckets, int key, Object nvalue, int hashcode)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Panels\WorkspacePanel.xaml.cs (1)
79var gate = new object();
Roslyn.VisualStudio.Next.UnitTests (13)
Options\VisualStudioSettingsOptionPersisterTests.cs (4)
125Assert.True(persister.TryFetch(optionKey, "TextEditor.CSharp.Specific.csharp_new_line_before_open_brace", out var value)); 179var defaultValue = OptionsTestHelpers.GetDifferentValue(optionType, optionValue); 238var defaultArray = Activator.CreateInstance(type); 239var serializedValue = (object?)null;
Remote\SerializationValidator.cs (3)
151foreach (var checksum in projectObject.ProjectReferences) 158foreach (var checksum in projectObject.MetadataReferences) 165foreach (var checksum in projectObject.AnalyzerReferences)
Remote\SnapshotSerializationTests.cs (1)
690var recovered = serializer.Deserialize(asset.Kind, reader, CancellationToken.None);
Services\AssetProviderTests.cs (1)
214var deserialized = deserializerService.Deserialize(asset.GetWellKnownSynchronizationKind(), reader, cancellationToken);
Services\SolutionAssetCacheTests.cs (4)
35var data = new object(); 49var data = new object(); 82var data1 = new object(); 85var data2 = new object();
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
42foreach (var metadata in endpoint.Metadata)
RoutingWebSite (1)
EndsWithStringRouteConstraint.cs (1)
19var value = values[routeKey];
Shared (1)
Data.Validation\LengthAttribute.cs (1)
125foreach (var item in e)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error))
System.CodeDom (2)
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
1556foreach (var current in c.Members) 1718foreach (var current in c.Members)
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (2)
52var instance = Activator.CreateInstance(constructed, args); 66var instance = Activator.CreateInstance(constructed, args);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
254var cachedInstance = _cachedInstance;
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
316var value = (item.Item2 != null) ? item.Item2(type) : null;
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
779foreach (var component in components!)
System.Composition.Convention (3)
System\Composition\Convention\ExportConventionBuilder.cs (1)
160var value = (item.Item2 != null) ? item.Item2(type) : null;
System\Composition\Convention\ImportConventionBuilder.cs (1)
181var value = (item.Item2 != null) ? item.Item2(type) : null;
System\Composition\Convention\PartConventionBuilder.cs (1)
556var value = (item.Item2 != null) ? item.Item2(type) : null;
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CompositionOperation.cs (1)
44var result = compositionRootActivator(outermostLifetimeContext, operation);
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
233foreach (var ev in enumerableValue)
System.Composition.TypedParts (4)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
60var psn = prev(c, o);
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
108var i = activator(c, o);
System\Composition\TypedParts\ContractHelpers.cs (1)
36foreach (var attr in attributes)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
104foreach (var attribute in appliedAttributes)
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
54return FastCreate<Object>(target, pi); 98return FastCreate<T0, Object>(target, pi); 140return new FuncCallInstruction<T0, T1, Object>(target);
System.Net.Http (2)
System\Net\Http\Headers\HttpHeaders.cs (2)
434var parsedValue = info.ParsedAndInvalidValues; 512var parsedValue = info.ParsedAndInvalidValues;
System.Net.Primitives (1)
System\Net\CookieContainer.cs (1)
534foreach (var key in removePathList)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1680var settings = typeof(SocketsHttpHandler).GetField("_settings", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(handler);
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\AccessorBuilder.cs (1)
85var value = fieldInfo.GetValue(obj);
System\Runtime\Serialization\ReflectionReader.cs (3)
232var memberValue = ReflectionGetMemberValue(obj, dataMember); 239var value = ReflectionReadValue(xmlReader, context, dataMember, classContract.XmlName.Namespace); 484var newArray = ci.Invoke(s_arrayConstructorArguments);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
19using ExtensionDataObject = System.Object;
System.Private.Xml (7)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (5)
629var result = delegateCacheForType[memberName]; 1475var memberValue = GetTarget(ids[fixupIndex]); 1534foreach (var item in enumerableItems) 1706foreach (var v in valueList) 1823foreach (var m in _mapping.Scope!.TypeMappings)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
367foreach (var e in enumerable) 677foreach (var m in _mapping.Scope!.TypeMappings)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
402[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Object))]
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
331foreach (var param in parameters)
System.ServiceModel.Federation (1)
System\IdentityModel\Tokens\Saml2AssertionKeyIdentifierClause.cs (1)
61/// Returns a <see cref="string"/> that represents the current <see cref="Object"/>.
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
14foreach (var protocol in Enum.GetValues(typeof(SslProtocols)))
System.ServiceModel.NetTcp (2)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
71var continuationState = UserToken;
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
14foreach (var protocol in Enum.GetValues(typeof(SslProtocols)))
System.ServiceModel.Primitives (12)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
107private Object ThisLock { get; } = new Object();
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
715if (Object.ReferenceEquals(adder, current))
System\ServiceModel\Description\DispatcherBuilder.cs (1)
68public override bool Equals(Object other)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
329foreach (var attr in attrs)
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
366foreach (Object obj in parameters)
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
129if (Object.ReferenceEquals(x, y))
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
209protected Object ThisLock { get; } = new Object();
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
297protected Object ThisLock { get; } = new Object();
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
464return (Object.ReferenceEquals(_channelSupportingTokenAuthenticatorSpecification, EmptyTokenAuthenticators)) ? null : (IList<SupportingTokenAuthenticatorSpecification>)_channelSupportingTokenAuthenticatorSpecification;
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
30private Object _thisLock = new Object();
System\ServiceModel\Security\SecurityUtils.cs (1)
594private static void CloseCommunicationObject(Object obj, bool aborted, TimeSpan timeout)
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
272Type type = (value == null) ? typeof(Object) : value.GetType();
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
71var continuationState = UserToken;
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
14foreach (var protocol in Enum.GetValues(typeof(SslProtocols)))
System.Web.Services.Description (17)
System\Web\Services\Description\ServiceDescription.cs (1)
193protected override void Serialize(Object objectToSerialize, XmlSerializationWriter writer)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (14)
220global::System.Object ai = (global::System.Object)a[ia]; 386global::System.Object ai = (global::System.Object)a[ia]; 469global::System.Object ai = (global::System.Object)a[ia]; 554global::System.Object ai = (global::System.Object)a[ia]; 720global::System.Object ai = (global::System.Object)a[ia]; 834global::System.Object ai = (global::System.Object)a[ia]; 1300global::System.Object ai = (global::System.Object)a[ia];
System\Web\Services\InvariantComparer.cs (2)
20public int Compare(Object a, Object b)
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (1)
69var coercedValue = baseValue;
Microsoft\Windows\Controls\GenericValueConverters.cs (1)
38if (!Object.ReferenceEquals(values[0], values[i]))
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
444private static readonly Object handleMutex = new Object();
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (3)
99public Object FooterPaneContent 101get { return (Object)GetValue(FooterPaneContentProperty); } 111typeof(Object),
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
463if (tab != null && tab.IsContextualTab && Object.Equals(tab.ContextualTabGroupHeader, Header))
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
262if (tabGroup != null && Object.Equals(tabGroup.Header, content))
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (1)
120/// <see cref="Object.GetHashCode"/>
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
1520return Object.Equals(knownValue, itemValue); 1930if (Object.ReferenceEquals(item, _allFilter)) 2088if (Object.ReferenceEquals(item, _allFilter)) 2376if (Object.ReferenceEquals(newFilter, _allFilter) || 2377Object.ReferenceEquals(newFilter, dataToCompareAgainst))
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
863var changeService = manager.GetService<IComponentChangeService>();
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSiteTests.cs (3)
29var service = site.GetService(typeof(object)); 43var service = site.GetService(typeof(object)); 57var service = site.GetService(typeof(object));
System.Xaml (7)
System\Xaml\InfosetObjects\XamlObjectWriterSettings.cs (1)
45public Object RootObjectInstance { get; set; }
System\Xaml\Schema\XamlTypeInvoker.cs (1)
275typeof(Action<object>).GetConstructor(new Type[] { typeof(Object), typeof(IntPtr) });
System\Xaml\XamlObjectReader.cs (5)
644var propertyValue = context.Runtime.GetValue(source, xamlProperty); 738var itemValue = itemsList[i]; 1281foreach (var argument in arguments) 1317foreach (var argument in arguments) 1338foreach (var argument in arguments)
UIAutomationClient (11)
MS\Internal\Automation\Accessible.cs (1)
122private Object _child;
MS\Internal\Automation\FocusTracker.cs (1)
175if(realFocus != null && !Object.ReferenceEquals(realFocus, provider))
MS\Internal\Automation\ProxyManager.cs (5)
142foreach ( Object item in e ) 144Object o = item; 170foreach ( Object item in e ) 172Object o = item; 188foreach( Object o1 in (ArrayList) o )
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
97Object windowInteractionState = rawEl.GetPatternPropertyValue(WindowPattern.WindowInteractionStateProperty, false);
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
89Object windowVisualState = rawEl.GetPatternPropertyValue(WindowPattern.WindowVisualStateProperty, false);
MS\Win32\UnsafeNativeMethods.cs (1)
145ref Object varChild );
System\Windows\Automation\AutomationElementCollection.cs (1)
100public virtual Object SyncRoot
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\HandleCollector.cs (1)
16private static Object handleMutex = new Object();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
161Object[] pvaIn,
VBCSCompiler.UnitTests (2)
NamedPipeTestUtil.cs (2)
67var sharedServer = servers[pipeName]; 89var sharedServer = e.Value!;
xunit.assert (19)
Record.cs (1)
74 var result = default(object);
Sdk\ArgumentFormatter.cs (4)
417 var current = enumerator.Current; 461 var value = tupleParameter[idx]; 547 var k = typeInfo.GetProperty("Key")?.GetValue(value, null); 548 var v = typeInfo.GetProperty("Value")?.GetValue(value, null);
Sdk\AssertEqualityComparer.cs (4)
325 var xKey = typeof(T).GetRuntimeProperty("Key")?.GetValue(x); 326 var yKey = typeof(T).GetRuntimeProperty("Key")?.GetValue(y); 352 var xValue = typeof(T).GetRuntimeProperty("Value")?.GetValue(x); 353 var yValue = typeof(T).GetRuntimeProperty("Value")?.GetValue(y);
Sdk\AssertHelper.cs (5)
570 foreach (var expectedValue in expectedValues) 612 var fullName = fileSystemInfoFullNameProperty.Value.GetValue(expected); 670 var converted = default(object); 715 var expectedMemberValue = kvp.Value(expected); 716 var actualMemberValue = actualGetter(actual);
Sdk\CollectionTracker.cs (5)
208 foreach (var key in dictionaryX.Keys.Cast<object>()) 213 var valueX = dictionaryX[key]; 214 var valueY = dictionaryY[key]; 283 var xCurrent = enumeratorX.Current; 284 var yCurrent = enumeratorY.Current;
xunit.console (4)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextPaths.cs (2)
36var deps = AppContext.GetData(DepsFilesProperty); 37var fxDeps = AppContext.GetData(FxDepsFileProperty);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (1)
43var probeDirectories = AppContext.GetData("PROBING_DIRECTORIES");
Program.cs (1)
15var consoleLock = new object();