Category: Validation

  • IValidatableObject and IDataErrorInfo

    At the beginning it was IDataErrorInfo. Next,it came IValidatableObject. And,because some GUI frameworks implement one and not other,I must think to a common way to validate once . My choice was to validate with IValidatableObject and IDataErrorInfo just re-send data. I made an example with a class User which has UserName,UserEmail and UserPassword. Without much…