VersionExtensions.FormatVersion

Formats a version by stripping all zero values up to the trimTokens count provided. By default displays Major.Minor and then displays any Build and/or revision if non-zero

More info: https://weblog.west-wind.com/posts/2024/Jun/13/C-Version-Formatting

public static string FormatVersion(Version version,
	int minTokens,
	int maxTokens)

Parameters

version
Version to format

minTokens
Minimum number of component tokens of the version to display

maxTokens
Maximum number of component tokens of the version to display

Overloads:


See also:

Class VersionExtensions

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic