Whether $(D_KEYWORD this) and that are equal.
ErrorCode ec1 = ErrorCode.fault; ErrorCode ec2 = ErrorCode.accessDenied; assert(ec1 != ec2); assert(ec1 != ErrorCode.accessDenied); assert(ErrorCode.fault != ec2);
ErrorCode ec1 = ErrorCode.fault; ErrorCode ec2 = ErrorCode.fault; assert(ec1 == ec2); assert(ec1 == ErrorCode.fault); assert(ErrorCode.fault == ec2);
Equality with another error code or error code number.