Esempio n. 1
0
        private Property FindProperty(string propertyName, bool bTryInherit)
        {
            PropertyMaker maker = builder.FindMaker(propertyName);

            Property p = null;

            if (maker.IsCorrespondingForced(this))
            {
                p = ComputeProperty(this, maker);
            }
            else
            {
                p = GetExplicitBaseProperty(propertyName);

                if (p == null)
                {
                    p = ComputeProperty(this, maker);
                }

                if (p == null)
                {
                    p = maker.GetShorthand(this);
                }

                if (p == null && bTryInherit)
                {
                    if (this.parentPropertyList != null && maker.IsInherited())
                    {
                        p = parentPropertyList.FindProperty(propertyName, true);
                    }
                }
            }
            return(p);
        }
Esempio n. 2
0
        private bool IsInherited(string propertyName)
        {
            PropertyMaker propertyMaker = builder.FindMaker(propertyName);

            if (propertyMaker != null)
            {
                return(propertyMaker.IsInherited());
            }
            else
            {
                FonetDriver.ActiveDriver.FireFonetError("Unknown property : " + propertyName);
                return(true);
            }
        }