<PackageReference Include="newtonsoft.json" Version="3.5.8" />

JContainer

Represents a token that can contain other tokens.

Occurs before an item is added to the collection.

Occurs when the list changes or an item in the list changes.

public void Add(object content)

Adds the specified content as children of this JToken.

public void AddFirst(object content)

Adds the specified content as the first children of this JToken.

Creates an JsonWriter that can be used to add tokens to the JToken.

Returns a collection of the descendant tokens for this token in document order.

protected virtual void OnAddingNew(AddingNewEventArgs e)

Raises the AddingNew event.

protected virtual void OnListChanged(ListChangedEventArgs e)

Raises the ListChanged event.

public void RemoveAll()

Removes the child nodes from this token.

public void ReplaceAll(object content)

Replaces the children nodes of this token with the specified content.