Gemstone Numeric Library
Show/Hide TOC

# BitExtensionsToggleBits(UInt24, Bits) Method

Returns value with specified bits toggled.

## Definition

Namespace: Gemstone.Numeric.UInt24Extensions
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.174 -- Release Build+c5b1b4a29589adca9a2c6916813ee5c7c2cee966
C#
View Source Request Example

    public static UInt24 ToggleBits(
    	this UInt24 source,
    	Bits bits
    )

VB
View Source Request Example

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

C++
View Source Request Example

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

JavaScript
View Source Request Example

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

#### Parameters

source UInt24
  Value source.
bits Bits
  Bits to toggle.

#### Return Value

UInt24
UInt24 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 UInt24. 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.UInt24Extensions Namespace