System.ComponentModel.PropertyDescriptorCollection.EnsurePropsOwned C# (CSharp) Method

EnsurePropsOwned() private method

private EnsurePropsOwned ( ) : void
return void
        private void EnsurePropsOwned() {
            if (!propsOwned) {
               propsOwned = true;
               if (properties != null) {
                  PropertyDescriptor[] newProps = new PropertyDescriptor[Count];
                  Array.Copy(properties, 0, newProps, 0, Count);
                  this.properties = newProps;
               }
            }
        
            if (needSort) {
               needSort = false;
               InternalSort(this.namedSort);
            }
        }