c# - how to call my dll and use it in powershell script -
i have own dll
written in c#.
want call powershell
script.
did following;
[system.reflection.assembly]::loadfile("e:\myclass.dll") $mycompobj = new-object myclass.student
but when executing that, giving me error
constructor not found. cannot find appropriate constructor type myclass.student
am following wrong way this??
please me fix this.
your class has got constructors (at least one). create object params
$mycompobj = new-object myclass.student -argumentlist "arg1","arg2" ...
Comments
Post a Comment