/// <summary> /// Method executed prio to write xml serialization. Copies all entries from the dictionary to the buffer /// </summary> public void PreWrite() { int i = 0; mDataBuffer = new XmlLocaDataEntry[mData.Count]; foreach (KeyValuePair <string, string> e in mData) { XmlLocaDataEntry xmle = new XmlLocaDataEntry(); xmle.mKey = e.Key; xmle.mText = e.Value; xmle.PreWrite(); mDataBuffer[i] = xmle; i++; } }
/// <summary> /// Method executed prio to write xml serialization. Copies all entries from the dictionary to the buffer /// </summary> public void PreWrite() { int i = 0; dataBuffer = new XmlLocaDataEntry[data.Count]; foreach(KeyValuePair<string,string>e in data) { XmlLocaDataEntry xmle = new XmlLocaDataEntry(); xmle.key = e.Key; xmle.text = e.Value; xmle.PreWrite(); dataBuffer[i] = xmle; i++; } }