VersionConversionFunctions.

Parse(string) Method

Summary

Converts the specified string representation of a version to its System.Version equivalent.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
VersionConversionFunctions

Syntax

[Function("parse")]
public static Version Parse(string version)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
version string A string containing the major, minor, build, and revision numbers, where each number is delimited with a period character ('.').

Return Value

Type Description
Version A System.Version instance representing the specified string.