Пример #1
0
        public BasePropertyDefinition GetDefinition(string name)
        {
            BasePropertyDefinition result = null;

            result = SystemPropertyDefinitions.SingleOrDefault(x => x.Value == name);

            if (result == null)
            {
                result = CustomPropertyDefinitions.SingleOrDefault(x => x.Value == name);
            }

            return(result);
        }
Пример #2
0
        public BasePropertyDefinition GetDefinitionByLabel(string text)
        {
            BasePropertyDefinition result = null;

            result = SystemPropertyDefinitions.SingleOrDefault(x => x.Text.Equals(text, System.StringComparison.OrdinalIgnoreCase));

            if (result == null)
            {
                result = CustomPropertyDefinitions.SingleOrDefault(x => x.Text.Equals(text, System.StringComparison.OrdinalIgnoreCase));
            }

            return(result);
        }