public bool HasValue(BigInteger x) { return(null != x // Fast check to avoid allocation && DerInteger.IntValue(bytes, start, DerInteger.SignExtSigned) == x.IntValue && Value.Equals(x)); }
public bool HasValue(int x) { return((bytes.Length - start) <= 4 && DerInteger.IntValue(bytes, start, DerInteger.SignExtSigned) == x); }