Table of Contents

Method TryParse

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

TryParse(string?, IFormatProvider?, out SemVer)

Tries to parse a string into a value.

public static bool TryParse(string? s, IFormatProvider? provider, out SemVer result)

Parameters

s string

The string to parse.

provider IFormatProvider

An object that provides culture-specific formatting information about s.

result SemVer

When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

bool

true if s was successfully parsed; otherwise, false.