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