public bool Matches(string tag, Uri uri) { if (!Tags.Any(x => x.Equals(tag))) return false; if (Extensions == null) return true; var extension = Path.GetExtension(uri.AbsolutePath); return Extensions.Any(x => x.Equals(extension)); }