type.Name; public static string ColumnName<TType, TMember>(this Type t, Expression<Func<TType,field.Name; return null;}对于列名,我可以使用typeof(Foo).ColumnName((Foo f) => f.
public static class CommonMethods<T> public static ObservableCollection<T> Sort(ObservableCollection<T> array, string columnName, bool sort) ObservableCollection<T> res = new ObservableCollection<T>();