Пример #1
0
        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);
        }
Пример #2
0
 public DataTablesPropertyInfo(PropertyInfo item1, DataTablesAttribute item2)
 {
     Item1 = item1;
     Item2 = item2;
 }