Gets the parse result value on success, or the default value on failure.

```csharp
public static T? GetValueOrDefault<T>(this IParseResult<T> result)
```

## See Also

* interface [IParseResult&lt;T&gt;](../IParseResult-1.md)
* class [ParseResult](../ParseResult.md)
* namespace [Faithlife.Parsing](../../Faithlife.Parsing.md)

---

# ParseResult.GetValueOrDefault&lt;T&gt; method (2 of 2)

Gets the parse result value on success, or the default value on failure.

```csharp
public static T? GetValueOrDefault<T>(this IParseResult<T> result, T? defaultValue)
```

## See Also

* interface [IParseResult&lt;T&gt;](../IParseResult-1.md)
* class [ParseResult](../ParseResult.md)
* namespace [Faithlife.Parsing](../../Faithlife.Parsing.md)

<!-- DO NOT EDIT: generated by xmldocmd for Faithlife.Parsing.dll -->
