ConversionFunctions Class

Summary

Obsolete class which provides NAnt functions to convert data types.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Base Types
graph BT Type-->Base0["FunctionSetBase"] click Base0 "/api/NAnt.Core/FunctionSetBase" Base0-->Base1["Object"] Type["ConversionFunctions"] class Type type-node

Syntax

[FunctionSet("convert", "Conversion")]
public class ConversionFunctions : FunctionSetBase

Attributes

Type Description
FunctionSetAttribute Indicates that class should be treated as a set of functions.

Constructors

Name Summary
ConversionFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.ConversionFunctions class.

Properties

Name Value Summary
Project Project
Gets or sets the NAnt.Core.FunctionSetBase.Project that this functionset will reference.
Inherited from FunctionSetBase

Methods

Name Value Summary
ConvertToString(string) string
Converts the argument to a string.
static
ToBoolean(bool) bool
Converts the argument to a boolean
static
ToDateTime(DateTime) DateTime
Converts the argument to a datetime.
static
ToDouble(double) double
Converts the argument to double
static
ToInt(int) int
Converts the argument to an integer.
static