ExceptionSafe is a utility library for swallowing exceptions.
- Install the package from NuGet.
using ExceptionSafe;
// rest of the codes...
//
var mayFail = () => _get<T>(key);
return mayFail.ExceptionSafeExecute(); // will not fail instead returns default value if failed
//
// rest of the codes...
ExceptionSafe is released under the MIT License. You can find the full license details in the LICENSE file.
Made with ❤️ by NightmareGaurav.