RunUnitProgramOrClassGet Method

MicroFocus.COBOL.RuntimeServices
Get's the initial program or class

Namespace:  MicroFocus.COBOL.RuntimeServices.Generic
Assembly:  MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax

public ProgramOrClass Get()

Return Value

Type: ProgramOrClass

Implements

IRunUnitProgramOrClassGet
Examples

using(var myRunUnit = new RunUnit<myapp>())  /* Create a RunUnit and include myapp in it */
{
 using(myRunUnit.Enter()) {  /* Enter myRunUnit */
  myapp app = myRunUnit.Get();

  /* use the methods */
  app.SomeMethod();           
  app.AnotherMethod();
 } // Leave myRunUnit
} // StopRun myRunUnit
See Also

Reference