summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWraith2 <Wraith2@users.noreply.github.com>2018-11-03 20:54:23 +0000
committerStephen Toub <stoub@microsoft.com>2018-11-03 16:54:23 -0400
commitea5b27d97a392aeda6de31e2724e2eab0ac3a85f (patch)
tree28e1d11e73e070d784dcb79d6f7f0c47e7799081
parente18f25639c4d079dd0ba3be1a755420042685054 (diff)
downloadcoreclr-ea5b27d97a392aeda6de31e2724e2eab0ac3a85f.tar.gz
coreclr-ea5b27d97a392aeda6de31e2724e2eab0ac3a85f.tar.bz2
coreclr-ea5b27d97a392aeda6de31e2724e2eab0ac3a85f.zip
Add StringBuilder.Append(ROM<char>) (#20773)
* added Append(ROM<char>) * address feedback * revert sln
-rw-r--r--src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs b/src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs
index 904166f908..54218cadd0 100644
--- a/src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs
+++ b/src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs
@@ -1211,6 +1211,8 @@ namespace System.Text
return this;
}
+ public StringBuilder Append(ReadOnlyMemory<char> value) => Append(value.Span);
+
#region AppendJoin
public unsafe StringBuilder AppendJoin(string separator, params object[] values)