public static float? GetColumnWidthAttribute(this MemberInfo info) { var columnWidth = info.GetCustomAttributes(true).OfType<WidthAttribute>().FirstOrDefault(); if (columnWidth == null) return null; return columnWidth.Width; }