示例#1
0
        public TyonContext(TyonSettings s)
        {
            settings = s;

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

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