everything_object
This is an old revision of the document!
Everything is an object
In .NET even basic datatypes like string
or int
are an object.
This means that even these datatypes can (an have) own methods. A method that every object has, is the AsString()
method. This method sometimes returns useful data:
local nInt as int nInt := 1234 System.Console.WriteLine( nInt:ToString() )
returns
12345 28.01.2018 17:51:37
But sometimes, in more complex classes, the ToString()
method returns only the name of the class, and it is to you to define such a method that returns a more meaningful string value.
Regarding the methods of such a class, you should give a look to the System.String class - you will be surprised how many different and useful methods this class already has!
everything_object.1517158559.txt.gz · Last modified: 2018/01/28 16:55 by wolfgangriedmann