[mono-vb] typeof (C#) / GetType (VB) conversion issue

Klaus Siebke ksiebke at web.de
Mon Feb 23 07:34:39 EST 2009


I'm just trying to use a Gtk Treeview in my mono VB application.
As a basis I used the mono Treeview tutorial:

Now my problem ...

Converting this C# code:
// Create a model that will hold two strings - Artist Name and Song Title
Gtk.ListStore musicListStore = new Gtk.ListStore (typeof (string), typeof

to VB this code:
dim musicListStore as Gtk.ListStore = new

gives me a compile error:

[Task:File=/share/source/mono/vbnet/vbgladetest/vbgladetest/winMacAcc.vb ,
Line=197, Column=1, Type=Error, Priority=Normal, Description=Delegate
problems 3, /share/source/mono/vbnet/vbgladetest/vbgladetest/winMacAcc.vb

Any ideas how to avoid this error?
Does anybody have a working Gtk Treeview example in mono VB?


View this message in context: http://www.nabble.com/typeof-%28C-%29---GetType-%28VB%29-conversion-issue-tp22160704p22160704.html
Sent from the Mono - VB mailing list archive at Nabble.com.

More information about the Mono-vb mailing list