CULong Struct

Definition

Important

This API is not CLS-compliant.

CULong is an immutable value type that represents the unsigned long type in C and C++. It is meant to be used as an exchange type at the managed/unmanaged boundary to accurately represent in managed code unmanaged APIs that use the unsigned long type. This type has 32-bits of storage on all Windows platforms and 32-bit Unix-based platforms. It has 64-bits of storage on 64-bit Unix platforms.

C#
[System.CLSCompliant(false)]
public readonly struct CULong : IEquatable<System.Runtime.InteropServices.CULong>
Inheritance
CULong
Attributes
Implements

Constructors

CULong(UInt32)

Constructs an instance from a 32-bit unsigned integer.

CULong(UIntPtr)

Constructs an instance from a native sized unsigned integer.

Properties

Value

The underlying integer value of this instance.

Methods

Equals(CULong)

Returns a value indicating whether this instance is equal to a specified CLong value.

Equals(Object)

Returns a value indicating whether this instance is equal to a specified object.

GetHashCode()

Returns the hash code for this instance.

ToString()

Converts the numeric value of this instance to its equivalent string representation.

Applies to

Product Versions
.NET 6, 7, 8, 9