What Type does Powershells `Get-Member` show -
i use powershell write database exporter.
i have datarows, serialized via export-clixml 'data.xml'. these datarows have column value.
i read first row via $row = (import-clixml 'data.xml')[0].
if check it's type, via $row.value -is [system.management.automation.pscustomobject] true
if use get-member on value, $row.value | get-member, output
typename: deserialized.system.dbnull i kind of expected system.management.automation.pscustomobject.
where type get-member shows me come from?
if @ $row.value.psobject.typenames you'll see deserialized.system.dbnull first in list.
also see this answer keith hill , msdn on typenames property.
Comments
Post a Comment