ItemsSourceBase
Ecng.ComponentModel
Represents a non-generic items source based on objects.
Hereda de: ItemsSourceBase<object>
Métodos
Create
public static IItemsSource Create(object val, Type itemValueType, bool? excludeObsolete, ListSortDirection? sortOrder, Func<IItemsSourceItem, bool> filter, Func<object, string> getName, Func<object, string> getDescription)
result = ItemsSourceBase.Create(val, itemValueType, excludeObsolete, sortOrder, filter, getName, getDescription)
Creates an IItemsSource from an object.
- val
- The source value.
- itemValueType
- The expected type of the items.
- excludeObsolete
- A value indicating whether obsolete items should be excluded.
- sortOrder
- The sort order for the items.
- filter
- A filter function to apply on items.
- getName
- A function to retrieve the display name from a value.
- getDescription
- A function to retrieve the description from a value.
Devuelve: An instance of IItemsSource.