Table of Contents

Method TryFrom

Namespace
Ubiquity.NET.Versioning
Assembly
Ubiquity.NET.Versioning.dll

TryFrom(SemVer, out CSemVerCI, out Exception)

Tries to convert a SemVer to a CSemVerCI

public static bool TryFrom(SemVer ver, out CSemVerCI result, out Exception reason)

Parameters

ver SemVer

Version to convert

result CSemVerCI

Resulting CSemVerCI if conversion is possible

reason Exception

Reason why ver is not convertible to a CSemVerCI

Returns

bool

true if conversion is successful and result contains a valid value. false if conversion is not successful and reason contains the reason.