diff options
author | Atsushi Kanamori <AtsushiKan@users.noreply.github.com> | 2018-02-21 22:48:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 22:48:51 +0300 |
commit | 3538128fa1fb2b77a81026934d61cd370a0fd7f5 (patch) | |
tree | 07d05afa35b7a285597d384544ae48088b12c2c3 /src/System.Private.Xml | |
parent | a87573a29f10a2402fc5c9f98c4a1a4c946720b4 (diff) |
Rename string-slicing extension methods (#27328)
* Rename string-slicing extension methods
As part of
https://github.com/dotnet/corefx/issues/26894
the api folks have approved renaming AsROSpan and AsROMemory
on string instances to AsSpan and AsMemory (as the "readonly"
is obvious given the read-only nature of the input.)
This puts the renaming in effect. Basically a big search-replace
commit.
* Fix OpenSSL build break
* I see this is going to be a treadmill
Diffstat (limited to 'src/System.Private.Xml')
-rw-r--r-- | src/System.Private.Xml/src/System/Xml/NameTable.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.Xml/src/System/Xml/NameTable.cs b/src/System.Private.Xml/src/System/Xml/NameTable.cs index 2218a369e8..c82f12c9d7 100644 --- a/src/System.Private.Xml/src/System/Xml/NameTable.cs +++ b/src/System.Private.Xml/src/System/Xml/NameTable.cs @@ -234,7 +234,7 @@ namespace System.Xml private static int ComputeHash32(string key) { - ReadOnlySpan<byte> bytes = key.AsReadOnlySpan().AsBytes(); + ReadOnlySpan<byte> bytes = key.AsSpan().AsBytes(); return Marvin.ComputeHash32(bytes, Marvin.DefaultSeed); } |