Replace ValueStringBuilder.set_Length with indexer (dotnet/corefx#27274)
authorJan Kotas <jkotas@microsoft.com>
Tue, 20 Feb 2018 16:14:57 +0000 (08:14 -0800)
committerStephen Toub <stoub@microsoft.com>
Tue, 20 Feb 2018 16:14:57 +0000 (11:14 -0500)
commit40fb7ad23d32b67c649fc291975f6ec12a1b51aa
treeed898610c478fc87fd52b8445b55b075b5a2727b
parent1ff27f16dded59cfb64291445d8a8e1edd2a4d02
Replace ValueStringBuilder.set_Length with indexer (dotnet/corefx#27274)

Indexer that let's you see and edit the content of the pending string is more efficient and flexible.

Fixes dotnet/corefx#26643

Commit migrated from https://github.com/dotnet/corefx/commit/e45523d96acf833d727636fffeeb763b02a2360e
src/libraries/Common/tests/Tests/System/Text/ValueStringBuilderTests.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemName.cs
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/ValueListBuilder.Pop.cs