src/Shared/EntityFramework/Core/Query/InternalTrees/Dump.cs
// <summary>
// Driver method to dump the a subtree of a tree
// </summary>
Driver method to dump the a subtree of a tree
Driver method to dump the a subtree of a tree
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
        internal static string ToXml(Node subtree)
        {
            var stream = new MemoryStream();
            using (var dumper = new Dump(stream))
            {
                using (new AutoXml(dumper, "nodes"))
                {
                    dumper.VisitNode(subtree);
                }
            }
            return DefaultEncoding.GetString(stream.ToArray());
        }
[ SuppressMessage ( " " , " " ) ] internal static string ToXml ( Node subtree ) { var stream = new MemoryStream ( ) ; using ( var dumper = new Dump ( stream ) ) { using ( new AutoXml ( dumper , " " ) ) { dumper . VisitNode ( subtree ) ; } } return DefaultEncoding . GetString ( stream . ToArray ( ) ) ; }
Driver method to dump the a subtree of a tree
Driver method to dump the a subtree of a tree
// Just in case the node we're provided doesn't dump as XML, we'll always stick // an XML wrapper around it -- this happens when we're dumping scalarOps, for // example, and it's unfortunate if you can't debug them using a dump...
subtree
Node