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); }
public IJsonMapperBuilder <TClass> AddWriteOnlyProperty <TProp>( Expression <Func <TClass, TProp> > property, string jsonPropName) { _setters.Add(jsonPropName, JsonSetter <TClass, TProp> .Build(property)); return(this); }