示例#1
0
文件: Native.cs 项目: yibit/flow9
        public Object println(Object arg)
        {
#if WINDOWS_APP
            Debug.WriteLine(FlowRuntime.toString(arg));
#else
            Console.WriteLine(FlowRuntime.toString(arg));
#endif
            return(null);
        }
示例#2
0
        public override String ToString()
        {
            StringBuilder buf  = new StringBuilder();
            String        name = getTypeName();

            buf.Append(name);

            if (name == "DLink")
            {
                buf.Append("(...)");
                return(buf.ToString());
            }

            buf.Append('(');

            RuntimeType[] types  = getFieldTypes();
            Object[]      values = getFields();

            for (int i = 0; i < values.Length; i++)
            {
                if (i > 0)
                {
                    buf.Append(", ");
                }

                if (types[i] == RuntimeType.DOUBLE && (values[i] is int || values[i] is double))
                {
                    buf.Append(FlowRuntime.doubleToStringWithDot((double)values[i]));
                }
                else
                {
                    buf.Append(FlowRuntime.toString(values[i]));
                }
            }

            buf.Append(')');

            return(buf.ToString());
        }
示例#3
0
文件: Native.cs 项目: yibit/flow9
 public String toString(Object value)
 {
     return(FlowRuntime.toString(value));
 }
示例#4
0
 public override String ToString()
 {
     return("ref " + FlowRuntime.toString(value));
 }