9
I need to convert the java code below to C#:
public static boolean verificaPermissao(BigInteger perm1, BigInteger perm) {
if (perm1 == null || perm == null || (perm1.equals(BigInteger.ZERO) || (perm.equals(BigInteger.ZERO))))
return false;
return !perm.and(perm1).equals(BigInteger.ZERO);
}
But I don’t know what the C# function for and
public static bool verificaPermissao(BigInteger perm1, BigInteger perm)
{
if (perm1 == null || perm == null || (perm1.IsZero) || (perm.IsZero ))
return false;
//Converter para C#
//return !perm.and(perm1).equals(BigInteger.ZERO);Converter para C#
}
The method and
does not exist in the BigInteger
of the C#.
Perfect! I thought java and did more commands than & c#. Thank you very much!
– Bertuzzi
Operator "!" cannot be Applied to operand of type 'Biginteger'
– Bertuzzi
Now yes, thank you!
– Bertuzzi