Читати англійською Редагувати

Поділитися через


SortVersion.Equals Method

Definition

Returns a value that indicates whether two SortVersion instances are equal.

Overloads

Equals(SortVersion)

Returns a value that indicates whether this SortVersion instance is equal to a specified SortVersion object.

Equals(Object)

Returns a value that indicates whether this SortVersion instance is equal to a specified object.

Equals(SortVersion)

Source:
SortVersion.cs
Source:
SortVersion.cs
Source:
SortVersion.cs

Returns a value that indicates whether this SortVersion instance is equal to a specified SortVersion object.

C#
public bool Equals(System.Globalization.SortVersion? other);
C#
public bool Equals(System.Globalization.SortVersion other);

Parameters

other
SortVersion

The object to compare with this instance.

Returns

true if other represents the same version as this instance; otherwise, false.

Implements

Remarks

Two SortVersion objects are equal if their FullVersion and SortId properties are equal.

See also

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Equals(Object)

Source:
SortVersion.cs
Source:
SortVersion.cs
Source:
SortVersion.cs

Returns a value that indicates whether this SortVersion instance is equal to a specified object.

C#
public override bool Equals(object? obj);
C#
public override bool Equals(object obj);

Parameters

obj
Object

An object to compare with this instance.

Returns

true if obj is a SortVersion object that represents the same version as this instance; otherwise, false.

Remarks

Two SortVersion objects are equal if their FullVersion and SortId properties are equal.

See also

Applies to

.NET 10 та інші версії
Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1