Commit fbd41e6
Optimize union initialization by avoiding object initializer
Changed from `union = new Union { JsonRpc = string.Empty }` to
`union = default; union.JsonRpc = string.Empty;` to avoid the
overhead of object initializer syntax and make direct assignment
to the struct field.
Co-authored-by: Scooletz <scooletz@users.noreply.github.com>
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>1 parent ab670e4 commit fbd41e6
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 159 | + | |
| 160 | + | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
| |||
0 commit comments