Okay so I'm trying to convert a method from Java to c#, however modPow in C# takes 3 arguments, where as in Java it only takes 2? How can I convert the following to C# -

```
BigInteger var6 = var5.modPow(var1, var2);

```

Tried the following but it returns exceptions -

```
BigInteger var6 = var5.ModPow(var1, var2);

```

stating - DivideByZero Exception, ArgumentOutOfRangeException..

which is obviously due to the fact there's only 2 arguments instead of 3, however I don't want to add a blank argument as it may cause the functionality to not work correctly.