We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0879446 commit 3731a8eCopy full SHA for 3731a8e
JixMinApi/Shared/Result.cs
@@ -3,14 +3,14 @@
3
4
public class Result<T>
5
{
6
- public bool IsSuccess { get; set; }
7
- public T? Value { get; set; }
+ public bool IsSuccess { get; init; }
+ public T? Value { get; init; }
8
9
- public bool IsError { get; set; }
10
- public Exception? Exception { get; set; }
+ public bool IsError { get; init; }
+ public Exception? Exception { get; init; }
11
12
- public bool HasValidationError { get; set; }
13
- public List<KeyValuePair<string, string>> ValidationErrors { get; set; } = new List<KeyValuePair<string, string>>();
+ public bool HasValidationError { get; init; }
+ public List<KeyValuePair<string, string>> ValidationErrors { get; init; } = new List<KeyValuePair<string, string>>();
14
15
16
public Result(T value)
0 commit comments