No.
After some re-thinking, this does not solve my problem.
I want to validate the value ("MyCode") from the Code property form the Product class. The way you explain is that when I do a new Product(), the Code field is set to null, so validation will always fail.
What I should do is varresult
=validator.Validate(newProduct { Code = "MyCode"},x
=>x.Code); But I want generic code to do
this.