icubilla / jsonexserializer

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

Type information provided by "new" ctor style gets overwritten #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
public class CtorClass : IInterface {
  private int _x;
  public CtorClass(int x) {
    _x = x;
  }

  [ConstructorParameter]
  public int X {
     get { return _x; }
  }  
}

public interface IInterface {
   int X { get; }
}

Attempting to deserialize this text results in an error:
(System.Collections.Generic.List<IInterface>) [ new CtorClass(1) ]

Cannot find a suitable constructor for type IInterface.

Original issue reported on code.google.com by elliott....@gmail.com on 7 Oct 2009 at 6:12

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 7 Oct 2009 at 6:13

GoogleCodeExporter commented 9 years ago
Release 3.1

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