public string Get(string name) { if (m_dictionary != null || m_dictionary.Count == 0) { if (m_dictionary.ContainsKey(name)) { return(SIPEscape.SIPURIParameterUnescape(m_dictionary[name])); } else { return(null); } } else { return(null); } }
public new string ToString() { string paramStr = null; if (m_dictionary != null) { foreach (KeyValuePair <string, string> param in m_dictionary) { if (param.Value != null && param.Value.Trim().Length > 0) { paramStr += TagDelimiter + param.Key + TAG_NAME_VALUE_SEPERATOR + SIPEscape.SIPURIParameterEscape(param.Value); } else { paramStr += TagDelimiter + param.Key; } } } return(paramStr); }