Ejemplo n.º 1
0
        public TyonContext(TyonSettings s)
        {
            settings = s;

            next_external_address       = 1;
            external_address_to_objects = new BidirectionalDictionary <TyonAddress, object>();
        }
Ejemplo n.º 2
0
        public TyonSolidObject(object t, StreamSystemStream s, TyonSettings ts, TyonHydrationMode m)
        {
            target = t;
            stream = s;

            settings = ts;
            mode     = m;
        }
Ejemplo n.º 3
0
 public void SetSettings(TyonSettings s)
 {
     settings = s;
 }
Ejemplo n.º 4
0
 static public Process <object, TyonContext> CompilePushToSystemObject(this TyonSettings item, string text, TyonHydrationMode mode)
 {
     return(item.CreateContext().CompilePushToSystemObject(text, mode));
 }
Ejemplo n.º 5
0
 static public Operation <object, TyonContext> CompileInstanceSystemObject(this TyonSettings item, string text, TyonHydrationMode mode)
 {
     return(item.CreateContext().CompileInstanceSystemObject(text, mode));
 }
Ejemplo n.º 6
0
 static public void DeserializeInto(this TyonSettings item, object obj, string text, TyonHydrationMode mode)
 {
     item.CreateContext().DeserializeInto(obj, text, mode);
 }
Ejemplo n.º 7
0
 static public T DeserializeValue <T>(this TyonSettings item, string text, TyonHydrationMode mode)
 {
     return(item.DeserializeValue <T>(typeof(T), text, mode));
 }
Ejemplo n.º 8
0
 static public T DeserializeValue <T>(this TyonSettings item, Type type, string text, TyonHydrationMode mode)
 {
     return(item.DeserializeValue(type, text, mode).Convert <T>());
 }
Ejemplo n.º 9
0
 static public object DeserializeValue(this TyonSettings item, Type type, string text, TyonHydrationMode mode)
 {
     return(item.CreateContext().DeserializeValue(type, text, mode));
 }
Ejemplo n.º 10
0
 static public string SerializeValue(this TyonSettings item, Type type, object value)
 {
     return(item.CreateContext().SerializeValue(type, value));
 }
Ejemplo n.º 11
0
 static public string Serialize(this TyonSettings item, object obj)
 {
     return(item.CreateContext().Serialize(obj));
 }