Beispiel #1
0
 public PrefVal <Option <A> > opt <A>(
     string key, Option <A> defaultVal,
     ISerializedRW <A> aRW,
     bool saveOnEveryWrite = true,
     PrefVal.OnDeserializeFailure onDeserializeFailure = PrefVal.OnDeserializeFailure.ReturnDefault,
     ILog log = null
     ) => create(key, defaultVal, PrefValRW.opt(aRW, onDeserializeFailure, log), saveOnEveryWrite);
Beispiel #2
0
 public PrefVal <A> custom <A>(
     string key, A defaultVal,
     Fn <A, string> serialize, Fn <string, Option <A> > deserialize,
     PrefVal.OnDeserializeFailure onDeserializeFailure = PrefVal.OnDeserializeFailure.ReturnDefault,
     ILog log = null
     ) => create(
     key, defaultVal, PrefValRW.custom(serialize, deserialize, onDeserializeFailure, log)
     );
Beispiel #3
0
 public PrefVal <A> custom <A>(
     string key, A defaultVal,
     ISerializedRW <A> aRW,
     PrefVal.OnDeserializeFailure onDeserializeFailure = PrefVal.OnDeserializeFailure.ReturnDefault,
     ILog log = null
     ) => create(
     key, defaultVal, PrefValRW.custom(aRW, onDeserializeFailure, log)
     );
Beispiel #4
0
 public PrefVal <A> custom__OLD <A>(
     string key, A defaultVal, Fn <A, string> map, Fn <string, A> comap, bool saveOnEveryWrite = true
     ) => create(key, defaultVal, PrefValRW.custom__OLD(map, comap), saveOnEveryWrite);