Given a hash table like:
$HashTable = @{ 'One' = 1; 'Two' = 2; 'Three' = 3 }
(which is case insensitive by default, but doesn’t has to be in every situation for my case.)
It is easy to get the related value for a specific item:
$HashTable['two'] # Or: $HashTable.get_item('two')
2
But is it also possible to get the actual key back, something like:
$HashTable.get_Key('two')
Which would return Two
(which a capital T
) rather than an error or two
in lowercase?