using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BestHTTP.Extensions { /// /// Base class for specialized parsers /// public class KeyValuePairList { public List Values { get; protected set; } public bool TryGet(string valueKeyName, out HeaderValue @param) { @param = null; for (int i = 0; i < Values.Count; ++i) if (string.CompareOrdinal(Values[i].Key, valueKeyName) == 0) { @param = Values[i]; return true; } return false; } } }