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)
39
if (_serializationStream is null &&
_components
is not null)
44
IComponent[] components = new IComponent[
_components
.Length];
45
for (int i = 0; i <
_components
.Length; i++)
47
Debug.Assert(
_components
[i] is IComponent, $"Item {
_components
[i].GetType().Name} is not an IComponent");
48
components[i] = (IComponent)
_components
[i];
68
if (
_components
is null && (_serializationStream is not null || _serializationData is not null))
73
return (object[]?)
_components
?.Clone() ?? [];
206
[MemberNotNull(nameof(
_components
))]
225
if (removeCurrentComponents &&
_components
is not null)
227
foreach (IComponent removeComp in
_components
)
231
trans = host.CreateTransaction(string.Format(SR.DragDropMoveComponents,
_components
.Length));
242
objects.CopyTo(
_components
, 0);
249
List<object> topComponents = new(
_components
.Length);
250
for (int i = 0; i <
_components
.Length; i++)
252
if (
_components
[i] is Control c)
261
topComponents.Add(
_components
[i]);