public SmartProperty GetSmartPropertyByName(string smartPropertyName) { if (SmartProperties == null) { return(null); } return(SmartProperties.FirstOrDefault(x => x.Name == smartPropertyName)); }
public bool SmartPropertyNameExists(string newName) { if (SmartProperties == null) { return(false); } return(SmartProperties.Any(smartProperty => smartProperty.Name == newName)); }