Example #1
0
 static void Main(string[] args)
 {
     try
     {
         DictionaryFactory obj = new DictionaryFactory();
         obj._Configs.Add("temp", 3);
         var x = obj.Configuration;
         Console.WriteLine("Readonly dictionary used to ensure the data is not modified across the app while passing data ");
         foreach (var item in x)
         {
             Console.WriteLine(item.Key + " -- " + item.Value);
         }
     }
     catch (Exception e)
     {
         throw;
     }
 }
 static void Main(string[] args)
 {
     try
     {
         DictionaryFactory obj = new DictionaryFactory();
         obj._Configs.Add("temp", 3);
         var x = obj.Configuration;
         Console.WriteLine("Readonly dictionary used to ensure the data is not modified across the app while passing data ");
         foreach (var item in x)
         {
             Console.WriteLine(item.Key + " -- "+ item.Value);
         }
     }
     catch (Exception e)
     {
         
         throw;
     }
    
 }