Object Validator and Object Collection Validator

Topics: Validation Application Block
Jul 5, 2009 at 7:03 PM

Hi, I am a newbie in EntLib. Could any one give me some simple application that uses Object Validator and Object Collection Validator. Thank you.

Jul 6, 2009 at 6:37 AM

Hi,

You may read the the provided documentation of the Enterprise Library :

ObjectValidator: Taken from the documentation "This validator causes validation to occur on an object reference. All validators defined for the object's type will be invoked, just as if the Validation.Validate method had been called on the object." More on the link below.

http://msdn.microsoft.com/en-us/library/dd140080.aspx

ObjectCollectionValidator: Taken from the documentation "This validator checks that the object is a collection of the specified type and then invokes validation on each element of the collection." More on the link below.

http://msdn.microsoft.com/en-us/library/dd140026.aspx

For the sample application, you may send us a mail and well send back the sample application.

 

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com