-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from ardalis/errors-as-readonly-collections
Expose ValidationErrors as IEnumerable to Prevent Side Effects
- Loading branch information
Showing
7 changed files
with
42 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace Ardalis.Result | ||
{ | ||
public interface IResult | ||
{ | ||
ResultStatus Status { get; } | ||
ObservableCollection<string> Errors { get; } | ||
ObservableCollection<ValidationError> ValidationErrors { get; } | ||
IEnumerable<string> Errors { get; } | ||
IEnumerable<ValidationError> ValidationErrors { get; } | ||
Type ValueType { get; } | ||
Object GetValue(); | ||
object GetValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.