Wiki
Show
Ignore:
Timestamp:
04/16/09 22:18:35 (3 years ago)
Author:
Chuck.Esterbrook
Message:

Introduce .typeOf as a cross platform means of getting the type of an object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Cobra.Lang/Extensions.cobra

    r1957 r2019  
    22 
    33    extend System.Object 
     4 
     5        def typeOf as System.Type 
     6            """ Using.typeOf is portable between platforms in contrast to CLR .getType and JVM .getClass. """ 
     7            return .getType 
    48 
    59        def toTechString as String