Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ValidationResult.cs
Go to the documentation of this file.
2
4
5public class ValidationResult
6{
7 public static readonly ValidationResult? Success;
8
10
11 public string? ErrorMessage { get; set; }
12
15 {
16 }
17
23
25 {
26 if (validationResult == null)
27 {
28 throw new ArgumentNullException("validationResult");
29 }
30 ErrorMessage = validationResult.ErrorMessage;
31 MemberNames = validationResult.MemberNames;
32 }
33
34 public override string ToString()
35 {
36 return ErrorMessage ?? base.ToString();
37 }
38}
ValidationResult(ValidationResult validationResult)
ValidationResult(string? errorMessage, IEnumerable< string >? memberNames)