Kind of List? ...

S

shapper

Hello,

I need to pass to a function a list of items. Each item must include
to values:

1. Method (Enum Type)

2. Value (String)

I was using:

Dim myItems As New Dictionary(Of String,
Validation.RegularExpression)

With myItems
'.Add("hello", Type.NotEmpty)
'.Add("(e-mail address removed)", Type.Email)
End With

The problem with this is that I can send two items with same value,
for example

Dim myItems As New Dictionary(Of String,
Validation.RegularExpression)

With myItems
'.Add("(e-mail address removed)", Type.NotEmpty)
'.Add("(e-mail address removed)", Type.Email)
End With

How can I solve this problem?

Maybe I should use other type of object to send to my function.

Any idea?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top