using System.Collections.Generic; namespace NWService { public class LanguageXml { public LanguageXml() { this.messageMaps = new Dictionary(); } public Dictionary messageMaps = new Dictionary(); public string GetMessage(string key, string defaultMessage) { if (messageMaps.ContainsKey(key)) { return messageMaps[key]; } else { return defaultMessage; } } } }