コード例 #1
0
        public SmartProperty GetSmartPropertyByName(string smartPropertyName)
        {
            if (SmartProperties == null)
            {
                return(null);
            }

            return(SmartProperties.FirstOrDefault(x => x.Name == smartPropertyName));
        }
コード例 #2
0
        public bool SmartPropertyNameExists(string newName)
        {
            if (SmartProperties == null)
            {
                return(false);
            }

            return(SmartProperties.Any(smartProperty => smartProperty.Name == newName));
        }