My Project
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
PlayFab.Json.JsonObject Class Reference

Represents the json object. More...

Inheritance diagram for PlayFab.Json.JsonObject:

Public Member Functions

 JsonObject ()
 Initializes a new instance of JsonObject.
 
 JsonObject (IEqualityComparer< string > comparer)
 Initializes a new instance of JsonObject.
 
void Add (string key, object value)
 Adds the specified key.
 
bool ContainsKey (string key)
 Determines whether the specified key contains key.
 
bool Remove (string key)
 Removes the specified key.
 
bool TryGetValue (string key, out object value)
 Tries the get value.
 
void Add (KeyValuePair< string, object > item)
 Adds the specified item.
 
void Clear ()
 Clears this instance.
 
bool Contains (KeyValuePair< string, object > item)
 Determines whether [contains] [the specified item].
 
void CopyTo (KeyValuePair< string, object >[] array, int arrayIndex)
 Copies to.
 
bool Remove (KeyValuePair< string, object > item)
 Removes the specified item.
 
IEnumerator< KeyValuePair< string, object > > GetEnumerator ()
 Gets the enumerator.
 
override string ToString ()
 Returns a json T:System.String that represents the current T:System.Object.
 

Properties

object this[int index] [get]
 Gets the System.Object at the specified index.
 
ICollection< string > Keys [get]
 Gets the keys.
 
ICollection< object > Values [get]
 Gets the values.
 
object this[string key] [get, set]
 Gets or sets the System.Object with the specified key.
 
int Count [get]
 Gets the count.
 
bool IsReadOnly [get]
 Gets a value indicating whether this instance is read only.
 

Detailed Description

Represents the json object.

Constructor & Destructor Documentation

◆ JsonObject()

PlayFab.Json.JsonObject.JsonObject ( IEqualityComparer< string >  comparer)
inline

Initializes a new instance of JsonObject.

Parameters
comparerThe T:System.Collections.Generic.IEqualityComparer`1 implementation to use when comparing keys, or null to use the default T:System.Collections.Generic.EqualityComparer`1 for the type of the key.

Member Function Documentation

◆ Add() [1/2]

void PlayFab.Json.JsonObject.Add ( KeyValuePair< string, object >  item)
inline

Adds the specified item.

Parameters
itemThe item.

◆ Add() [2/2]

void PlayFab.Json.JsonObject.Add ( string  key,
object  value 
)
inline

Adds the specified key.

Parameters
keyThe key.
valueThe value.

◆ Contains()

bool PlayFab.Json.JsonObject.Contains ( KeyValuePair< string, object >  item)
inline

Determines whether [contains] [the specified item].

Parameters
itemThe item.
Returns
true if [contains] [the specified item]; otherwise, false.

◆ ContainsKey()

bool PlayFab.Json.JsonObject.ContainsKey ( string  key)
inline

Determines whether the specified key contains key.

Parameters
keyThe key.
Returns
true if the specified key contains key; otherwise, false.

◆ CopyTo()

void PlayFab.Json.JsonObject.CopyTo ( KeyValuePair< string, object >[]  array,
int  arrayIndex 
)
inline

Copies to.

Parameters
arrayThe array.
arrayIndexIndex of the array.

◆ GetEnumerator()

IEnumerator< KeyValuePair< string, object > > PlayFab.Json.JsonObject.GetEnumerator ( )
inline

Gets the enumerator.

Returns

◆ Remove() [1/2]

bool PlayFab.Json.JsonObject.Remove ( KeyValuePair< string, object >  item)
inline

Removes the specified item.

Parameters
itemThe item.
Returns

◆ Remove() [2/2]

bool PlayFab.Json.JsonObject.Remove ( string  key)
inline

Removes the specified key.

Parameters
keyThe key.
Returns

◆ ToString()

override string PlayFab.Json.JsonObject.ToString ( )
inline

Returns a json T:System.String that represents the current T:System.Object.

Returns
A json T:System.String that represents the current T:System.Object.

◆ TryGetValue()

bool PlayFab.Json.JsonObject.TryGetValue ( string  key,
out object  value 
)
inline

Tries the get value.

Parameters
keyThe key.
valueThe value.
Returns

Property Documentation

◆ Count

int PlayFab.Json.JsonObject.Count
get

Gets the count.

The count.

◆ IsReadOnly

bool PlayFab.Json.JsonObject.IsReadOnly
get

Gets a value indicating whether this instance is read only.

true if this instance is read only; otherwise, false.

◆ Keys

ICollection<string> PlayFab.Json.JsonObject.Keys
get

Gets the keys.

The keys.

◆ this[int index]

object PlayFab.Json.JsonObject.this[int index]
get

Gets the System.Object at the specified index.

◆ this[string key]

object PlayFab.Json.JsonObject.this[string key]
getset

Gets or sets the System.Object with the specified key.

◆ Values

ICollection<object> PlayFab.Json.JsonObject.Values
get

Gets the values.

The values.


The documentation for this class was generated from the following file: