Example #1
0
        public XObject GetElement(XElement config)
        {
            XObject result = null;

            result = config.AttributeByNames(AttributeAllowedNames);
            if (result != null) return result;

            result = config.ElementByNames(ElementAllowedNames);
            if (result != null) return result;

            if (CouldBeValue)
                return config;

            return null;
        }