4 writes to _components
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (4)
26_components = GetComponentList(components); 237_components = null; 241_components = new object[objects.Count]; 265_components = [.. topComponents];
17 references to _components
System.Windows.Forms.Design (17)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (17)
39if (_serializationStream is null && _components is not null) 44IComponent[] components = new IComponent[_components.Length]; 45for (int i = 0; i < _components.Length; i++) 47Debug.Assert(_components[i] is IComponent, $"Item {_components[i].GetType().Name} is not an IComponent"); 48components[i] = (IComponent)_components[i]; 68if (_components is null && (_serializationStream is not null || _serializationData is not null)) 73return (object[]?)_components?.Clone() ?? []; 206[MemberNotNull(nameof(_components))] 225if (removeCurrentComponents && _components is not null) 227foreach (IComponent removeComp in _components) 231trans = host.CreateTransaction(string.Format(SR.DragDropMoveComponents, _components.Length)); 242objects.CopyTo(_components, 0); 249List<object> topComponents = new(_components.Length); 250for (int i = 0; i < _components.Length; i++) 252if (_components[i] is Control c) 261topComponents.Add(_components[i]);