[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-devel-list] Cannot find Hashtable in System.dll
From:       Jo Vermeulen <jo () lumumba ! luc ! ac ! be>
Date:       2004-08-06 16:12:44
Message-ID: 1091808763.4377.7.camel () localhost
[Download RAW message or body]

Op vr 06-08-2004, om 18:08 schreef Jo Vermeulen:
> Op vr 06-08-2004, om 17:44 schreef Mads Lindstrøm:
> > Hawdee
> > 
> > I have made and compiled the following program:
> 
> <snip desc="code"/>
> 
> > I run it like:
> > 
> > > ./ReflectionTest.exe | grep -i hashtable
> > 
> > and I get no output. I had expected to find the hashtable class. Is this
> > a bug in mono or am I doing something wrong?

Try loading mscorlib instead of System:

Assembly a = Assembly.Load("mscorlib");

Then I get this output:

$ ./Tester.exe | grep -i hashtable
Type is Hashtable
Type is SyncHashtable

You can see in Monodoc, the Hashtable class is located in the
mscorlib.dll:

<quote>
Requirements
        Namespace: System.Collections
        Assembly: mscorlib 1.0.x.x (in mscorlib.dll) 
        Culture: none
</quote>

Kind regards,

-- 
Jo Vermeulen
Student Computer Science at the LUC


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic