public TyonContext(TyonSettings s) { settings = s; next_external_address = 1; external_address_to_objects = new BidirectionalDictionary <TyonAddress, object>(); }
public TyonSolidObject(object t, StreamSystemStream s, TyonSettings ts, TyonHydrationMode m) { target = t; stream = s; settings = ts; mode = m; }
public void SetSettings(TyonSettings s) { settings = s; }
static public Process <object, TyonContext> CompilePushToSystemObject(this TyonSettings item, string text, TyonHydrationMode mode) { return(item.CreateContext().CompilePushToSystemObject(text, mode)); }
static public Operation <object, TyonContext> CompileInstanceSystemObject(this TyonSettings item, string text, TyonHydrationMode mode) { return(item.CreateContext().CompileInstanceSystemObject(text, mode)); }
static public void DeserializeInto(this TyonSettings item, object obj, string text, TyonHydrationMode mode) { item.CreateContext().DeserializeInto(obj, text, mode); }
static public T DeserializeValue <T>(this TyonSettings item, string text, TyonHydrationMode mode) { return(item.DeserializeValue <T>(typeof(T), text, mode)); }
static public T DeserializeValue <T>(this TyonSettings item, Type type, string text, TyonHydrationMode mode) { return(item.DeserializeValue(type, text, mode).Convert <T>()); }
static public object DeserializeValue(this TyonSettings item, Type type, string text, TyonHydrationMode mode) { return(item.CreateContext().DeserializeValue(type, text, mode)); }
static public string SerializeValue(this TyonSettings item, Type type, object value) { return(item.CreateContext().SerializeValue(type, value)); }
static public string Serialize(this TyonSettings item, object obj) { return(item.CreateContext().Serialize(obj)); }