One of the properties (identity
) in my PSObject object is a hashtable like this which is returned from PowerShell:
@{name=something; Number=87354}
This is what I'm trying to do:
foreach (PSObject ticket in tickets)
{
var a = ticket.Properties["identity"].Value;
System.Diagnostics.Debug.WriteLine(a.name); //error
}
How can I access the properties inside of the hashtable?