BetterWaywo.ContentConfig.Matches C# (CSharp) 메소드

Matches() 공개 메소드

public Matches ( string tag, Uri uri ) : bool
tag string
uri System.Uri
리턴 bool
        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));
        }
ContentConfig