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