Class JsonObject
Represents the json object.
Inheritance
Namespace: SimpleJson
Assembly: FunctionMonkey.Compiler.MSBuild.dll
Syntax
public class JsonObject : IDictionary<string, object>
Constructors
| Improve this Doc View SourceJsonObject()
Initializes a new instance of Json
Declaration
public JsonObject()
JsonObject(IEqualityComparer<String>)
Initializes a new instance of Json
Declaration
public JsonObject(IEqualityComparer<string> comparer)
Parameters
Type | Name | Description |
---|---|---|
IEquality |
comparer | The System. |
Properties
| Improve this Doc View SourceCount
Gets the count.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
The count. |
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System. |
|
Item[Int32]
Gets the
Declaration
public object this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
index |
Property Value
Type | Description |
---|---|
System. |
Item[String]
Gets or sets the
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System. |
key |
Property Value
Type | Description |
---|---|
System. |
Keys
Gets the keys.
Declaration
public ICollection<string> Keys { get; }
Property Value
Type | Description |
---|---|
ICollection<System. |
The keys. |
Values
Gets the values.
Declaration
public ICollection<object> Values { get; }
Property Value
Type | Description |
---|---|
ICollection<System. |
The values. |
Methods
| Improve this Doc View SourceAdd(KeyValuePair<String, Object>)
Adds the specified item.
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
Key |
item | The item. |
Add(String, Object)
Adds the specified key.
Declaration
public void Add(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
value | The value. |
Clear()
Clears this instance.
Declaration
public void Clear()
Contains(KeyValuePair<String, Object>)
Determines whether [contains] [the specified item].
Declaration
public bool Contains(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
Key |
item | The item. |
Returns
Type | Description |
---|---|
System. |
|
ContainsKey(String)
Determines whether the specified key contains key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
Returns
Type | Description |
---|---|
System. |
|
CopyTo(KeyValuePair<String, Object>[], Int32)
Copies to.
Declaration
public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
Key |
array | The array. |
System. |
arrayIndex | Index of the array. |
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Key |
Remove(KeyValuePair<String, Object>)
Removes the specified item.
Declaration
public bool Remove(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
Key |
item | The item. |
Returns
Type | Description |
---|---|
System. |
Remove(String)
Removes the specified key.
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
Returns
Type | Description |
---|---|
System. |
ToString()
Returns a json System.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A json System. |
TryGetValue(String, out Object)
Tries the get value.
Declaration
public bool TryGetValue(string key, out object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
value | The value. |
Returns
Type | Description |
---|---|
System. |