.net - How to compare the values in the dictionary with the new values? -
i have dictionary variable having 2 values have retrieved db. need update values in db , while updating need check whether updated values exists in dictionary values or not. how can compare. far have done much. please me whether right or wrong.
retrieving datas db , stoing in dictionary variable "dictionaryname"
for each row datarow in ds.tables(0).rows dictionaryname.add(row("engmemid").tostring(), row("engmememail").tostring()) next
after have compare mew value.
dim pair keyvaluepair(of string, string) each pair in dictionaryname if dictionaryname.containskey(newmember.engmemid) ---condition compare emailid's notifyonupdate(newmember) --- end if next
after comparing containskey(), how can compare old , new email id's.
please me compare these 2 values, dictionary new value.
thanks,
udhaya s.
try this
dim oldvalue string if memberemailllist.trygetvalue(engmemid, oldvalue) andalso oldvalue <> engmememail notifyonupdate(newmember) end if
Comments
Post a Comment