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

InternalSort() protected method

protected InternalSort ( IComparer sorter ) : void
sorter IComparer
return void
        protected void InternalSort(IComparer sorter) {
            if (sorter == null) {
                TypeDescriptor.SortDescriptorArray(this);
            }
            else {
                Array.Sort(properties, sorter);
            }
        }
                

Same methods

PropertyDescriptorCollection::InternalSort ( string names ) : void

Usage Example

Esempio n. 1
0
        public virtual PropertyDescriptorCollection Sort(string[] order, IComparer comparer)
        {
            PropertyDescriptorCollection col = CloneCollection();

            if (order != null)
            {
                ArrayList sorted = col.ExtractItems(order);
                col.InternalSort(comparer);
                sorted.AddRange(col.properties);
                col.properties = sorted;
            }
            else
            {
                col.InternalSort(comparer);
            }
            return(col);
        }
All Usage Examples Of System.ComponentModel.PropertyDescriptorCollection::InternalSort