/// <summary> /// Invokes the <paramref name="action"/> whilst <see cref="DatabaseWildcard.Replace(string)">replacing</see> the <b>wildcard</b> characters when the <paramref name="with"/> is not <c>null</c>. /// </summary> /// <param name="with">The value with which to verify.</param> /// <param name="action">The <see cref="Action"/> to invoke when there is a valid <paramref name="with"/> value; passed the database specific wildcard value.</param> public void WithWildcard(string?with, Action <string> action) { if (with != null) { with = Wildcard.Replace(with); if (with != null) { action?.Invoke(with); } } }