System.Xml.ByteStack.Pop C# (CSharp) Méthode

Pop() public méthode

public Pop ( ) : byte
Résultat byte
        public byte Pop() {
            if (top > 0) {
                return stack[--top];
            } else {
                return 0;
            }
        }

Usage Example

        // end element with />
        // for HTML(ns.Length == 0)
        //    not an empty tag <h1></h1>
        //    empty tag <basefont>
        internal override void WriteEndElement(string prefix, string localName, string ns)
        {
            if (ns.Length == 0)
            {
                Debug.Assert(prefix.Length == 0);

                if (trackTextContent && inTextContent != false)
                {
                    ChangeTextContentMark(false);
                }

                if ((currentElementProperties & ElementProperties.EMPTY) == 0)
                {
                    bufChars[base.bufPos++] = (char)'<';
                    bufChars[base.bufPos++] = (char)'/';
                    base.RawText(localName);
                    bufChars[base.bufPos++] = (char)'>';
                }
            }
            else
            {
                //xml content
                base.WriteEndElement(prefix, localName, ns);
            }

            currentElementProperties = (ElementProperties)elementScope.Pop();
        }
All Usage Examples Of System.Xml.ByteStack::Pop