Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Result<T> MyFunction()
- public ParseFailure<TOther> As<TOther>()
- {
- return new ParseFailure<TOther>(_input, _message, _expectations);
- }
- Result<OldType> firstResult = ...
- if (firstResult.Failed) return firstResult.As<NewType>();
- if (firstResult.Failed) return firstResult;
Add Comment
Please, Sign In to add comment