Last active
January 10, 2018 22:14
-
-
Save Chirishman/1fbc06ac744b07a7e5430e10232905fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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