public static bool? GetColumnIsVisibleAttribute(this MemberInfo info) { var columnIsVisible = info.GetCustomAttributes(true).OfType<IsVisibleAttribute>().FirstOrDefault(); if (columnIsVisible == null) return null; return columnIsVisible.IsVisible; }