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
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