Exemplo n.º 1
0
 public TyonValueList(Type element_type, IEnumerable <object> values, TyonDehydrater dehydrater) : this()
 {
     SetTyonValues(values.Convert(v => dehydrater.CreateTyonValue(element_type, v)));
 }
Exemplo n.º 2
0
        public override TyonValue Dehydrate(Type field_type, object value, TyonDehydrater dehydrater)
        {
            value = deconstruction_invokers.Fetch(value.GetType())(value);

            return(dehydrater.CreateTyonValue(value.GetTypeEX(), value));
        }
Exemplo n.º 3
0
        public override TyonValue Dehydrate(Type field_type, object value, TyonDehydrater dehydrater)
        {
            value = Substitute(value);

            return(dehydrater.CreateTyonValue(value.GetTypeEX(), value));
        }
Exemplo n.º 4
0
 public TyonVariable(VariableInstance variable, TyonDehydrater dehydrater) : this()
 {
     SetId(variable.GetVariable().GetVariableName());
     SetTyonValue(dehydrater.CreateTyonValue(variable.GetVariableType(), variable.GetContents()));
 }