Microsoft.Practices.EnterpriseLibrary.Common.ArgumentValidation

Topics: Exception Handling Application Block, Validation Application Block
Feb 24, 2009 at 9:38 PM
I'm converting from EntLib 1.1 June 2005 to EntLib 4.1.  I have some code wrappers that leveraged the old Microsoft.Practices.EnterpriseLibrary.Common.ArgumentValidation class for 

CheckForEmptyString, and CheckForNullReference. What are the equivalent methods in 4.1 entlib?

 

Feb 25, 2009 at 2:23 AM
Much has changed since the 1.1 version, one of those is the introduction of Validation Application block in 3.0.  You're going to have to use a different approach then.  Check out the VAB, it's not hard to use.  It has a NotNullValidator and a StringLengthValidator which would suit your checking for nullreference and empty strings respectively.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com