How to retrieve the parent uCalc instance from a DataType object.

ID: 560

				
					using uCalcSoftware;

var uc = new uCalc();
uc.Description = "Main uCalc Instance";

// Get the DataType object for Int32
var intType = uc.DataTypeOf(BuiltInType.Integer_32);

// Use the .uCalc() method to get back to the parent instance and read its description.
Console.WriteLine(intType.uCalc.Description);
				
			
Main uCalc Instance
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uc.Description("Main uCalc Instance");

   // Get the DataType object for Int32
   auto intType = uc.DataTypeOf(BuiltInType::Integer_32);

   // Use the .uCalc() method to get back to the parent instance and read its description.
   cout << intType.uCalc().Description() << endl;
}
				
			
Main uCalc Instance
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      uc.Description = "Main uCalc Instance"
      
      '// Get the DataType object for Int32
      Dim intType = uc.DataTypeOf(BuiltInType.Integer_32)
      
      '// Use the .uCalc() method to get back to the parent instance and read its description.
      Console.WriteLine(intType.uCalc.Description)
   End Sub
End Module
				
			
Main uCalc Instance