Merge branch 'pcl-dev' of https://github.com/Meloong-Git/MeloongCore into pcl-dev
This commit is contained in:
1 file changed
-7
@@ -37,13 +37,6 @@ public static class StringExtensions {
|
||||
public static bool ContainsIgnoreCase(this string value, string subString)
|
||||
=> value.IndexOf(subString, StringComparison.OrdinalIgnoreCase) >= 0;
|
||||
|
||||
/// <summary>
|
||||
/// 非区域性的 <see cref="string.Contains(string)"/>。
|
||||
/// </summary>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool ContainsF(this string? value, string subString, bool ignoreCase = false)
|
||||
=> value?.IndexOf(subString, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) >= 0;
|
||||
|
||||
/// <summary>
|
||||
/// 非区域性的 <see cref="string.IndexOf(string)"/>。
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user