Results 1 to 4 of 4

Thread: [RESOLVED] Store Objects with Key in some sort of Collection/Dictionary

Threaded View

  1. #4

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Store Objects with Key in some sort of Collection/Dictionary

    Yes, the Dictionary should work. I didn't understand why it needed a KeyValuePair as parameter when calling Contains, but now i see should use:
    vb.net Code:
    1. If Not d.Keys.Contains("one") Then
    2.   '...
    3. End If
    I will try this, thanks!

    EDIT: Exacly what you said in your last post. And as an alternative: d.ContainsKey("one")

    Thanks.
    Last edited by jcis; Jun 10th, 2012 at 07:11 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width