Пример #1
0
        private IPropertyTag ParseNameValueTag(SrgsNameValueTag srgsTag, IElement parent)
        {
            IPropertyTag propertyTag = _parser.CreatePropertyTag(parent);

            propertyTag.NameValue(parent, srgsTag.Name, srgsTag.Value);
            propertyTag.PostParse(parent);
            return(propertyTag);
        }
Пример #2
0
        /// <summary>
        /// ParseNameValueTag tag
        /// </summary>
        private IPropertyTag ParseNameValueTag(SrgsNameValueTag srgsTag, IElement parent)
        {
            IPropertyTag tag = _parser.CreatePropertyTag(parent);

            // Initialize the tag
            tag.NameValue(parent, srgsTag.Name, srgsTag.Value);

            // Since the tag are always pushed at the end of the element list, they can be committed right away
            tag.PostParse(parent);
            return(tag);
        }