Skip to content

Commit

Permalink
Implement IResult interface
Browse files Browse the repository at this point in the history
Implement the IResult<TValue> interface in the Result class for better type safety and consistency.
  • Loading branch information
ahmedkamalio committed Nov 15, 2024
1 parent 866abd9 commit 1e694e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ResultObject/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ public Result<T, TErrorCategory> Cast<T>() where T : notnull
/// </code>
/// </example>
public class Result<TValue>(TValue? value, ResultError<ErrorCategory>? error)
: Result<TValue, ErrorCategory>(value, error) where TValue : notnull;
: Result<TValue, ErrorCategory>(value, error), IResult<TValue> where TValue : notnull;
2 changes: 1 addition & 1 deletion src/ResultObject/ResultObject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- NuGet Package Metadata -->
<Title>.Net ResultObject</Title>
<PackageId>ResultObject</PackageId>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<Authors>Ahmed Kamal</Authors>
<Description>A robust Result type for .NET with built-in error categorization, supporting type-safe success/failure scenarios without exceptions.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit 1e694e8

Please sign in to comment.