Example #1
0
        public Property GetExplicitOrShorthandProperty(string propertyName)
        {
            int    sepchar = propertyName.IndexOf('.');
            string baseName;

            if (sepchar > -1)
            {
                baseName = propertyName.Substring(0, sepchar);
            }
            else
            {
                baseName = propertyName;
            }
            Property p = GetExplicitBaseProperty(baseName);

            if (p == null)
            {
                p = builder.GetShorthand(this, baseName);
            }
            if (p != null && sepchar > -1)
            {
                return(builder.GetSubpropValue(baseName, p,
                                               propertyName.Substring(sepchar
                                                                      + 1)));
            }
            return(p);
        }