> You can use Dictionary:
> Dictionary tmp = new Dictionary("title",null,"isDone:false);
> will produce
> var tmp = { title:null, isDone:false };
> beware, Dictionary only seems to accept constant values.
> On 22 sep, 15:50, Andrea Del Signore <seje...@gmail.com> wrote:
> > Hello,
> > I'm a newbee that is just exploring the script# compiler.
> > I'm trying to bind some big framework like qooxdoo or sproutcore, but
> > I've some (expected) difficulties.
> > For example, given this sproutcore JS snippet
> > Todos.Todo = SC.Object.extend({
> > title: null,
> > isDone: false
> > });
> > how can I code a c# syntax that will produce this code block?
> > {
> > title: null,
> > isDone: false
> > }
> > I've also some more questions, but let start with this ;)
> > Thanks for your help.
> > Best regards,
> > Andrea