private bool ProcessHeader(string currentline) { int i = currentline.IndexOfAny(wspaces); if (i > 0) { string hname = currentline.Substring(1, i - 1); string hvalue = currentline.Substring(i + 1); header h = new header(); h.hname = hname; h.hvalue = hvalue; headers.Add(h); return(true); } return(false); }
private bool ProcessHeader(string currentline) { int i = currentline.IndexOfAny(wspaces); if (i > 0) { string hname = currentline.Substring(1, i - 1); string hvalue = currentline.Substring(i+1); header h = new header(); h.hname = hname; h.hvalue = hvalue; headers.Add(h); return true; } return false; }