整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -9,13 +9,12 @@ namespace WPFluent.Extensions;
public static class StringExtensions
{
/// <summary>
/// Returns a value indicating whether a specified string occurs within this string, using the specified comparison
/// rules.
/// 使用指定的比较规则,返回指定字符串是否出现在此字符串中的值。
/// </summary>
/// <param name="source">Source string.</param>
/// <param name="value">The string to seek.</param>
/// <param name="comparison">One of the enumeration values that specifies the rules to use in the comparison.</param>
/// <returns>true if the value parameter occurs within this string, or if value is the empty string (""); otherwise, false.</returns>
/// <param name="source">源字符串。</param>
/// <param name="value">要查找的字符串。</param>
/// <param name="comparison">枚举值之一,用于指定比较中使用的规则。</param>
/// <returns>如果参数 value 出现在该字符串中,或 value 为空字符串 ("") 则为 true否则为 false</returns>
[Pure]
public static bool Contains(this string source, string value, StringComparison comparison)
{ return source.IndexOf(value, comparison) >= 0; }