Click here to Skip to main content
15,886,639 members

Comments by Member 11090364 (Top 3 by date)

Member 11090364 17-Apr-16 6:53am View    
Yes.
When I've put break-point here:
public override bool IsValid(object value)
{
int id = (int)value;
if (id > 0)
return true;
throw new Exception("Error");
}
it does not reach this code.
Member 11090364 17-Apr-16 6:29am View    
Yes, but why the MyValidationAttribute does not lead to exception even the id is a negative number?
Member 11090364 17-Apr-16 6:21am View    
Deleted
Yes, but why the MyValidationAttribute does not lead to exception even the id is a negative number?