Previous Topic Next topic Print topic


NETJVM 

Specifying Type Names

You can refer to class and interface names in managed COBOL by using a type-specifier, which can be defined by using:

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].

The equivalent syntax using the traditional repository is:

Repository.
    Class dictionary is "System.Collections.Generic.Dictionary"
    Class dictionary-string-string expands dictionary using string, string.
01 d1 dictionary-string-string.
Previous Topic Next topic Print topic