Retrieves a Tokens collection's parent uCalc instance and verifies its identity by reading a description.
ID: 1048
See: uCalc = [uCalc]
using uCalcSoftware;
var uc = new uCalc();
var t = new uCalc.Transformer();
t.uCalc.Description = "My Parent uCalc";
var tokens = t.Tokens;
// Get the parent from the Tokens object
var parent_uc = tokens.uCalc;
// Verify we got the correct parent
Console.WriteLine(parent_uc.Description);
My Parent uCalc using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); t.uCalc.Description = "My Parent uCalc"; var tokens = t.Tokens; // Get the parent from the Tokens object var parent_uc = tokens.uCalc; // Verify we got the correct parent Console.WriteLine(parent_uc.Description);
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
uCalc::Transformer t;
t.uCalc().Description("My Parent uCalc");
auto tokens = t.Tokens();
// Get the parent from the Tokens object
auto parent_uc = tokens.uCalc();
// Verify we got the correct parent
cout << parent_uc.Description() << endl;
}
My Parent uCalc #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.uCalc().Description("My Parent uCalc"); auto tokens = t.Tokens(); // Get the parent from the Tokens object auto parent_uc = tokens.uCalc(); // Verify we got the correct parent cout << parent_uc.Description() << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t As New uCalc.Transformer()
t.uCalc.Description = "My Parent uCalc"
Dim tokens = t.Tokens
'// Get the parent from the Tokens object
Dim parent_uc = tokens.uCalc
'// Verify we got the correct parent
Console.WriteLine(parent_uc.Description)
End Sub
End Module
My Parent uCalc Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t As New uCalc.Transformer() t.uCalc.Description = "My Parent uCalc" Dim tokens = t.Tokens '// Get the parent from the Tokens object Dim parent_uc = tokens.uCalc '// Verify we got the correct parent Console.WriteLine(parent_uc.Description) End Sub End Module