Creating a list from a dictionary : IDictionary : Data Structure C# Examples


C# Examples » Data Structure » IDictionary »

 

Creating a list from a dictionary









    
using  System;
using  System.Collections;
using  System.Collections.Generic;
using  System.Collections.ObjectModel;
using  System.Text;

public  class  MainClass
{
        public  static  void  Main()
        {
                IDictionary<string,  DateTime>  dictionary  =  new  Dictionary<string,  DateTime>();
                List<KeyValuePair<string,  DateTime>>  keyValueList  =  new  List<KeyValuePair<string,  DateTime>>(dictionary);
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Structure
» IDictionary