Skip to content

Commit 9152913

Browse files
authored
Support pattern match Span char on constant string
1 parent 295446f commit 9152913

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

standard/standard-library.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,15 @@ namespace System
404404

405405
public abstract class FormattableString : IFormattable { }
406406

407+
public static class MemoryExtensions
408+
{
409+
public static ReadOnlySpan<char> AsSpan (this string? text);
410+
public static bool SequenceEqual<T> (this Span<T> span, ReadOnlySpan<T> other)
411+
where T : IEquatable<T>;
412+
public static bool SequenceEqual<T> (this ReadOnlySpan<T> span,
413+
ReadOnlySpan<T> other) where T : IEquatable<T>;
414+
}
415+
407416
public class OperationCanceledException : Exception
408417
{
409418
public OperationCanceledException();
@@ -1383,6 +1392,7 @@ The following library types are referenced in this specification. The full names
13831392
- `global::System.IntPtr`
13841393
- `global::System.InvalidCastException`
13851394
- `global::System.InvalidOperationException`
1395+
- `global::System.MemoryExtensions`
13861396
- `global::System.NotSupportedException`
13871397
- `global::System.Nullable<T>`
13881398
- `global::System.NullReferenceException`

0 commit comments

Comments
 (0)