I have my own dll , which is written in C #.
Now I want to call it from my powershell script.
I have done the following:
[System.Reflection.Assembly]::LoadFile("E:\MyClass.dll") $MyCompObj = New-Object MyClass.Student
But when I do this, it gives me an error
Constructor not found. Unable to find a suitable constructor for type MyClass.Student
Am I really wrong to do this?
Please help me fix this.
source share