generics
This is an old revision of the document!
Generics
Generics are a new feature in the .NET framework, and they permit to specify also the type of a parameter for a function. Whenever you see a <T>
parameter, it is a generic definition.
As sample how to use generics look at the System.Collections.Generic.List<T> class:
local oList as List<string> oList := List<string>{} oList:Add( "hi girls" ) oList:Add( "hi guys" )
The List class is defined as follows:
Please see these two topics of the Microsoft C# Programming Guide:
Please note that Vulcan.NET could use methods with generic type parameters, but could not let you create them.
generics.1518253355.txt.gz · Last modified: 2018/02/10 09:02 by wolfgangriedmann