icubilla / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
0 stars 0 forks source link

Property converters not used when deserializing constructor parameters #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A property converter that is set on a property that is also Constructor 
parameter does not get used during deserialization.

In the following example the "baz" argument does not get passed to the 
Foo2BarConverter upon deserialization.

public class MyClass {

  public MyClass(Bar baz) {
  }

  [JsonConvert(typeof(Foo2BarConverter))]
  [ConstructorParameter("baz")]
  public Foo FooProp { get { /* ... */ } set { /* ... */ }
}

Original issue reported on code.google.com by elliott....@gmail.com on 7 Jul 2009 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 7 Jul 2009 at 5:08

GoogleCodeExporter commented 9 years ago
Release 3.1

Original comment by elliott....@gmail.com on 16 Apr 2010 at 3:51