Class Path
Class for serializing/deserializing Paths
Inheritance
System.Object
Path
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Path : List<PathHop>
Constructors
| Improve this Doc View SourcePath()
construct a Path
Declaration
public Path()
Path(IEnumerable<PathHop>)
construct a Path from an Enumerable of Hops
Declaration
public Path(IEnumerable<PathHop> enumerable)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<PathHop> | enumerable | Path or array of HopObjects to construct a Path |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize Path
Declaration
public static Path FromJson(JToken json)
Parameters
| Type | Name | Description |
|---|---|---|
| JToken | json | json token |
Returns
| Type | Description |
|---|---|
| Path |
ToJson()
Serialize Path
Declaration
public JArray ToJson()
Returns
| Type | Description |
|---|---|
| JArray |