generics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
generics [2018/02/10 14:59] – wolfgangriedmann | generics [2018/08/20 04:06] (current) – wolfgangriedmann | ||
---|---|---|---|
Line 5: | Line 5: | ||
As sample how to use generics look at the [[collections: | As sample how to use generics look at the [[collections: | ||
- | < | + | < |
oList := List< | oList := List< | ||
Line 11: | Line 11: | ||
oList:Add( "hi guys" )</ | oList:Add( "hi guys" )</ | ||
The List class is defined as follows: | The List class is defined as follows: | ||
- | < | + | < |
That means that you need to define which datatype the List object should contain. In the sample before it is a string, but it can be any datatype/ | That means that you need to define which datatype the List object should contain. In the sample before it is a string, but it can be any datatype/ | ||
generics.txt · Last modified: 2018/08/20 04:06 by wolfgangriedmann