Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Comare two key's of hash table

How to Comare two key's of hash table

Scheduled Pinned Locked Moved ASP.NET
data-structurescryptographyhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chandragupta k
    wrote on last edited by
    #1

    hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta

    P G 2 Replies Last reply
    0
    • C chandragupta k

      hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta

      P Offline
      P Offline
      Piyush Vardhan Singh
      wrote on last edited by
      #2

      plz described in brief

      Piyush Vardhan Singh Programmer TAS NewDelhi India

      1 Reply Last reply
      0
      • C chandragupta k

        hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        The keys of a HashTable are stored as object, so you need to cast the keys to the actual type that you are using for key, before you can make a useful comparison between them. If you are using framework 2, you should be using a Dictionary instead of a HashTable. Then the keys are not stored as object, so you don't have to cast them to use them.

        --- single minded; short sighted; long gone;

        C 1 Reply Last reply
        0
        • G Guffa

          The keys of a HashTable are stored as object, so you need to cast the keys to the actual type that you are using for key, before you can make a useful comparison between them. If you are using framework 2, you should be using a Dictionary instead of a HashTable. Then the keys are not stored as object, so you don't have to cast them to use them.

          --- single minded; short sighted; long gone;

          C Offline
          C Offline
          chandragupta k
          wrote on last edited by
          #4

          Thanks Guffa i got it

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups