1
2
3
4
5
6
7
8
9
|
// Initialize Dictionary with sample values
Dictionary<int, double> listObject = new Dictionary<int,double>
{
{2004, 1.5}, {2005, 2.7}, {2006, 3.8}
};
// To get the min key use the Min-funktion
int minYear = listObject.Min(l => l.Key);
|