예제 #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;
        }