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
- System.​Collections.​Generic.​IList`1 (Inherits: ICollection<​Newtonsoft.​Json.​Serialization.​JsonProperty>IEnumerable<​Newtonsoft.​Json.​Serialization.​JsonProperty>IEnumerable) Implemented by: Collection<​Newtonsoft.​Json.​Serialization.​JsonProperty>
- System.​Collections.​Generic.​IReadOnlyList`1 (Inherits: IEnumerable<​Newtonsoft.​Json.​Serialization.​JsonProperty>IEnumerableIReadOnlyCollection<​Newtonsoft.​Json.​Serialization.​JsonProperty>) Implemented by: Collection<​Newtonsoft.​Json.​Serialization.​JsonProperty>
- System.​Collections.​IList (Inherits: ICollectionIEnumerable) Implemented by: Collection<​Newtonsoft.​Json.​Serialization.​JsonProperty>
A collection of <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> objects.
Properties
public
System.​Collections.​Generic.​IEqualityComparer<​string>
Comparer
protected
System.​Collections.​Generic.​IDictionary<​string, JsonProperty>
Dictionary
public
JsonProperty
Item
public
int
Count
public
JsonProperty
Item
protected
System.​Collections.​Generic.​IList<​JsonProperty>
Items
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)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
protected
void
ClearItems​()
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
public
bool
Contains​(string key)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
protected
void
InsertItem​(int index,
JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
public
bool
Remove​(string key)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
protected
void
RemoveItem​(int index)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
protected
void
SetItem​(int index,
JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
public
bool
TryGetValue​(string key,
JsonProperty& item)
Inherited from System.​Collections.​ObjectModel.​KeyedCollection<​string, JsonProperty>
public
void
Add​(JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
void
Clear​()
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
bool
Contains​(JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
void
CopyTo​(JsonProperty[] array,
int index)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
System.​Collections.​Generic.​IEnumerator<​JsonProperty>
GetEnumerator​()
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
int
IndexOf​(JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
void
Insert​(int index,
JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
bool
Remove​(JsonProperty item)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
void
RemoveAt​(int index)
Inherited from System.​Collections.​ObjectModel.​Collection<​JsonProperty>
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object