HandleComparer.Compare Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compare(EntityHandle, EntityHandle) |
Compares two entity handles. |
Compare(Handle, Handle) |
Compares two handles. |
- Source:
- HandleComparer.cs
- 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
The first entity handle to compare.
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 |
- Source:
- HandleComparer.cs
- 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
.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 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: