Skip to content

Make StringBuilder follow the protocol of IDisposable.#43

Merged
neuecc merged 1 commit intoCysharp:masterfrom
udaken:make-StringBuilder-follow-the-protocol-of-IDisposable
Apr 6, 2021
Merged

Make StringBuilder follow the protocol of IDisposable.#43
neuecc merged 1 commit intoCysharp:masterfrom
udaken:make-StringBuilder-follow-the-protocol-of-IDisposable

Conversation

@udaken
Copy link
Copy Markdown
Contributor

@udaken udaken commented Feb 28, 2021

IDisposable requires the following.

If an object's Dispose method is called more than once, the object must ignore all calls after the first one. The object must not throw an exception if its Dispose method is called multiple times.

Utf16ValueStringBuilder and Utf8ValueStringBuilder are now throwing exceptions and have been fixed.

@neuecc
Copy link
Copy Markdown
Member

neuecc commented Apr 6, 2021

absolutely right, thanks!

@neuecc neuecc merged commit 12c0c1d into Cysharp:master Apr 6, 2021
@udaken udaken deleted the make-StringBuilder-follow-the-protocol-of-IDisposable branch April 6, 2021 07:19
ThangwLee pushed a commit to WolffunGame/ZString that referenced this pull request May 26, 2023
…he-protocol-of-IDisposable

Make StringBuilder follow the protocol of IDisposable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants