public override bool IsBrowser(string browserName) { return(w.IsBrowser(browserName)); }
public bool MatchesBrowser(HttpBrowserCapabilities browCaps) { bool segmentChoosen = false; if (browCaps.IsBrowser(this.browser) || browCaps.Browser.Equals(this.browser, StringComparison.InvariantCultureIgnoreCase)) { if (this.version == 0 || (this.direction == versionDirection.andLower && browCaps.MajorVersion <= this.version) || (this.direction == versionDirection.andHigher && browCaps.MajorVersion >= this.version)) { segmentChoosen = true; } } return segmentChoosen; }