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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -