For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2007 > .NET Delegates









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author .NET Delegates
Frank Swarbrick

2007-01-08, 3:55 am

Delegates.cbl and Delegates.cs: (MF) COBOL and C# declaration of three
different delegates.

FClass.cbl and FClass.cs: COBOL and C# classes that have instance
variables of each of the 3 delegate classes, properties that can be
invoked to set them, and three methods to invoke them. ('F' is for
Frank. Probably should have been 'DClass'. :-)

Main.cbl and MainClass.cs: MainClass has three methods matching the
signatures of the three delegates. An FClass object is created, and the
three delegate properties are set to the corresponding three instance
methods. Then the three 'invoke' methods are invoked.

Or something like that.

All pretty basic, and not particular useful, but...

Frank



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com