Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteTo()

override void System.Text.Json.Nodes.JsonArray.WriteTo ( Utf8JsonWriter writer,
JsonSerializerOptions? options = null )
inline

Definition at line 172 of file JsonArray.cs.

173 {
174 if (writer == null)
175 {
176 throw new ArgumentNullException("writer");
177 }
178 if (_jsonElement.HasValue)
179 {
181 return;
182 }
183 CreateNodes();
184 if (options == null)
185 {
186 options = JsonSerializerOptions.s_defaultOptions;
187 }
188 writer.WriteStartArray();
189 for (int i = 0; i < _list.Count; i++)
190 {
192 }
193 writer.WriteEndArray();
194 }
void WriteTo(Utf8JsonWriter writer)

References System.Text.Json.Nodes.JsonArray._jsonElement, System.Text.Json.Nodes.JsonArray._list, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Text.Json.Nodes.JsonArray.CreateNodes(), System.Text.Json.Serialization.Converters.JsonNodeConverter.Instance, System.options, System.Text.Json.JsonSerializerOptions.s_defaultOptions, System.writer, and System.Text.Json.JsonElement.WriteTo().