6 writes to _properties
System.ComponentModel.TypeConverter (6)
System\ComponentModel\PropertyDescriptorCollection.cs (6)
40
_properties
= Array.Empty<PropertyDescriptor>();
45
_properties
= properties;
68
_properties
= properties;
139
_properties
= newProps;
160
_properties
= new PropertyDescriptor[sizeNeeded];
169
_properties
= newProps;
42 references to _properties
System.ComponentModel.TypeConverter (42)
System\ComponentModel\PropertyDescriptorCollection.cs (42)
90
return
_properties
[index]!;
107
_properties
[Count++] = value;
127
Array.Copy(
_properties
, 0, array, index, Count);
135
if (
_properties
!= null)
138
Array.Copy(
_properties
, newProps, Count);
152
if (sizeNeeded <=
_properties
.Length)
157
if (
_properties
.Length == 0)
166
int newSize = Math.Max(sizeNeeded,
_properties
.Length * 2);
168
Array.Copy(
_properties
, newProps, Count);
210
if (string.Equals(
_properties
[i].Name, name, StringComparison.OrdinalIgnoreCase))
212
_cachedFoundProperties[name] =
_properties
[i];
213
p =
_properties
[i];
219
if (
_properties
[i].Name.Equals(name))
221
_cachedFoundProperties[name] =
_properties
[i];
222
p =
_properties
[i];
232
public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(
_properties
, value, 0, Count);
244
Array.Copy(
_properties
, index,
_properties
, index + 1, Count - index);
246
_properties
[index] = value;
274
Array.Copy(
_properties
, index + 1,
_properties
, index, Count - index - 1);
276
_properties
[Count - 1] = null!;
286
return new PropertyDescriptorCollection(
_properties
, Count, _namedSort, _comparer);
296
return new PropertyDescriptorCollection(
_properties
, Count, names, _comparer);
305
return new PropertyDescriptorCollection(
_properties
, Count, names, comparer);
314
return new PropertyDescriptorCollection(
_properties
, Count, _namedSort, comparer);
323
if (
_properties
.Length == 0)
332
List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(
_properties
);
334
int propCount =
_properties
.Length;
347
_properties
[foundCount++] = currentProp;
363
_properties
[foundCount++] = propList[i]!;
382
Array.Sort(
_properties
, sorter);
393
if (
_properties
.Length != Count)
396
Array.Copy(
_properties
, enumProps, Count);
399
return
_properties
.GetEnumerator();
478
if (
_properties
[i]!.Name.Equals((string)key))
497
_properties
[index] = (PropertyDescriptor)value!;
513
keys[i] =
_properties
[i]!.Name;
524
if (
_properties
.Length != Count)
527
Array.Copy(
_properties
, newProps, Count);
532
return (ICollection)
_properties
.Clone();
585
_properties
[index] = (PropertyDescriptor)value!;