Skip to content

Commit c76ed4a

Browse files
RexJaeschkeBillWagner
authored andcommitted
Support pattern match Span char on constant string
1 parent 4d6c249 commit c76ed4a

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();
@@ -1378,6 +1387,7 @@ The following library types are referenced in this specification. The full names
13781387
- `global::System.IntPtr`
13791388
- `global::System.InvalidCastException`
13801389
- `global::System.InvalidOperationException`
1390+
- `global::System.MemoryExtensions`
13811391
- `global::System.NotSupportedException`
13821392
- `global::System.Nullable<T>`
13831393
- `global::System.NullReferenceException`

0 commit comments

Comments
 (0)