Gemstone Numeric Library
Show/Hide TOC

# BitExtensionsCheckBits(Int24, Bits) Method

Determines if specified bits are set.

## Definition

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

    public static bool CheckBits(
    	this Int24 source,
    	Bits bits
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Function CheckBits (
    	source As Int24,
    	bits As Bits
    ) As Boolean

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static bool CheckBits(
    	Int24 source,
    	Bits bits
    )

JavaScript
View Source Request Example

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

#### Parameters

source Int24
  Value source.
bits Bits
  Bits to check.

#### Return Value

Boolean
true if specified bits are set in source value; otherwise false.

#### 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
CheckBits Overload
Gemstone.Numeric.Int24Extensions Namespace