System.Xml.HWStack.AddToTop C# (CSharp) Méthode

AddToTop() private méthode

private AddToTop ( object o ) : void
o object
Résultat void
        internal void AddToTop(object o) {
            if (this.used > 0) {
                this.stack[this.used - 1] = o;
            }
        }

Usage Example

        /// <include file='doc\XmlNamespaceManager.uex' path='docs/doc[@for="XmlNamespaceManager.PushScope"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        public virtual void PushScope()
        {
            Scope current = (Scope)scopes.Push();

            if (current == null)
            {
                current = new Scope();
                scopes.AddToTop(current);
            }
            current.Default = defaultNs;
            current.Count   = count;
            count           = 0;
        }
All Usage Examples Of System.Xml.HWStack::AddToTop