using SharpKit.JavaScript;
[JsType(JsMode.Prototype)]
public class Class1
{
[JsType(JsMode.Prototype)]
public class MyClass
{
[JsEnum(ValuesAsNames = true)]
public enum Type
{
type,
type2,
type3,
}
}
public void foo()
{
var a = MyClass.Type.type; //**ERROR
}
}
JS:
/*Generated by SharpKit 5 v5.00.0000*/
var Class1 = function ()
{
};
Class1.prototype.foo = function ()
{
var a = Class1.MyClass.Type.type;
};
if (typeof(Class1) == "undefined")
var Class1 = {};
Class1.MyClass = function ()
{
};
Original issue reported on code.google.com by Madnik7@gmail.com on 31 Oct 2012 at 9:13
Original issue reported on code.google.com by
Madnik7@gmail.com
on 31 Oct 2012 at 9:13