Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static object DeserializeObject(this DictionarySerializer serializer, Dictionary <string, string> value, Type type)
 {
     return(serializer.GetConverter(type).Deserialize(serializer, value, type));
 }