RunUnitProgramOrClass Constructor

MicroFocus.COBOL.RuntimeServices
Creates a RunUnit with a specific program or class and registers it

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

public RunUnit()
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