public static IEnumerable GetDataSource(CollectionDataView source) { if (source != null) { return(source.Collection); } return(null); }
public static IEnumerable <TItem> GetDataSource <TItem>(CollectionDataView source) { var collection = GetDataSource(source) as IEnumerable <TItem>; return(collection); }