public static string ToDisplayName(this DataTablesAttribute attribute) { if (string.IsNullOrEmpty(attribute.DisplayName) || attribute.DisplayNameResourceType == null) { return(attribute.DisplayName); } var value = ResourceHelper.GetResourceLookup <string>(attribute.DisplayNameResourceType, attribute.DisplayName); return(value); }
public DataTablesPropertyInfo(PropertyInfo item1, DataTablesAttribute item2) { Item1 = item1; Item2 = item2; }