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
Original issue reported on code.google.com by
elliott....@gmail.com
on 7 Oct 2009 at 6:12