/// <summary> /// Determines whether this instance is configured /// </summary> /// <returns> /// <c>true</c> if this instance is set; otherwise, <c>false</c>. /// </returns> public Boolean IsSet() { if (!CommonSufix.isNullOrEmpty()) { return(true); } if (!CommonPrefix.isNullOrEmpty()) { return(true); } return(false); }
/// <summary> /// Determines whether the specified URL is match /// </summary> /// <param name="url">The URL.</param> /// <returns> /// <c>true</c> if the specified URL is match; otherwise, <c>false</c>. /// </returns> public Boolean IsMatch(String url) { Boolean output = false; if (!CommonSufix.isNullOrEmpty()) { output = url.EndsWith(CommonSufix); if (output) { output = url.StartsWith(CommonPrefix); } } else { output = url.StartsWith(CommonPrefix); } return(output); }