Skip to content

Instantly share code, notes, and snippets.

@Chirishman
Last active January 10, 2018 22:14
Show Gist options
  • Save Chirishman/1fbc06ac744b07a7e5430e10232905fb to your computer and use it in GitHub Desktop.
Save Chirishman/1fbc06ac744b07a7e5430e10232905fb to your computer and use it in GitHub Desktop.
#Lookup Notmatch
$Event = @{
[int64]12 = "Boot"
13 = "Shutdown"
}
@($event[[int64]12],$event[12],$event[13],$event[[int64]13]) | % { Write-Output "Result: $_" }
#Can and Can't Be Defined
$Works = @{
[int16]12 = "Why"
[int64]12 = "Boot"
12 = "Shutdown"
}
$DoesNotWork = @{
[int16]12 = "Why"
[int64]12 = "Boot"
12 = "Shutdown"
"12" = "lulz"
}
#Can't and Can be defined
$DoesNotWork = @{1=10;'1'=20}
$works = @{1=10}; $works.'1'=20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment