संपादित करें

इसके माध्यम से साझा किया गया


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

Compares two entity handles.

public:
 virtual int Compare(System::Reflection::Metadata::EntityHandle x, System::Reflection::Metadata::EntityHandle y);
public int Compare (System.Reflection.Metadata.EntityHandle x, System.Reflection.Metadata.EntityHandle y);
abstract member Compare : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.EntityHandle -> int
override this.Compare : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.EntityHandle -> int
Public Function Compare (x As EntityHandle, y As EntityHandle) As Integer

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

Compare(Handle, Handle)

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

Compares two handles.

public:
 virtual int Compare(System::Reflection::Metadata::Handle x, System::Reflection::Metadata::Handle y);
public int Compare (System.Reflection.Metadata.Handle x, System.Reflection.Metadata.Handle y);
abstract member Compare : System.Reflection.Metadata.Handle * System.Reflection.Metadata.Handle -> int
override this.Compare : System.Reflection.Metadata.Handle * System.Reflection.Metadata.Handle -> int
Public Function Compare (x As Handle, y As Handle) As Integer

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