AppfailReporting.Helpers.UrlHelpers.UrlStartsWith C# (CSharp) Метод

UrlStartsWith() публичный статический Метод

public static UrlStartsWith ( string url, string value ) : bool
url string
value string
Результат bool
        public static bool UrlStartsWith(string url, string value)
        {
            if (url == null && value == null)
            {
                return true;
            }

            if ((url == null && value != null) || (value == null && url != null))
            {
                return false;
            }

            return url.ToUpperInvariant().StartsWith(value.NormalizeUrl().ToUpperInvariant());
        }