Metadata.ParseVersion Method

PicoXLSX

PicoXLSX

MetadataParseVersion Method

Method to parse a common version (major.minor.revision.build) into the compatible format (major.minor). The minimum value is 0.0 and the maximum value is 99999.99999
The minor, revision and build number are joined if possible. If the number is too long, the additional characters will be removed from the right side down to five characters (e.g. 785563 will be 78556)

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public static string ParseVersion(
	int major,
	int minor,
	int build,
	int revision
)

Parameters

major
Type: SystemInt32
Major number from 0 to 99999
minor
Type: SystemInt32
Minor number
build
Type: SystemInt32
Build number
revision
Type: SystemInt32
Revision number

Return Value

Type: String
Formatted version number (e.g. 1.0 or 55.987)
Exceptions
ExceptionCondition
FormatExceptionThrows a FormatException if the major number is too long or one of the numbers is negative
See Also