3 writes to _list
System.Windows.Forms (3)
System\Windows\Forms\DataBinding\CurrencyManager.cs (3)
55_list = null!; 150_list = null!; 169_list = list;
67 references to _list
System.Windows.Forms (67)
System\Windows\Forms\DataBinding\CurrencyManager.cs (67)
67if (_list is IBindingList bindingList) 72if (_list is null) 77return !_list.IsReadOnly && !_list.IsFixedSize; 89if (_list is IBindingList bindingList) 94if (_list is null) 99return !_list.IsReadOnly; 110if (_list is IBindingList bindingList) 115if (_list is null) 120return !_list.IsReadOnly && !_list.IsFixedSize; 127public override int Count => _list is null ? 0 : _list.Count; 170WireEvents(_list); 171if (_list.Count > 0) 212return _list; 234int count = _list.Count; 256if (index < 0 || index >= _list.Count) 261return _list[index]; 265if (index < 0 || index >= _list.Count) 270_list[index] = value; 276if (_list is IBindingList ibl) 287_list.Count - 1, 288validating: (Position != _list.Count - 1), 289endCurrentEdit: (Position != _list.Count - 1), 301object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 308if (_list is ICancelAddNew iListWithCancelAddNewSupport) 328if (newPosition == -1 && _list.Count == 0) 391if (_dataSource is null || _list is null || _list.Count == 0) 461public override void RemoveAt(int index) => _list.RemoveAt(index); 474object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 481if (_list is ICancelAddNew iListWithCancelAddNewSupport) 491int rowCount = _list.Count; 520if (_list is IBindingList { SupportsSorting: true } bindingList) 531if (_list is IBindingList { SupportsSorting: true } bindingList) 544if (_list is IBindingList { SupportsSorting: true } bindingList) 559if (property is not null && _list is IBindingList { SupportsSearching: true } bindingList) 566for (int i = 0; i < _list.Count; i++) 568object? value = property.GetValue(_list[i]); 583_list is ITypedList typedList 597if (_list is ITypedList typedList) 608ListBindingHelper.GetListItemProperties(_list, listAccessors); 643if (_list.Count == 0) 684if (listposition == -1 && _list.Count > 0) 690ChangeRecordState(Math.Min(listposition, _list.Count - 1), true, false, true, false); 697if (dbe.NewIndex <= listposition && listposition < _list.Count - 1) 701ChangeRecordState(listposition + 1, true, true, listposition != _list.Count - 2, false); 707if (listposition == _list.Count - 1) 714else if (dbe.NewIndex == listposition && listposition == _list.Count - 1 && listposition != -1) 776ChangeRecordState(dbe.NewIndex, true, Position > -1 && Position < _list.Count, true, false); 782ChangeRecordState(dbe.OldIndex, true, Position > -1 && Position < _list.Count, true, false); 795if (listposition == -1 && _list.Count > 0) 799else if (listposition > _list.Count - 1) 801ChangeRecordState(_list.Count - 1, true, false, true, false); 845object? item = _list[Position]; 939if (_list.Count > 0) 941if (listposition >= _list.Count) 952List_ListChanged(_list, new ListChangedEventArgs(ListChangedType.Reset, -1)); 957UnwireEvents(_list); 972listposition = (_list is not null && _list.Count != 0) ? 0 : -1; 1012bool newBound = _list is not null && _list.Count > 0 && ShouldBind && listposition != -1; 1013if (_list is not null)