Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# PSObject转换已反序列化。System.Collections.Generic.List_C#_.net_Generics_Powershell Remoting - Fatal编程技术网

C# PSObject转换已反序列化。System.Collections.Generic.List

C# PSObject转换已反序列化。System.Collections.Generic.List,c#,.net,generics,powershell-remoting,C#,.net,Generics,Powershell Remoting,在c#中,我试图调用powershell命令let并将其转换为c#对象并处理数据 召唤 获取SCVirtualNetworkAdapter-全部 响应对象之一: IPv4Addresses : {12.12.12.12} 成员类型为 反序列化的.System.Collections.Generic.List`1[[System.String, mscorlib,版本=4.0.0.0,区域性=中性, PublicKeyToken=b77a

在c#中,我试图调用powershell命令let并将其转换为c#对象并处理数据

召唤

获取SCVirtualNetworkAdapter-全部

响应对象之一:

IPv4Addresses                              : {12.12.12.12}
成员类型为

反序列化的.System.Collections.Generic.List`1[[System.String, mscorlib,版本=4.0.0.0,区域性=中性, PublicKeyToken=b77a5c561934e089]]属性


如何将特定的PSObject转换为字符串,列出

我找到了解决方案

新的ArrayList(((ArrayList)((PSObject)(vNetworkAdapter.Members[“IPv4Addresses”].Value)).BaseObject)))