Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b0e8003
Add IndentText json option
manandre Nov 25, 2023
d283b53
Add IndentText for json source generator
manandre Nov 25, 2023
eb0d433
Add tests
manandre Nov 25, 2023
6ea532e
IndentText must be non-nullable
manandre Nov 26, 2023
c8995a1
Improve performance
manandre Nov 26, 2023
3f82e03
Add extra tests
manandre Nov 26, 2023
c88aaf3
Cleanup
manandre Nov 27, 2023
86c4de5
Apply suggestions from code review
manandre Nov 28, 2023
976651f
Fixes following code review
manandre Nov 28, 2023
71e77db
Fixes following code review #2
manandre Dec 1, 2023
7c44dda
Add tests for invalid characters
manandre Dec 1, 2023
e42ea75
Handle RawIndent length
manandre Dec 1, 2023
face6cc
Move all to RawIndentation
manandre Dec 1, 2023
29118b4
Update documentation
manandre Dec 1, 2023
6f6eca7
Additional fixes from code review
manandre Dec 4, 2023
037f2fa
Move to the new API
manandre Dec 15, 2023
7c76a35
Extra fixes and enhancements
manandre Dec 15, 2023
cbd6dba
Fixes from code review
manandre Dec 24, 2023
37a305a
Avoid introducing extra fields in JsonWriterOptions
manandre Dec 24, 2023
5b11220
Fix OOM error
manandre Dec 24, 2023
ed7e1b2
Use bitwise logic for IndentedOrNotSkipValidation
manandre Dec 26, 2023
01fc002
Cache indentation options in Utf8JsonWriter
manandre Dec 26, 2023
f00943e
Add missing test around indentation options
manandre Dec 26, 2023
5dc575b
New fixes from code review
manandre Dec 28, 2023
d5e8835
Update src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf…
eiriktsarpalis Dec 29, 2023
2bfbf0c
Add test to check default values of the JsonWriterOptions properties
manandre Dec 29, 2023
00617c2
Fix comment
manandre Jan 2, 2024
4964a53
Merge branch 'main' into json-indent-text
manandre Jan 6, 2024
c14eaf7
Merge branch 'main' into json-indent-text
eiriktsarpalis Jan 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf…
…8JsonWriter.cs
  • Loading branch information
eiriktsarpalis authored Dec 29, 2023
commit d5e8835a269c6a93987b9383df7b5e7fced430d2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable

private JsonWriterOptions _options; // Since JsonWriterOptions is a struct, use a field to avoid a copy for internal code.

// Cache indentation settings from JsonWriterOptions to avoid recomputating them in the hot path.
// Cache indentation settings from JsonWriterOptions to avoid recomputing them in the hot path.
private byte _indentByte;
private int _indentLength;

Expand Down