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 do not know what the function in C # is 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 and
method does not exist in BigInteger
of C #.