示例#1
0
        public override HttpField Parse(string s)
        {
            var re = new AcceptHeader();

            foreach(var i in s.Remove(0, 7).Split(','))
            {
                re.AcceptedTypes.Add(i);
            }

            return re;
        }
示例#2
0
        public override HttpField Parse(string s)
        {
            var re = new AcceptHeader();

            foreach (var i in s.Remove(0, 7).Split(','))
            {
                re.AcceptedTypes.Add(i);
            }

            return(re);
        }