示例#1
0
        public static object ToHost(VAL val, Type hostType)
        {
            ValizerScript engine = ValizerScript.Engine(hostType);

            if (engine != null)
            {
                return(engine.Devalize(val));
            }

            return(null);
        }
示例#2
0
        public static VAL ToValor(object host)
        {
            if (host == null)
            {
                return(null);
            }

            ValizerScript engine = ValizerScript.Engine(host.GetType());

            if (engine != null)
            {
                return(engine.Valize(host));
            }

            return(null);
        }