Table of Contents

Struct SemVersion

Namespace
Coherence.Common
Assembly
Coherence.Common.dll
public struct SemVersion

Constructors

SemVersion(int, int, int, string, string)

public SemVersion(int major, int minor = 0, int patch = 0, string prerelease = "", string build = "")

Parameters

major int
minor int
patch int
prerelease string
build string

Properties

Build

public readonly string Build { get; }

Property Value

string

IsInitialized

public readonly bool IsInitialized { get; }

Property Value

bool

Major

public readonly int Major { get; }

Property Value

int

Minor

public readonly int Minor { get; }

Property Value

int

Patch

public readonly int Patch { get; }

Property Value

int

Prerelease

public readonly string Prerelease { get; }

Property Value

string

Methods

Compare(SemVersion, SemVersion)

public static int Compare(SemVersion versionA, SemVersion versionB)

Parameters

versionA SemVersion
versionB SemVersion

Returns

int

CompareTo(SemVersion)

public int CompareTo(SemVersion other)

Parameters

other SemVersion

Returns

int

CompareTo(object)

public int CompareTo(object obj)

Parameters

obj object

Returns

int

Equals(SemVersion)

public bool Equals(SemVersion other)

Parameters

other SemVersion

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(string)

public static SemVersion Parse(string version)

Parameters

version string

Returns

SemVersion

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SemVersion, SemVersion)

public static bool operator ==(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool

operator >(SemVersion, SemVersion)

public static bool operator >(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool

operator >=(SemVersion, SemVersion)

public static bool operator >=(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool

operator !=(SemVersion, SemVersion)

public static bool operator !=(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool

operator <(SemVersion, SemVersion)

public static bool operator <(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool

operator <=(SemVersion, SemVersion)

public static bool operator <=(SemVersion left, SemVersion right)

Parameters

left SemVersion
right SemVersion

Returns

bool