Exemplo n.º 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;
        }
Exemplo n.º 2
0
 private bool ContainsType(MediaType type)
 {
     return (this & type) == type;
 }
Exemplo n.º 3
0
 public MediaTypeSearchCriteria(MediaType types)
     : this(types, MatchRule.AnyMustMatch)
 {
 }