Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Newtonsoft.​Json.​Serialization.​JsonPropertyCollection

Assembly: Newtonsoft.Json

Inheritance: object → System.​Collections.​ObjectModel.​Collection<​JsonProperty> → System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty> → JsonPropertyCollection

Implemented Interfaces

A collection of <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> objects.

Properties

public JsonProperty
Item
public int
Count
public JsonProperty
Item

Methods

protected string
GetKeyForItem​(JsonProperty item)
When implemented in a derived class, extracts the key from the specified element.
Returns The key for the specified element.
item The element from which to extract the key.
public void
AddProperty​(JsonProperty property)
Adds a <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> object.
property The property to add to the collection.
public JsonProperty
GetClosestMatchProperty​(string propertyName)
Gets the closest matching <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> object. First attempts to get an exact case match of <paramref name="propertyName" /> and then a case insensitive match.
Returns A matching property if found.
propertyName Name of the property.
public JsonProperty
GetProperty​(string propertyName, System.​StringComparison comparisonType)
Gets a property by property name.
Returns A matching property if found.
propertyName The name of the property to get.
comparisonType Type property name string comparison.
protected void
ChangeItemKey​(JsonProperty item, string newKey)
protected void
ClearItems​()
public bool
Contains​(string key)
protected void
InsertItem​(int index, JsonProperty item)
public bool
Remove​(string key)
protected void
RemoveItem​(int index)
protected void
SetItem​(int index, JsonProperty item)
public bool
TryGetValue​(string key, JsonProperty& item)
public void
Clear​()
public bool
Contains​(JsonProperty item)
public void
CopyTo​(JsonProperty[] array, int index)
public int
IndexOf​(JsonProperty item)
public void
Insert​(int index, JsonProperty item)
public bool
Remove​(JsonProperty item)
public void
RemoveAt​(int index)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object