You can refer to class and interface names in .NET COBOL by using a type-specifier, which can be defined by using:
01 anInteger binary-long 01 aFloatingPointItem float-short 01 aString string
01 objMyType type MyType. 01 objDateTime type DateTime. *> .NET COBOL 01 objDateTime type java.util.Date. *> JVM COBOL
Where:
To define a namespace to represent long class names so that you need to type a short name only, use the ILUSING directive.
In .NET COBOL, to refer to a generic type using the TYPE literal syntax, you enumerate the generic parameters within square brackets. The following example declares myNames as an item of type Dictionary with both generic parameters set to string (System.String):
myNames type System.Collections.Generic.Dictionary[string, string].