Class Parser
A parser for hierarchic objects encoded as strings.
Implements
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.TreeObject
Assembly: GameStateTracker.TreeObject.dll
Syntax
public sealed class Parser : IDisposable
Methods
View SourceDispose()
Disposes the iterator.
Declaration
public void Dispose()
Parse(out INode)
Parses a node from the iterator.
Declaration
public bool Parse(out INode result)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | result | The output node. |
Returns
| Type | Description |
|---|---|
| bool | True if a node was parsed. |
TryParse(string)
Tries to parse the input string as a hierarchical object.
Declaration
public static INode? TryParse(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | The string to parse. |
Returns
| Type | Description |
|---|---|
| INode | A tree object. |