示例#1
0
        public static string Format(DyObject obj, ExecutionContext ctx, bool notype = false)
        {
            string fmt;

            try
            {
                fmt = obj.Format(ctx);
            }
            catch (Exception ex)
            {
                return($"[Error evaluating result value: {ex.Message}]");
            }

            return(notype ? fmt : fmt + " :: " + obj.TypeName(ctx));
        }