Classes/Getter.psm1

1
2
3
4
5
6
7
8
9
10
Add-Type -Verbose -TypeDefinition @'
public static class Getter
{
    public static object Get(System.Object client, System.String path, System.Object args, System.Type type)
    {
        var method = client.GetType().GetMethod("Get");
        return method.MakeGenericMethod(type).Invoke(client, new object[] { path, args });
    }
}
'@