Closed miltoncamara closed 7 years ago
Can let user validate a custom function.
var isValidPerson = new ValidationContract() .Must(IsValidPerson, new Person("Milton", "Camara", 15), "This person cannot buy tickets");
Nice!
For performance purposes we excluded the use of reflection. You can compare two objects implementing IComparable interface. Will create an issue to implement it (But without reflection).
Can let user validate a custom function.