I want to create a Object thet reports all data collisions and it needs to return lists of (diffrent objects) that collide with each other.
The first step was to create a generic interface holding a list(OF T)
like so:
These lists should be added to a object to hold all colliding issues in seperate Lists... and that's Where I get stuck this code goes wrong because a specification of the Type of IValidationResult like:Code:Public Interface IValidationResult(Of T) ReadOnly Property ResultList() As IList(Of T) ReadOnly Property ResultCount() As Integer End Interface
IValidationResult(Of Persons)
is needed but I want to add diffrent Hardtyped lists to the object like
A list of Conflicting PersonData:
IValidationResult(Of Persons)
A list of conflicting Securityroles
IValidationResult(Of SecurityRoles)
A list of Conflicting SaldoItems
A list ofIValidationResult(Of SaldoItems)
How to achieve this goal with strong typed lists wich can be refered so in the code using this error reporting?Code:Public Interface IValidationResults ReadOnly Property IsValid() As Boolean ReadOnly Property ResultLists() As IList(Of IValidationResult) ReadOnly Property ResultListsCount() As Integer ReadOnly Property ResultCount(ByVal ListIndex As Integer) As Integer Sub AddList(ByVal ValidationResult As IValidationResult) End Interface
Thanks in Advance


Reply With Quote
