M
Max2006
Hi,
When I run this program:
static void Main(string[] args)
{
SortedDictionary<string, List<DateTime>> complex =
new SortedDictionary<string, List<DateTime>>();
Console.WriteLine(complex.GetType().Name);
Console.WriteLine(complex.GetType().ToString());
}
The output is:
SortedDictionary`2
System.Collections.Generic.SortedDictionary`2[System.String,System.Collections.Generic.List`1[System.DateTime]]
What is the ''2' at the end of "SortedDictionary`2"?
Why can't I receive the actual type that I declared
(SortedDictionary<string, List<DateTime>>) ?
Thank you,
Max
When I run this program:
static void Main(string[] args)
{
SortedDictionary<string, List<DateTime>> complex =
new SortedDictionary<string, List<DateTime>>();
Console.WriteLine(complex.GetType().Name);
Console.WriteLine(complex.GetType().ToString());
}
The output is:
SortedDictionary`2
System.Collections.Generic.SortedDictionary`2[System.String,System.Collections.Generic.List`1[System.DateTime]]
What is the ''2' at the end of "SortedDictionary`2"?
Why can't I receive the actual type that I declared
(SortedDictionary<string, List<DateTime>>) ?
Thank you,
Max