示例#1
0
文件: XmlLocation.cs 项目: IIITanbI/1
        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;
        }