Пример #1
0
        protected internal virtual long Transform(DvslNode root, TextWriter writer)
        {
            /*
             *  wrap in a context to keep subsequent documents from
             *  interacting with each other
             */
            currentContext = new DVSLNodeContext(baseContext);
            long start = (DateTime.Now.Ticks - 621355968000000000) / 10000;

            /*
             *  push 'this' into the context as our TransformTool
             *  and invoke the transformation
             */
            currentContext.Put("context", this);
            Invoke(root, writer);
            long end = (DateTime.Now.Ticks - 621355968000000000) / 10000;

            return(end - start);
        }
Пример #2
0
	protected internal virtual long Transform(DvslNode root, TextWriter writer) {
	    /*
	    *  wrap in a context to keep subsequent documents from
	    *  interacting with each other
	    */
	    currentContext = new DVSLNodeContext(baseContext);
	    long start = (DateTime.Now.Ticks - 621355968000000000) / 10000;

	    /*
	    *  push 'this' into the context as our TransformTool
	    *  and invoke the transformation
	    */
	    currentContext.Put("context", this);
	    Invoke(root, writer);
	    long end = (DateTime.Now.Ticks - 621355968000000000) / 10000;
	    return end - start;
	}