mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-25 06:50:52 -05:00
Extract some logic (origin markings) Revise directives for NET7 targeting, remove old net5 refs
12 lines
433 B
C#
12 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
|