Type List

For a generic programming construct, lets you declare the type parameters.

Syntax

[ type_parameter [ , type_parameter ]… ]

Parts

type_parameter
One or more parameters with a comma between each.

Type parameter

[ In | Out ] name
In
Optional
Out
Optional
name
Mandatory name. All names must be different.

Examples

Class

Class Container[T]
  Property Value As T
End Class

Container[Int32] #intContainer
#intContainer.Value = 123

Container[String] #strContainer
#strContainer.Value = "testing"

Procedure

Function Sum[T](a As T, b As T) As T
  Return a + b
End Function

PrintLine Sum(40, 2)
PrintLine Sum(19.7, 22.3)

See also