Class JsonPropertyCollection
A collection of JsonProperty objects.
Inheritance
System.Object
System.Collections.ObjectModel.Collection<JsonProperty>
JsonPropertyCollection
Implements
System.Collections.Generic.IList<JsonProperty>
System.Collections.Generic.ICollection<JsonProperty>
System.Collections.Generic.IReadOnlyList<JsonProperty>
System.Collections.Generic.IReadOnlyCollection<JsonProperty>
System.Collections.Generic.IEnumerable<JsonProperty>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.ChangeItemKey(Bayat.Json.Serialization.JsonProperty, System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.ClearItems()
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.Contains(System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.GetKeyForItem(Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.InsertItem(System.Int32, Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.Remove(System.String)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.RemoveItem(System.Int32)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.SetItem(System.Int32, Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.Comparer
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.Dictionary
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.Item[System.String]
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Add(Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Clear()
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.ClearItems()
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Contains(Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.CopyTo(Bayat.Json.Serialization.JsonProperty[], System.Int32)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.GetEnumerator()
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.IndexOf(Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Insert(System.Int32, Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.InsertItem(System.Int32, Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Remove(Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.RemoveItem(System.Int32)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.SetItem(System.Int32, Bayat.Json.Serialization.JsonProperty)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Count
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Item[System.Int32]
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.Items
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.Generic.ICollection<Bayat.Json.Serialization.JsonProperty>.IsReadOnly
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<Bayat.Json.Serialization.JsonProperty>.System.Collections.IList.Item[System.Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JsonPropertyCollection : KeyedCollection<string, JsonProperty>, IList<JsonProperty>, ICollection<JsonProperty>, IReadOnlyList<JsonProperty>, IReadOnlyCollection<JsonProperty>, IEnumerable<JsonProperty>, IList, ICollection, IEnumerable
Constructors
| Improve this Doc View SourceJsonPropertyCollection(Type)
Initializes a new instance of the JsonPropertyCollection class.
Declaration
public JsonPropertyCollection(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Methods
| Improve this Doc View SourceAddProperty(JsonProperty)
Adds a JsonProperty object.
Declaration
public void AddProperty(JsonProperty property)
Parameters
Type | Name | Description |
---|---|---|
JsonProperty | property | The property to add to the collection. |
GetClosestMatchProperty(String)
Gets the closest matching JsonProperty object. First attempts to get an exact case match of propertyName and then a case insensitive match.
Declaration
public JsonProperty GetClosestMatchProperty(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property. |
Returns
Type | Description |
---|---|
JsonProperty | A matching property if found. |
GetKeyForItem(JsonProperty)
When implemented in a derived class, extracts the key from the specified element.
Declaration
protected override string GetKeyForItem(JsonProperty item)
Parameters
Type | Name | Description |
---|---|---|
JsonProperty | item | The element from which to extract the key. |
Returns
Type | Description |
---|---|
System.String | The key for the specified element. |
Overrides
System.Collections.ObjectModel.KeyedCollection<System.String, Bayat.Json.Serialization.JsonProperty>.GetKeyForItem(Bayat.Json.Serialization.JsonProperty)
|
Improve this Doc
View Source
GetProperty(String, StringComparison)
Gets a property by property name.
Declaration
public JsonProperty GetProperty(string propertyName, StringComparison comparisonType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property to get. |
System.StringComparison | comparisonType | Type property name string comparison. |
Returns
Type | Description |
---|---|
JsonProperty | A matching property if found. |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable