Gemstone Numeric Library
Show/Hide TOC

# BitExtensionsToggleBits(Int24, Int24) Method

Returns value with specified bits toggled.

## Definition

Namespace: Gemstone.Numeric.Int24Extensions
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.141 -- Release Build+e5ae2e0249fc474e157002adefe3c67e31d30852
C#
View Source Request Example

    public static Int24 ToggleBits(
    	this Int24 source,
    	Int24 bits
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Function ToggleBits (
    	source As Int24,
    	bits As Int24
    ) As Int24

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static Int24 ToggleBits(
    	Int24 source,
    	Int24 bits
    )

JavaScript
View Source Request Example

    Gemstone.Numeric.Int24Extensions.BitExtensions.ToggleBits = function(source, bits);

#### Parameters

source Int24
  Value source.
bits Int24
  Bit-mask of the bits to toggle.

#### Return Value

Int24
Int24 value with specified bits toggled.

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int24. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

## See Also

#### Reference

BitExtensions Class
ToggleBits Overload
Gemstone.Numeric.Int24Extensions Namespace