Hello everyone,
How can I create object type vars, like (var obj:Object=new Object(); obj.param1=....; obj.param2=....)
Is it possible ?
Hello everyone,
How can I create object type vars, like (var obj:Object=new Object(); obj.param1=....; obj.param2=....)
Is it possible ?
You'd usually make a class to do it:
class Whatever
{
var name : String;
var number : int;
}
Then used as such:
var whatever = new Whatever();
whatever.name = "Moo";
whatever.number = 42;
You can do anonymous types in c#, don't think it's doable in js though
– anon85704231