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);
}
}