User Tools

Site Tools


everything_object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
everything_object [2018/01/28 17:12] wolfgangriedmanneverything_object [2020/06/14 22:55] (current) – The old sentence said "A method every object has is the As String() method. joecurran
Line 3: Line 3:
 In .NET even basic datatypes like ''string'' or ''int'' are 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. method that every object has, is the ''AsString()'' method. This method sometimes returns useful data: +This means that even these datatypes can (an have) own methods. One method common to every object is ''AsString()'' . This method sometimes returns useful data: 
-<code>local nInt as int+<code visualfoxpro>local nInt as int
 local oDate as DateTime local oDate as DateTime
 local lLogic as logic local lLogic as logic
Line 14: Line 14:
 System.Console.WriteLine( oDate:ToString() ) System.Console.WriteLine( oDate:ToString() )
 System.Console.WriteLine( lLogic:ToString() )</code> System.Console.WriteLine( lLogic:ToString() )</code>
-returns<code>12345+returns<code visualfoxpro>12345
 28.01.2018 17:51:37 28.01.2018 17:51:37
 true</code> true</code>
everything_object.1517159577.txt.gz · Last modified: 2018/01/28 17:12 by wolfgangriedmann