public static object ToHost(VAL val, Type hostType) { ValizerScript engine = ValizerScript.Engine(hostType); if (engine != null) { return(engine.Devalize(val)); } return(null); }
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); }