public static Dictionary <string, string> SerializeObject <T, TSelected>(this DictionarySerializer serializer, T value, Expression <Func <T, TSelected> > selector) { var result = serializer.SerializeObject(selector.Compile().Invoke(value)); return(result); }
public static object DeserializeObject(this DictionarySerializer serializer, Dictionary <string, string> value, Type type) { return(serializer.GetConverter(type).Deserialize(serializer, value, type)); }