CSLE.CLS_Content.Dump C# (CSharp) Method

Dump() public method

public Dump ( ) : string
return string
        public string Dump()
        {
            string str = DumpValue();
            str += DumpStack(null);
            return str;
        }
		public string Dump(IList<Token> tokenlist)

Same methods

CLS_Content::Dump ( IList tokenlist ) : string

Usage Example

Example #1
0
        public Delegate CreateDelegate(ICLS_Environment env, DeleLambda lambda)
        {
            CLS_Content content = lambda.content.Clone();
            var         pnames  = lambda.paramNames;
            var         expr    = lambda.expr_func;

            NonVoidDelegate dele = delegate(T param)
            {
                if (expr != null)
                {
                    try
                    {
                        content.DepthAdd();

                        content.DefineAndSet(pnames[0], typeof(T), param);
                        CLS_Content.Value retValue = expr.ComputeValue(content);

                        content.DepthRemove();
                        return((ReturnType)retValue.value);
                    }
                    catch (Exception err)
                    {
                        env.logger.Log(content.Dump());
                        throw err;
                    }
                }
                return(default(ReturnType));
            };

            Delegate d = dele as Delegate;

            return(Delegate.CreateDelegate(this.type, d.Target, d.Method));
        }
All Usage Examples Of CSLE.CLS_Content::Dump