Hello
in fact by mistake I found one of not supported statements to compile
public class Parent<T>
{
protected T _data;
}
[JsType(JsMode.ExtJs, InlineFields = true)]
public class Child : Parent<Child.InitialData>
{
public class InitialData
{
public int QuestionerID { get; set; }
}
public void doSmth()
{
var i = _data.QuestionerID + 1;
}
}
not sure how mig problem it is as solution is simle - take the InitialData out of the class
another problem I would like to discuss is this one
[JsType(JsMode.ExtJs, InlineFields = true)]
public class Parent
{
private int _privateMember = 0;
public void doSmthOnParent()
{
_privateMember++;
}
}
[JsType(JsMode.ExtJs, InlineFields = true)]
public class Child : Parent
{
private int _privateMember = 0;
public void doSmthOnChild()
{
_privateMember++;
}
}
in js then
var child = new Child()
child.doSmthOnParent()
child.doSmthOnChild()
as you can see private variables are hapilly shared across parent and child
Thanks for comments