Example #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);
        }
Example #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);
        }
Example #3
0
 public PropertyValidator(BasePropertyDefinition definition)
 {
     Guards.NotNull(definition, "definition cannot be null");
     this.definition = definition;
 }