18
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
long l1 = -9223372036854775808;
8
long l2 = 9223372036854775807;
9
10
ulong ul1 = 18223372036854775808ul;
11
ulong ul2 = 18223372036854775808UL;
12
13
Console.WriteLine(Int64.MaxValue);
14
Console.WriteLine(Int64.MinValue);
15
Console.WriteLine(UInt64.MaxValue);
16
Console.WriteLine(UInt64.MinValue);
17
}
18
}
Cached Result
Run-time exception (line 10): An item with the same key has already been added.
Stack Trace:
[System.ArgumentException: An item with the same key has already been added.]
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Program.Main() :line 10
Stack Trace:
[System.ArgumentException: An item with the same key has already been added.]
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Program.Main() :line 10