 | 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: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntaxpublic static string ParseVersion(
int major,
int minor,
int build,
int revision
)
Parameters
- major Int32
- Major number from 0 to 99999
- minor Int32
- Minor number
- build Int32
- Build number
- revision Int32
- Revision number
Return Value
StringFormatted version number (e.g. 1.0 or 55.987)
ExceptionsException | Condition |
---|
FormatException | Throws a FormatException if the major number is too long or one of the numbers is negative |
See Also