#if NETFRAMEWORK
using System.Diagnostics.Contracts;
namespace WPFluent.Extensions;
internal static class StringExtensions
{
///
/// Returns a value indicating whether a specified string occurs within this string, using the specified comparison
/// rules.
///
/// Source string.
/// The string to seek.
/// One of the enumeration values that specifies the rules to use in the comparison.
/// true if the value parameter occurs within this string, or if value is the empty string (""); otherwise, false.
[Pure]
public static bool Contains(this string source, string value, StringComparison comparison)
{ return source.IndexOf(value, comparison) >= 0; }
}
#endif