Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 731 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 731 Bytes

Result

Result Pattern in C# The Result Pattern is an alternative method for controlling flow. Traditionally, exceptions are used when errors occur: an exception is created and thrown, and the caller function catches the exception and handles it accordingly.

While this approach works, exceptions are slow and costly. Additionally, your code can become cluttered if you continually add new exceptions. Higher-level functions should not need to know the details of lower-level functions.

Therefore, using the Result Pattern is a more effective way to control flow. Examples can be found in the test project. For a more detailed explanation, please refer to the project site.

For further details, please visit the project site.