Table of Contents

Method BitwiseXor

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

BitwiseXor(string, int)

Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").

public UpdateBuilder BitwiseXor(string name, int value)

Parameters

name string

The name of the element to be modified.

value int

The value to be xor-ed with the current value.

Returns

UpdateBuilder

The builder (so method calls can be chained).

BitwiseXor(string, long)

Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").

public UpdateBuilder BitwiseXor(string name, long value)

Parameters

name string

The name of the element to be modified.

value long

The value to be xor-ed with the current value.

Returns

UpdateBuilder

The builder (so method calls can be chained).