[Gtk-sharp-list] Inherritance of WebKit.WebView features

Chris Howie cdhowie at gmail.com
Thu Dec 18 15:51:32 EST 2008


On Wed, Dec 17, 2008 at 9:21 PM, e8 <contact at australianmail.homeip.net> wrote:
> Ok I got it to work. I simply needed to reference the command in another way
> in the project that uses the widget. For some reason C# complicates itself
> (or my own mistake) if you try to reference mulitlayers, it simply does the
> work for you if you type it in short. Like MyWidgetLibrary.
>
> mywebview1.webView.Open (@"test.html");

C# isn't being complicated at all.  In the first example you were
referencing it in static context, passing the instance to the
property.  That's not how object-oriented languages work.  Perhaps
this works in C++, but I would not expect it to work like this in any
kind of high-level OO language.  Java would choke as well.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list