To check if an instance is valid we can use the following code: Validator.TryValidateObject(obj; , new ValidationContext(obj); , ...
確定! 回上一頁