Try public static class Try Documentation public static bool Failure<T>(out T result) public static bool Success<T>(out T result, T value)