Example #1
0
        private CustomAttributeType GetCurrentAttributeTypeIfExists(string attributeKey)
        {
            if (CustomDateTimeAttributes.Any(c => c.Key == attributeKey))
            {
                return(CustomAttributeType.DateTime);
            }
            if (CustomStringAttributes.Any(c => c.Key == attributeKey))
            {
                return(CustomAttributeType.String);
            }
            if (CustomSelectionAttributes.Any(c => c.Key == attributeKey))
            {
                return(CustomAttributeType.Selection);
            }
            if (CustomNumericAttributes.Any(c => c.Key == attributeKey))
            {
                return(CustomAttributeType.Numeric);
            }

            return(CustomAttributeType.None);
        }