Hi All,
I resolved my problem using following line of code.
bool ValidationResult = Validator.TryValidateProperty(typeof(T).GetProperty(PeropertyName).Name, new ValidationContext(t, null, null) { MemberName = PeropertyName} , ValidationMessages);
In the first form, I am passing in the name of the property, i.e. "Description". In the second form, I am passing in the value of the property, i.e. "". To make the first call look like the second:
typeof(T).GetProperty(PeropertyName).GetValue(t,null)
SOLUTION
bool ValidationResult = Validator.TryValidateProperty(typeof(T).GetProperty(PeropertyName).GetValue(t,null), new ValidationContext(t, null, null) { MemberName = PeropertyName} , ValidationMessages);