Skip to content

Public token key

Smart    Lucky

Smart Lucky

Asked Jan 18, 2012, 2:42 AM EST1 answer
Share
LinkedInX
Hi
can any one tell me what is the functionality of public key token in assembly.............?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    The public key token is used to make the assembly name unique.
    A public key token.
    This is a 64-bit hash of the public key that corresponds to the private key used to sign the assembly.
    A signed assembly is said to have a strong name.

    http://en.wikipedia.org/wiki/Public_key
    http://en.wikipedia.org/wiki/.NET_assembly

    A public key token is used to identify the organization in a strongly named assembly.
    This information is added to the assembly metabase.

    If you want to view the metabase of an assembly, use ILDASM.
    You can drill down into what is stored in the metabase in addition to seeing the IL.
    0