The text of this article is not in this database — only its details are. Read it on the old site: Validation Using Data Annotation to Custom Model or Class
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Maruthi PalllamalliPosted Dec 1, 2015, 3:49 AM
public class validateInspector : IParameterInspector{ public void AfterCall(string operationName, object[] outputs, object returnValue, object correlationState) { // throw new NotImplementedException(); } public object BeforeCall(string operationName, object[] inputs) { if(operationName=="Your methodname") { // Todo: Perform Validation context here. // Where object[] inputs having your parametre values } return ""; } }
sai kiranPosted Jul 26, 2014, 2:30 AM
I need a custom validator which compares the two properties like minimum salary should less than maxsalary.
Danton MouraPosted Jul 10, 2013, 2:56 PM
uhuh
aycPosted Sep 24, 2012, 5:59 AM
what about custom validation.i require 1 demo for custom validation in metro application c#