text: public override bool Equals(object other){if (!(other is java.nio.CharBuffer)){return false;}java.nio.CharBuffer otherBuffer = (java.nio.CharBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}