[Gtk-sharp-list] Object madness.
Charles Iliya Krempeaux
04 Mar 2003 15:45:21 -0800
On Tue, 2003-03-04 at 13:40, George Farris wrote:
> I want to be able to do the following but it doesn't really seem to
> work. From what I have read it should. Any ideas?
> Class1 c = new Class1();
> o = c;
> now access methods in Class1 via o.method()
> The compiler says System.Object does not contain a reference for
I think you need to do a cast. For example...
If "o" is of type System.Object. Then it can only be treated
as a System.Object. (I.e., you can only use its methods,
properties, etc.) If you want to use it as something else,
then you need to do a cast.
Charles Iliya Krempeaux, BSc
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/