public static void SetSort(this CurrencyManager manager, PropertyDescriptor property, ListSortDirection sortDirection)
 {
     manager.GetType().GetMethod("SetSort", BindingFlags.NonPublic | BindingFlags.Instance)
     .Invoke(manager, new object[] { property, sortDirection });
 }
 public static object Items(this CurrencyManager manager, int index)
 {
     return(manager.GetType().GetProperty("Item", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(manager, new object[] { index }));
 }
 public static ListSortDirection GetSortDirection(this CurrencyManager manager)
 {
     return((ListSortDirection)manager.GetType().GetMethod("GetSortDirection", BindingFlags.NonPublic | BindingFlags.Instance)
            .Invoke(manager, new object[] { }));
 }
 public static PropertyDescriptor GetSortProperty(this CurrencyManager manager)
 {
     return((PropertyDescriptor)manager.GetType().GetMethod("GetSortProperty", BindingFlags.NonPublic | BindingFlags.Instance)
            .Invoke(manager, new object[] { }));
 }
 public static bool AllowRemove(this CurrencyManager manager)
 {
     return((bool)manager.GetType().GetProperty("AllowRemove", BindingFlags.NonPublic | BindingFlags.Instance)
            .GetValue(manager, new object[] { }));
 }
 public static string GetListName(this CurrencyManager manager)
 {
     return((string)manager.GetType().GetMethod("GetListName", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { }, null)
            .Invoke(manager, null));
 }