private void LoadFileToDictionary(string path, CultureDictionary dictionary)
 {
     if (File.Exists(path))
     {
         using (var stream = File.OpenRead(path))
         {
             using (var reader = new StreamReader(stream))
             {
                 dictionary.MergeTranslations(_parser.Parse(reader));
             }
         }
     }
 }
 private void LoadFileToDictionary(IFileInfo fileInfo, CultureDictionary dictionary)
 {
     if (fileInfo.Exists && !fileInfo.IsDirectory)
     {
         using (var stream = fileInfo.CreateReadStream())
         {
             using (var reader = new StreamReader(stream))
             {
                 dictionary.MergeTranslations(_parser.Parse(reader));
             }
         }
     }
 }