Parser.OrDefault<T> method (1 of 2)

Succeeds with the default value if the parser fails.

public static IParser<T> OrDefault<T>(this IParser<T> parser)

See Also


Parser.OrDefault<T> method (2 of 2)

Succeeds with the specified value if the parser fails.

public static IParser<T> OrDefault<T>(this IParser<T> parser, T value)

See Also