BListCompareProperty - Esempi
Ordinamento per categoria e posizione
using B.BReflections;
using System.Reflection;
List<PropertyInfo> properties = typeof(CustomerEditor)
.GetProperties()
.ToList();
properties.Sort(new BListCompareProperty(
BListCompareProperty.eTypeOrder.Crescente,
orderByCategory: true));
Con orderByCategory: true, l'ordinamento usa nell'ordine:
CategoryAttribute;BOrderAttribute.OrderPosition;nome della proprietà.
Le proprietà senza BOrder ricevono implicitamente posizione int.MaxValue. Con orderByCategory: false viene usato soltanto il nome. Decrescente inverte ciascun confronto.
