mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-04 17:59:16 +00:00
59fad0e8cf
Extract some logic (origin markings) Revise directives for NET7 targeting, remove old net5 refs
11 lines
433 B
C#
11 lines
433 B
C#
#if !NET6_0_OR_GREATER
|
|
namespace System;
|
|
|
|
public static class FutureFeatures
|
|
{
|
|
public static bool StartsWith(this string str, char value) => str.Length != 0 && str[0] == value;
|
|
|
|
public static bool Contains<T>(this ReadOnlySpan<T> data, T value) where T : IEquatable<T> => data.IndexOf(value) != -1;
|
|
public static bool Contains<T>(this Span<T> data, T value) where T : IEquatable<T> => data.IndexOf(value) != -1;
|
|
}
|
|
#endif
|