HandleComparer.Compare Method

Definition

Overloads

Compare(EntityHandle, EntityHandle)

Compares two entity handles.

Compare(Handle, Handle)

Compares two handles.

Compare(EntityHandle, EntityHandle)

Source:
HandleComparer.cs
Source:
HandleComparer.cs
Source:
HandleComparer.cs
Source:
HandleComparer.cs

Compares two entity handles.

C#
public int Compare(System.Reflection.Metadata.EntityHandle x, System.Reflection.Metadata.EntityHandle y);

Parameters

x
EntityHandle

The first entity handle to compare.

y
EntityHandle

The second entity handle to compare.

Returns

Zero if the two entity handles are equal, and a non-zero value of they are not.

Implements

Remarks

Returns 0 if and only if Equals(EntityHandle, EntityHandle) returns true.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

Compare(Handle, Handle)

Source:
HandleComparer.cs
Source:
HandleComparer.cs
Source:
HandleComparer.cs
Source:
HandleComparer.cs

Compares two handles.

C#
public int Compare(System.Reflection.Metadata.Handle x, System.Reflection.Metadata.Handle y);

Parameters

x
Handle

The first handle to compare.

y
Handle

The second handle to compare.

Returns

Zero if the two handles are equal, and a non-zero value if they are not.

Implements

Remarks

The order of handles that differ in kind and are not EntityHandle is undefined.

Returns 0 if and only if Equals(Handle, Handle) returns true.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0