using System.Collections.Generic;
using System.Collections.ObjectModel;
public static void Main()
Program main = new Program();
ObservableCollection<SortPropertyOption<SortProperty>> sortingOptions = new ObservableCollection<SortPropertyOption<SortProperty>>();
sortingOptions.Add(new SortPropertyOption<SortProperty>(SortProperty.Name, "Name"));
sortingOptions.Add(new SortPropertyOption<SortProperty>(SortProperty.Date, "Date"));
sortingOptions.Add(new SortPropertyOption<SortProperty>(SortProperty.Balance, "Balance"));
public class SortPropertyOption<T> {
public T OptionValue { get { return _optionValue; } }
public string Text { get { return _text; } }
public SortPropertyOption(T optionValue, string text) {
_optionValue = optionValue;