Ejemplo n.º 1
0
        private string GetColumnName(PropertyInfo property)
        {
            ExcelMappingNameAttribute attribute = property.GetCustomAttributes(typeof(ExcelMappingNameAttribute), true).FirstOrDefault() as ExcelMappingNameAttribute;

            return((attribute == null || attribute.Name == null) ? property.Name : attribute.Name);
        }
Ejemplo n.º 2
0
        private int GetOrderIndex(PropertyInfo property)
        {
            ExcelMappingNameAttribute attribute = property.GetCustomAttributes(typeof(ExcelMappingNameAttribute), true).FirstOrDefault() as ExcelMappingNameAttribute;

            return((attribute == null) ? int.MaxValue : attribute.OrderIndex);
        }