Files
sharpcompress/src/SharpCompress/Polyfills/StringExtensions.cs

20 lines
422 B
C#
Raw Normal View History

#if NETFRAMEWORK || NETSTANDARD2_0
namespace SharpCompress
{
internal static class StringExtensions
{
internal static bool EndsWith(this string text, char value)
{
return text.Length > 0 && text[text.Length - 1] == value;
}
internal static bool Contains(this string text, char value)
{
return text.IndexOf(value) > -1;
}
}
}
2022-12-20 13:45:47 +00:00
#endif