public virtual string Get(string name) { MessageMapper.MessageHolder holder = mHash.Get(name); if (holder != null) { return(holder.GetMessage()); } return(null); }
public virtual string CreateMessageMapString() { StringBuilder script = new StringBuilder(); foreach (KeyValuePair <string, MessageMapper.MessageHolder> entry in mHash) { string name = (string)entry.Key; MessageMapper.MessageHolder h = (MessageMapper.MessageHolder)entry.Value; script.Append("\tr(\""); script.Append(LexBase.EscapeC(name)); script.Append("\", \""); script.Append(LexBase.EscapeC(h.GetMessage())); script.Append("\");\n"); } return(script.ToString()); }