/// <summary> /// Gets enumerator. /// </summary> /// <returns></returns> public IEnumerator GetEnumerator() { Hashtable parameters = m_pHeaderField.ParseParameters(); HeaderFieldParameter[] retVal = new HeaderFieldParameter[parameters.Count]; int i = 0; foreach (DictionaryEntry entry in parameters) { retVal[i] = new HeaderFieldParameter(entry.Key.ToString(), entry.Value.ToString()); i++; } return(retVal.GetEnumerator()); }
/// <summary> /// Gets enumerator. /// </summary> /// <returns></returns> public IEnumerator GetEnumerator() { Hashtable parameters = m_pHeaderField.ParseParameters(); HeaderFieldParameter[] retVal = new HeaderFieldParameter[parameters.Count]; int i = 0; foreach(DictionaryEntry entry in parameters){ retVal[i] = new HeaderFieldParameter(entry.Key.ToString(),entry.Value.ToString()); i++; } return retVal.GetEnumerator(); }