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); }
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); }