C# Func<> and generics -
So, I am doing a bit out of my comfort zone when working with the function of> lt;>, generics And lambda expressions but I guess. I normally look (like), but still a bit confused I took SortableObservableCollection class (online anywhere! - thank whoever it is implemented to do was get it) And it is used like this: _lookuplistViewModel.Sort (x => x.brandName, ListSortDirection.Ascending); Where the object type is implemented by a sorted archive. In this example, a property of type Brandnam object, but I want to use in a general category to the above address and to sort the property is sort method looks like this: Public Zero Sort & lt; TKey & gt; (Func & lt; T, TKey & gt; key selector, ListSortDirection direction) {switch (direction) {case ListSortDirection.Ascending: {ApplySort (Items .OrderBy (keySelector)); break; } Case Systems. CompanyModel.ListesDartDirectation Remittance: {Apply torrent (item order-ordered (key selector)); break; }}} ge...