committed by
GitHub
10 changed files with 30 additions and 16 deletions
@ -0,0 +1,12 @@ |
|||||
|
using System.Runtime.CompilerServices; |
||||
|
|
||||
|
namespace System; |
||||
|
|
||||
|
#if !NET6_0_OR_GREATER
|
||||
|
public static class StringCompatibilityExtensions |
||||
|
{ |
||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
||||
|
public static bool Contains(this string str, char search) => |
||||
|
str.Contains(search.ToString()); |
||||
|
} |
||||
|
#endif
|
||||
Loading…
Reference in new issue