Sunteți pe pagina 1din 9

Presented by:

Tim O’Brien
Senior Systems Engineer
Fujitsu Software Corporation

OO COBOL Programming in
the .NET Environment
Fujitsu Software Corporation

Customer Training Series

Fujitsu Computer Systems


OO COBOL Programming in the .NET
Environment
■ Namespaces
■ Solutions
■ Use of Attributes and Custom Attributes
■ Use of Delegates for callback
■ Use of Prototypes
■ Marshalling
■ Versioning
■ Security in the .NET Environment
■ Using .NET API’s (e.g. member functions) and Classes
in COBOL Applications
■ Application Deployment

PAGE 2 Fujitsu Computer Systems


Namespaces
■ Provides a higher order grouping of related
components

■ Provides a mechanism for logical grouping of


related types

■ The .NET Framework classes are grouped in


Namespaces

PAGE 3 Fujitsu Computer Systems


Solutions… a brief recap.
■ Solutions allow for a grouping of related projects

■ Solutions allow for individual related projects written is


different languages to be grouped together logically

■ Assemblies (applications) may be private or shared

■ The Global Assembly Cache (GAC) is used to register


shared assemblies

PAGE 4 Fujitsu Computer Systems


Properties, Attributes and Custom
Attributes
■ Attributes are declaratives that may be attached
to portions of your code including classes,
methods, data items, and properties

■ .NET provides pre-defined attributes and/or you


may create your own (custom) attributes

■ Attributes may be queried at runtime to force


certain behavior

PAGE 5 Fujitsu Computer Systems


demo

PAGE 6 Fujitsu Computer Systems


Use of Delegates for callback
■ Delegates are function or procedure
pointers
■ Delegates are used to implement
callbacks
■ GUI event handling is an example of the
use of callbacks

PAGE 7 Fujitsu Computer Systems


Demo

PAGE 8 Fujitsu Computer Systems


Questions

PAGE 9 Fujitsu Computer Systems

S-ar putea să vă placă și