private static int GetOrder(CustomAttribute customAttribute, int defaultValue) { var orderProperty = customAttribute.GetIntProperty(DataAttributeConstants.Order); if (orderProperty.HasValue) { return orderProperty.Value; } return defaultValue; }