Επεξεργασία

Κοινή χρήση μέσω


CLong Struct

Definition

Important

This API is not CLS-compliant.

CLong is an immutable value type that represents the 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 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.

public value class CLong : IEquatable<System::Runtime::InteropServices::CLong>
[System.CLSCompliant(false)]
public readonly struct CLong : IEquatable<System.Runtime.InteropServices.CLong>
[<System.CLSCompliant(false)>]
type CLong = struct
Public Structure CLong
Implements IEquatable(Of CLong)
Inheritance
Attributes
Implements

Constructors

CLong(Int32)

Constructs an instance from a 32-bit integer.

CLong(IntPtr)

Constructs an instance from a native sized integer.

Properties

Value

The underlying integer value of this instance.

Methods

Equals(CLong)

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