Как вы называете общий статический метод пользовательского класса в Powershell?
Учитывая следующий класс:
public class Sample
{
public static string MyMethod<T>( string anArgument )
{
return string.Format( "Generic type is {0} with argument {1}", typeof(T), anArgument );
}
}
И это скомпилировано в сборку "Classes.dll" и загружается в PowerShell следующим образом:
Add-Type -Path "Classes.dll"
Какой самый простой способ вызвать метод MyMethod?