Results 1 to 3 of 3

Thread: [2.0] is sortedlist (in c#) same as Hash table (in vb.net)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    [2.0] is sortedlist (in c#) same as Hash table (in vb.net)

    Is SortedList (in C#) same as Hash table(in vb.net)?

    thanks

    sorry for posting second time.

  2. #2
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    710

    Re: [2.0] is sortedlist (in c#) same as Hash table (in vb.net)

    Both of these are common to all .NET languages.
    David Anton
    Convert between VB, C#, C++, & Java
    www.tangiblesoftwaresolutions.com

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] is sortedlist (in c#) same as Hash table (in vb.net)

    As David says, they are both members of the System.Collections namespace. They behave similarly but if you enumerate a SortedList the items will be returned ordered by key. The Hashtable cares nothing for order. You can get the keys and then get the values that correspond to those keys but no representation is made about what order the keys will be returned in.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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