70 references to First
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
156&& !object.ReferenceEquals(_mruList.First, entry.node))
Microsoft.Build (27)
BackEnd\Components\RequestBuilder\Lookup.cs (26)
126get { return _lookupScopes.First.Value.Items; } 127set { _lookupScopes.First.Value.Items = value; } 132get { return _lookupScopes.First.Value.Adds; } 133set { _lookupScopes.First.Value.Adds = value; } 138get { return _lookupScopes.First.Value.Removes; } 139set { _lookupScopes.First.Value.Removes = value; } 144get { return _lookupScopes.First.Value.Modifies; } 145set { _lookupScopes.First.Value.Modifies = value; } 150get { return _lookupScopes.First.Value.PropertySets; } 151set { _lookupScopes.First.Value.PropertySets = value; } 156get { return _lookupScopes.First.Next.Value.Items; } 157set { _lookupScopes.First.Next.Value.Items = value; } 162get { return _lookupScopes.First.Next.Value.Adds; } 163set { _lookupScopes.First.Next.Value.Adds = value; } 168get { return _lookupScopes.First.Next.Value.Removes; } 169set { _lookupScopes.First.Next.Value.Removes = value; } 174get { return _lookupScopes.First.Next.Value.Modifies; } 175set { _lookupScopes.First.Next.Value.Modifies = value; } 180get { return _lookupScopes.First.Next.Value.Properties; } 181set { _lookupScopes.First.Next.Value.Properties = value; } 186get { return _lookupScopes.First.Next.Value.PropertySets; } 187set { _lookupScopes.First.Next.Value.PropertySets = value; } 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); 756LinkedListNode<Scope> node = _lookupScopes.First; 988LinkedListNode<Scope> node = _lookupScopes.First;
Evaluation\ProjectRootElementCache.cs (1)
585LinkedListNode<ProjectRootElement> node = _strongCache.First;
Microsoft.CodeAnalysis (1)
InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
114var currentNode = nodes.First!.Value;
Microsoft.CodeAnalysis.EditorFeatures (1)
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
175var firstNode = _lruList.First;
Microsoft.CodeAnalysis.Remote.ServiceHub (8)
Host\RemoteSolutionCache.cs (6)
71for (var current = _cacheNodes.First; current != null; current = current.Next, index++) 98Contract.ThrowIfNull(_cacheNodes.First); 99Contract.ThrowIfFalse(_cacheNodes.First.Value.Checksum.Equals(checksum)); 102_cacheNodes.First.Value.Solution = solution; 110for (var current = _cacheNodes.First; current != null; current = current.Next, index++) 125for (var current = _cacheNodes.First; current != null; current = current.Next, index++)
Services\DiagnosticAnalyzer\PerformanceQueue.cs (1)
48var first = _snapshots.First;
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
265for (var currentNode = _cachedData.First; currentNode != null; currentNode = currentNode.Next)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
114var currentNode = nodes.First!.Value;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
90if (!ReferenceEquals(_nodeList.First, node))
System.Net.Requests (3)
System\Net\TimerThread.cs (3)
509for (LinkedListNode<WeakReference>? node = s_newQueues.First; node != null; node = s_newQueues.First) 520for (LinkedListNode<WeakReference>? node = s_queues.First; node != null; /* node = node.Next must be done in the body */)
System.Windows.Forms (12)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (2)
76NavigateDirection.NavigateDirection_FirstChild => RowsAccessibleObjects?.First?.Value, 92return RowsAccessibleObjects?.First?.Value.CellsAccessibleObjects?.ToArray();
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
115CalendarRowAccessibleObject? topRow = _calendarBodyAccessibleObject.RowsAccessibleObjects?.First?.Value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
39NavigateDirection.NavigateDirection_NextSibling => _monthCalendarAccessibleObject.CalendarsAccessibleObjects?.First?.Value,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (5)
128CalendarCellAccessibleObject? cell = CellsAccessibleObjects?.First?.Value; 152: CellsAccessibleObjects?.First?.Value, 216|| CellsAccessibleObjects?.First is null 217|| CellsAccessibleObjects.First.Value.DateRange is null) 224_rowIndex, -1, GetWeekNumber(CellsAccessibleObjects.First.Value.DateRange.Start));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarWeekNumberCellAccessibleObject.cs (1)
47NavigateDirection.NavigateDirection_NextSibling => _calendarRowAccessibleObject.CellsAccessibleObjects?.First?.Value,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
137int currentY = CalendarsAccessibleObjects.First?.Value.Bounds.Y ?? 0; 174=> CalendarsAccessibleObjects?.First?.Value is CalendarAccessibleObject firstCalendar
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (8)
355CalendarAccessibleObject calendar1 = calendars?.First?.Value; 356CalendarAccessibleObject calendar2 = calendars?.First?.Next?.Value; 357CalendarAccessibleObject calendar3 = calendars?.First?.Next?.Next?.Value; 358CalendarAccessibleObject calendar4 = calendars?.First?.Next?.Next?.Next?.Value; 397CalendarAccessibleObject calendar1 = calendars?.First?.Value; 398CalendarAccessibleObject calendar2 = calendars?.First?.Next?.Value; 399CalendarAccessibleObject calendar3 = calendars?.First?.Next?.Next?.Value; 400CalendarAccessibleObject calendar4 = calendars?.First?.Next?.Next?.Next?.Value;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (5)
144CalendarDayOfWeekCellAccessibleObject sunday = days?.First?.Value as CalendarDayOfWeekCellAccessibleObject; 145CalendarDayOfWeekCellAccessibleObject monday = days?.First?.Next?.Value as CalendarDayOfWeekCellAccessibleObject; 146CalendarDayOfWeekCellAccessibleObject tuesday = days?.First?.Next?.Next?.Value as CalendarDayOfWeekCellAccessibleObject; 188CalendarDayOfWeekCellAccessibleObject sunday = days?.First?.Value as CalendarDayOfWeekCellAccessibleObject; 189CalendarDayOfWeekCellAccessibleObject monday = days?.First?.Next?.Value as CalendarDayOfWeekCellAccessibleObject;