mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-10-07 06:08:41 +00:00
21 lines
488 B
C#
21 lines
488 B
C#
using System;
|
|
|
|
#if LEGACY_DOTNET
|
|
|
|
namespace SharpCompress;
|
|
|
|
internal static class StringExtensions
|
|
{
|
|
internal static bool EndsWith(this string text, char value) =>
|
|
text.Length > 0 && text[text.Length - 1] == value;
|
|
|
|
internal static bool Contains(this string text, char value) => text.IndexOf(value) > -1;
|
|
}
|
|
|
|
[AttributeUsage(
|
|
AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue
|
|
)]
|
|
public class NotNullAttribute : Attribute;
|
|
|
|
#endif
|