I’m trying to create a ListStore in order to set it as completion-model in an entry field.
ListStore store = new ListStore(string);
Output :
Error CS1526: Unexpected symbol )', expecting.’ (CS1526) (exercise)
In PyGTK, it’s done as : store = gtk.ListStore(str)
I’m newbie to C#, but used Gtk with Python. Forgive me if that’s a silly question 🙂
Thanks.
The
ListStoreconstructor takes the column types as arguments. You can use the typeof operator to obtain a type instance from its name: