Skip to content

dcyuksel/Result

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.