public MediaTypeSearchCriteria(MediaType types, MatchRule typeMatchRule) { if (types == MediaType.None) throw new ArgumentException("No type specified", "types"); this.types = types; this.typeMatchRule = typeMatchRule; }
private bool ContainsType(MediaType type) { return (this & type) == type; }
public MediaTypeSearchCriteria(MediaType types) : this(types, MatchRule.AnyMustMatch) { }