2026-02-16 11:03:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
#if LEGACY_DOTNET
|
2020-11-18 09:16:53 -08:00
|
|
|
|
|
2022-12-20 15:06:44 +00:00
|
|
|
|
namespace SharpCompress;
|
|
|
|
|
|
|
|
|
|
|
|
internal static class StringExtensions
|
2020-11-18 09:16:53 -08:00
|
|
|
|
{
|
2022-12-20 15:20:49 +00:00
|
|
|
|
internal static bool EndsWith(this string text, char value) =>
|
|
|
|
|
|
text.Length > 0 && text[text.Length - 1] == value;
|
2020-11-18 09:16:53 -08:00
|
|
|
|
|
2022-12-20 15:20:49 +00:00
|
|
|
|
internal static bool Contains(this string text, char value) => text.IndexOf(value) > -1;
|
2020-11-18 09:16:53 -08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-16 11:03:59 +00:00
|
|
|
|
[AttributeUsage(
|
|
|
|
|
|
AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue
|
|
|
|
|
|
)]
|
|
|
|
|
|
public class NotNullAttribute : Attribute;
|
|
|
|
|
|
|
2022-12-20 13:45:47 +00:00
|
|
|
|
#endif
|