Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Get Hash Code of Tuple

$
0
0

Summary: Learn how to get the hash code of a tuple by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to get the hash code for a tuple?

Hey, Scripting Guy! Answer Call the GetHashCode method from your Tuple object—for example,
            this command creates a tuple and obtains the hash code of it:

$t = [tuple]::Create(1,2)

$t.GetHashCode()

    This can also be accomplished in a single line:

[tuple]::Create(1,2).gethashcode()


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>