[Mono-list] HashSet appears present but uslessly broken on Ubuntu

monobug funkyfredmale at hotmail.com
Mon Apr 6 17:38:58 EDT 2009


Using 1.2.6+dfsg-6ubuntu3 of libmono-corlib-2.0-cil, it appears HashSet only
has empty stub methods.

Add() and Contains() can be called & compiled, but something as simple as:

HashSet<string> test = new HashSet<string>()
string testString = "Test";
test.add( testString );
Console.WriteLine( "Contains says: " + test.Contains( testString ) )

fails to work correctly, as the contains method returns false in this case.

I've compiled the same code on Windows .Net, and it behaves as expected
(returns true).

Any ideas as to what is going on here?

Mono also complains that HashSet does not contain a definition for
GetEnumerator() when I try to use a foreach statement.

Note that I cannot update this ubuntu box easily. Any idea how this
happened, and fixes beyond "just update via apt" would be appreciated.
-- 
View this message in context: http://www.nabble.com/HashSet-appears-present-but-uslessly-broken-on-Ubuntu-tp22917944p22917944.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list