Class StArray
Class for serializing and deserializing Arrays of Objects
Inheritance
System.Object
StArray
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class StArray : List<StObject>, ISerializedType
Constructors
| Improve this Doc View SourceStArray()
Construct an STArray
Declaration
public StArray()
StArray(IEnumerable<StObject>)
Construct an STArray from an Array of JSON Objects
Declaration
public StArray(IEnumerable<StObject> collection)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<StObject> | collection | Array of JSON Objects |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize StArray
Declaration
public static StArray FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json token |
Returns
Type | Description |
---|---|
StArray |
FromParser(BinaryParser, Nullable<Int32>)
Construct a StArray from a BinaryParser
Declaration
public static StArray FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | A BinaryParser to read StArray from |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
StArray |
ToBytes(IBytesSink)
to bytes Sink
Declaration
public void ToBytes(IBytesSink sink)
Parameters
Type | Name | Description |
---|---|---|
IBytesSink | sink | bytes Sink container |
ToJson()
Get the JSON representation of this type
Declaration
public JToken ToJson()
Returns
Type | Description |
---|---|
JToken |