JArray Class
Namespace: GHIElectronics.TinyCLR.Data.Json · Assembly: GHIElectronics.TinyCLR.Data.Json
A JSON array — an ordered sequence of JToken elements.
public class JArray : JToken
Constructors
JArray()
public JArray()
No description available.
JArray(JToken[] values)
public JArray(JToken[] values)
No description available.
| Parameter | Type | Description |
|---|---|---|
values | JToken[] |
Properties
Length
public int Length { get; }
Gets length of bytes in the stream. (inherited)
Items
public JToken[] Items { get; }
No description available.
i]
public JToken this[int i] { get; }
Gets an individual member of the collection. (inherited)
Methods
Serialize(Type type, object oSource, JsonSerializerSettings settings)
public static JArray Serialize(Type type, object oSource, JsonSerializerSettings settings = null)
No description available.
| Parameter | Type | Description |
|---|---|---|
type | Type | |
oSource | object | |
settings | JsonSerializerSettings |
Returns JArray
ToString()
public override string ToString()
String representation (inherited)
Returns string
ToString(JsonSerializationOptions options)
public override string ToString(JsonSerializationOptions options)
No description available.
| Parameter | Type | Description |
|---|---|---|
options | JsonSerializationOptions |
Returns string
GetBsonSize()
public override int GetBsonSize()
No description available.
Returns int
GetBsonSize(string ename)
public override int GetBsonSize(string ename)
No description available.
| Parameter | Type | Description |
|---|---|---|
ename | string |
Returns int
ToBson(byte[] buffer, ref int offset)
public override void ToBson(byte[] buffer, ref int offset)
No description available.
| Parameter | Type | Description |
|---|---|---|
buffer | byte[] | |
offset | ref int |
GetBsonType()
public override BsonTypes GetBsonType()
No description available.
Returns BsonTypes