Answer by Hung Pham for IDataErrorInfo vs ValidationRule vs Exception
ValidationRule has several advantages over IDataErrorInfo:It follows the Single Responsibility Principle (SRP) since its single purpose is to perform validation. The validation logic is contained...
View ArticleAnswer by Peter Duniho for IDataErrorInfo vs ValidationRule vs Exception
I have a slightly different take on the topic, than the views presented in the other two answers:ValidationRuleThis is appropriate for validation that needs to be done before the source of a binding is...
View ArticleAnswer by Mahesh for IDataErrorInfo vs ValidationRule vs Exception
It is not good idea to use exception for error handling. Using exception will reduce performance. It is a matter of selecting and Implementing IDataErrorInfo or Creating ValidationRule....
View ArticleAnswer by JustABill for IDataErrorInfo vs ValidationRule vs Exception
This is kind of a complex request, and honestly it'll probably vary based on preference more than anything else. But, here's my understanding:Performance: Exceptions will lose nearly every time unless...
View ArticleIDataErrorInfo vs ValidationRule vs Exception
Can anyone tell me which is a better approach for Validation in WPF. Implementing IDataErrorInfoCreating ValidationRuleThrowing Exceptionsin terms of performance, memory leaks, code maintainability and...
View Article
More Pages to Explore .....