Namespace Common.Entities.Net35 Public Class BusinessObjectBase(Of T As BusinessObjectBase(Of T)) Inherits Rahul.Common.Entities.BusinessObjectBase(Of T) ''<remarks> '' Copyright (c) 2008, Rahul Singla (See License.txt) '' </remarks> Protected Overrides Function validateProperty(ByVal propertyName As String, ByVal ruleSet As String, ByVal validationSpecificationSource As Microsoft.Practices.EnterpriseLibrary.Validation.ValidationSpecificationSource, ByVal types() As System.Type, ByVal index() As Object) As Microsoft.Practices.EnterpriseLibrary.Validation.ValidationResults Dim rule As New EnterpriseValidationRule rule.SourceTypeName = Me.GetType().AssemblyQualifiedName rule.PropertyName = propertyName rule.RulesetName = ruleSet rule.ValidationSpecificationSource = validationSpecificationSource Return (rule.Validate(Me.GetType.GetProperty(propertyName, types).GetValue(Me, index))) End Function End Class End Namespace
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)