I have the following case:
Add-Type -TypeDefinition @'
public static class MyClass1
{
[DllImport .... ]
public static extern int MyClass1Function();
}
'
class MyClass2 {
static MyClass2Function() {
[MyClass1]::MyClass1Function() # this does not work (unable to find type)
}
}
What is the proper syntax to call MyClass1::MyClass1Function() from MyClass2::MyClass2Function()?