【发布时间】:2022-10-19 21:37:07
【问题描述】:
我试图通过 powershell 从 c# dll 调用一个函数,它需要一个对象数组作为参数,我需要在其中传递字符串,但我不知道如何。
我需要做什么:
C#版本:
printCustom(new object[] {new string[] {"hello", "its", "working"}});
我需要从powershell调用这个函数但是如何传递参数?
printCustom([object[]]@(//now?//));
谢谢。
【问题讨论】:
-
printCustom是静态方法还是实例方法? -
printCustom是静态的
标签: c# powershell