/// <summary> /// Is this a failed ParseResult with the given error message? /// </summary> public static bool IsFailed <T>(this ParseResult <T> parseResult, string message) { return(parseResult.IsFailed && message == parseResult.AsFailed().Item); }