Class TechVersionInfo
Описание версии.
Inherited Members
Namespace: Ascon.Vertical.Core
Assembly: Ascon.Vertical.Core.dll
Syntax
public class TechVersionInfo : IComparable<TechVersionInfo>, IComparable<VersionInfo>
Constructors
TechVersionInfo(TechVersionInfoDto)
Создаёт новый экземпляр класса TechVersionInfo.
Declaration
public TechVersionInfo(TechVersionInfoDto dataModel)
Parameters
| Type | Name | Description |
|---|---|---|
| TechVersionInfoDto | dataModel | Описание версии. |
TechVersionInfo(uint, uint, uint, uint)
Создаёт новый экземпляр класса TechVersionInfo.
Declaration
public TechVersionInfo(uint major, uint minor, uint patch, uint build)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | major | Основная версия. |
| uint | minor | Дополнительная версия. |
| uint | patch | Номер сервис-пака. |
| uint | build | Номер сборки. |
Properties
Build
Возвращает номер сборки.
Declaration
public uint Build { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Major
Возвращает основную версию.
Declaration
public uint Major { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Minor
Возвращает дополнительную версию.
Declaration
public uint Minor { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Patch
Возвращает номер сервис-пака.
Declaration
public uint Patch { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
CompareTo(VersionInfo)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(VersionInfo other)
Parameters
| Type | Name | Description |
|---|---|---|
| VersionInfo | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
CompareTo(VersionInfo, ushort)
Сравнивает версию с указанной версией.
Declaration
public int CompareTo(VersionInfo other, ushort level)
Parameters
| Type | Name | Description |
|---|---|---|
| VersionInfo | other | Версия с которой производится сравнение. |
| ushort | level | Уровень сравнения. |
Returns
| Type | Description |
|---|---|
| int | -1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной. |
CompareTo(TechVersionInfoDto, ushort)
Сравнивает версию с указанной версией.
Declaration
public int CompareTo(TechVersionInfoDto other, ushort level)
Parameters
| Type | Name | Description |
|---|---|---|
| TechVersionInfoDto | other | Версия с которой производится сравнение. |
| ushort | level | Уровень сравнения. |
Returns
| Type | Description |
|---|---|
| int | -1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной. |
CompareTo(TechVersionInfo?)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(TechVersionInfo? other)
Parameters
| Type | Name | Description |
|---|---|---|
| TechVersionInfo | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
CompareTo(TechVersionInfo?, ushort)
Сравнивает версию с указанной версией.
Declaration
public int CompareTo(TechVersionInfo? other, ushort level)
Parameters
| Type | Name | Description |
|---|---|---|
| TechVersionInfo | other | Версия с которой производится сравнение. |
| ushort | level | Уровень сравнения. |
Returns
| Type | Description |
|---|---|
| int | -1 если версия меньше указанной, 0 если версии равны, 1 если версия больше указанной. |
ToDto()
Возвращает описание версии.
Declaration
public TechVersionInfoDto ToDto()
Returns
| Type | Description |
|---|---|
| TechVersionInfoDto | Сформированное описание. |
ToString()
Возвращает полное строковое представление версии.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Строковое представление версии. |