What is the HashCode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Josema

    What is the HashCode

    Hi to all,

    In a lot of type of classes in the .net framework classes library i see that
    has the method GethashCode.

    What is the HashCode of anything, and in wich kind of functionality are used
    for?


    --
    Thanks
    Regards.
    Josema
  • KH

    #2
    RE: What is the HashCode



    GetHashCode() is defined on System.Object, so all objects have this method.


    "Josema" wrote:
    [color=blue]
    > Hi to all,
    >
    > In a lot of type of classes in the .net framework classes library i see that
    > has the method GethashCode.
    >
    > What is the HashCode of anything, and in wich kind of functionality are used
    > for?
    >
    >
    > --
    > Thanks
    > Regards.
    > Josema[/color]

    Comment

    • Chad Z. Hower aka Kudzu

      #3
      Re: What is the HashCode

      =?Utf-8?B?Sm9zZW1h?= <Jestrade@ocu.o rg> wrote in
      news:1B2509C8-C265-4169-B329-C995DF99109F@mi crosoft.com:[color=blue]
      > What is the HashCode of anything, and in wich kind of functionality are
      > used for?[/color]

      Its used for more evenly distributing collections of the object in a
      "sorted" way.


      --
      Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programmin g is an art form that fights back"

      Get your ASP.NET in gear with IntraWeb!

      Comment

      • Brian Gideon

        #4
        Re: What is the HashCode

        Lebesgue,

        Don't be sorry. The purpose of this forum is to learn. Sometimes you
        end up learning by attempting to answer someone else's question. I
        think a large percentage of us on here, including me, have been guilty
        of misinformation at some point.

        Brian

        Lebesgue wrote:[color=blue]
        > Brian,
        > you are right.
        > I just wanted to explain the principle to someone who doesn't know
        > how it all works.
        > I am sorry for possible confusion.[/color]

        Comment

        Working...