示例#1
0
        public static SpeckleObject fromNumber(double num)
        {
            dynamic obj = new SpeckleObject();

            obj.type  = "Number";
            obj.hash  = "Number.NoHash";
            obj.value = num;
            return(obj);
        }
示例#2
0
        public static SpeckleObject fromString(string str)
        {
            dynamic obj = new SpeckleObject();

            obj.type  = "String";
            obj.hash  = "String.NoHash";
            obj.value = str;
            return(obj);
        }
示例#3
0
        public static SpeckleObject fromBoolean(bool b)
        {
            dynamic obj = new SpeckleObject();

            obj.type  = "Boolean";
            obj.hash  = "Boolean.NoHash";
            obj.value = b ? 1 : 0;
            return(obj);
        }