Beispiel #1
0
 public IJsonMapperBuilder <TClass> AddProperty <TProp>(
     Expression <Func <TClass, TProp> > property, string jsonPropName)
 {
     _getters.Add(jsonPropName.EncodeToJsonString(), JsonGetter <TClass, TProp> .Build(property));
     _setters.Add(jsonPropName, JsonSetter <TClass, TProp> .Build(property));
     return(this);
 }
Beispiel #2
0
 public IJsonMapperBuilder <TClass> AddWriteOnlyProperty <TProp>(
     Expression <Func <TClass, TProp> > property, string jsonPropName)
 {
     _setters.Add(jsonPropName, JsonSetter <TClass, TProp> .Build(property));
     return(this);
 }