Publisher | Ahmed Kamal |
---|---|
File size | 20.77kB |
Number of files | 15 |
Latest version | 1.0.0 |
Latest release date | 2025-01-21 04:10:16 |
First release date | 2025-01-21 04:10:16 |
Supported Unity versions | 2018.4.2 or higher |
This is a focused C# package implementing the Result pattern - it's not genre-specific but rather a fundamental programming utility. The package provides a way to handle operation outcomes (success/failure) in code.
The provided content consists of:
- Core Components:
- IResult<T> - The main interface defining the Result pattern
- Result<T> - The implementation class with success/failure variants
- ResultError - Structure for error representation
- Unit - A utility type for void operations
- Features and Customization:
- Fully customizable error messages and error codes
- Extendable through inheritance/composition
- Test suite included for reference and validation
- Clear XML documentation with examples
The code is production-ready but could be enhanced by:
- Adding custom error types
- Implementing additional functional operators
- Creating domain-specific error codes