I know it works great if NodeType_typ enum is declared outside Node class (MyNameSpace.NodeType_typ), but I don't really to access this enum outside my Node class.
So, is there a way to declare an enum inside a class ?
Unfortunately, as mentioned in the README, the code generator does not yet support nested types. If you'd like to implement this, I'd happily accept a PR.
I've declared a class in C# which contains a public enum (see code below). How can I declare this enum in
NativeScriptTypes.json
?I've declared my
Node
class as follows :And I've tried to declare
NodeType_typ
enum as follows, but without any luckI know it works great if
NodeType_typ
enum is declared outsideNode
class (MyNameSpace.NodeType_typ
), but I don't really to access this enum outside myNode
class.So, is there a way to declare an enum inside a class ?