public static bool IsRestricted (string headerName) { if (headerName == null) throw new ArgumentNullException ("headerName"); if (headerName == "") // MS throw nullexception here! throw new ArgumentException ("empty string", "headerName"); if (!IsHeaderName (headerName)) throw new ArgumentException ("Invalid character in header"); return restricted.ContainsKey (headerName); }