[Mono-devel-list] Cannot find Hashtable in System.dll

Jo Vermeulen jo at lumumba.luc.ac.be
Fri Aug 6 12:12:44 EDT 2004


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




More information about the Mono-devel-list mailing list