示例#1
0
        public MediaTypeSearchCriteria(MediaType types, MatchRule typeMatchRule)
        {
            if (types == MediaType.None)
                throw new ArgumentException("No type specified", "types");

            this.types			= types;
            this.typeMatchRule 	= typeMatchRule;
        }
示例#2
0
文件: MediaType.cs 项目: pulb/basenji
 private bool ContainsType(MediaType type)
 {
     return (this & type) == type;
 }
示例#3
0
 public MediaTypeSearchCriteria(MediaType types)
     : this(types, MatchRule.AnyMustMatch)
 {
 }