AppfailReporting.Helpers.UrlHelpers.UrlsAreEqual C# (CSharp) Méthode

UrlsAreEqual() public static méthode

public static UrlsAreEqual ( string urlA, string urlB ) : bool
urlA string
urlB string
Résultat bool
        public static bool UrlsAreEqual(string urlA, string urlB)
        {
            if (urlA == null && urlB == null)
            {
                return true;
            }

            if ((urlA == null && urlB != null) || (urlB == null && urlA != null))
            {
                return false;
            }

            return urlA.NormalizeUrl().Equals(urlB.NormalizeUrl(), StringComparison.InvariantCultureIgnoreCase);
        }