Gumbo.Wrappers.GumboWrapper.MarshalAll C# (CSharp) Méthode

MarshalAll() public méthode

Marshals all nodes. Does nothing if has already been called.
public MarshalAll ( ) : void
Résultat void
        public void MarshalAll()
        {
            if (_IsMarshalled)
            {
                return;
            }

            MarshalElementAndDescendants(this.Document.Root);
            _IsMarshalled = true;
        }

Usage Example

        public override bool MoveToId(string id)
        {
            _Gumbo.MarshalAll();

            var element = _Gumbo.GetElementById(id);

            if (element == null)
            {
                return(false);
            }

            _State.SetCurrent(element);
            return(true);
        }