fluentvalidation - AbstractValidator : showing error messages with property values -
i use following pattern when importing "unknown" data. public class mycustomobject { public string mycustomdateasstring { get; set; } public datetime? mycustomdate { { datetime? returnvalue = null; datetime parseresult = datetime.minvalue; bool parseattempt = datetime.tryparse(this.mycustomdateasstring, out parseresult); if (parseattempt) { returnvalue = parseresult; } return returnvalue; } } public string mycustomintasstring { get; set; } public int? mycustomint { { int? returnvalue = null; int parseresult = 0; bool parseattempt = int.tryparse(this.mycustomintasstring, out parseresult); if (parseattempt) { returnvalue = parseresult; } return returnvalue; } } } i have working. public...