[Mono-dev] Compile Mono Solaris

Steve Bjorg steveb at mindtouch.com
Tue Dec 18 17:08:25 EST 2007


Maybe you should read the exception it is throwing.  It's a  
NullException, not an ArgumentException. Ergo, it's wrong.

- Steve

--------------
Steve G. Bjorg
http://wiki.mindtouch.com
http://wiki.opengarden.org


On Dec 18, 2007, at 2:05 PM, Robert Jordan wrote:

> Steven Jeffs wrote:
>> Same result on ubuntu as well:
>> $ cat > test.cs
>> using System;
>> using System.Collections.Generic;
>> using System.Text;
>>
>> public class Example
>> {
>>     public static void Main()
>>     {
>>         Dictionary<char, byte> widths = new Dictionary<char, byte>();
>>
>>         widths.Add((char)0x10, (byte)0x20 );
>>         widths.Add((char)0x10, (byte)0x30 );
>>     }
>> }
>> $ gmcs test.cs
>> $ mono test.exe
>>
>> Unhandled Exception: System.ArgumentException: An element with the  
>> same
>> key already exists in the dictionary.
>
> The exception is expected, as you're trying to insert the same
> key twice.
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>




More information about the Mono-devel-list mailing list