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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -