public void WriteXml(IInfoWriter writer, CultureInfo cultureInfo)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (cultureInfo == null)
     {
         throw new ArgumentNullException("cultureInfo");
     }
     DictionaryEntry[] strings = this.GetStrings(cultureInfo);
     for (int i = 0; i < strings.Length; i++)
     {
         writer.Write(strings[i].Key.ToString(), strings[i].Value.ToString(), cultureInfo);
     }
     strings = this.GetItems(cultureInfo);
     for (int j = 0; j < strings.Length; j++)
     {
         writer.WriteItem(strings[j].Key.ToString(), (IInfoItem)strings[j].Value, cultureInfo);
     }
 }
Beispiel #2
0
 public void WriteXml(IInfoWriter writer, CultureInfo cultureInfo)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (cultureInfo == null)
     {
         throw new ArgumentNullException("cultureInfo");
     }
     DictionaryEntry[] strings = this.GetStrings(cultureInfo);
     for (int i = 0; i < strings.Length; i++)
     {
         writer.Write(strings[i].Key.ToString(), strings[i].Value.ToString(), cultureInfo);
     }
     strings = this.GetItems(cultureInfo);
     for (int j = 0; j < strings.Length; j++)
     {
         writer.WriteItem(strings[j].Key.ToString(), (IInfoItem) strings[j].Value, cultureInfo);
     }
 }