Quantcast
Channel: IDataErrorInfo vs ValidationRule vs Exception - Stack Overflow
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

IDataErrorInfo 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>