A quick example demonstrating how to set and get a description on a variable.

ID: 310

				
					using uCalcSoftware;

var uc = new uCalc();
// Define a variable and chain the Description() call to set metadata
var myVar = uc.DefineVariable("x = 10").SetDescription("Stores the current iteration count.");

// Retrieve and display the description
Console.WriteLine($"Description for 'x': {myVar.Description}");
				
			
Description for 'x': Stores the current iteration count.
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   // Define a variable and chain the Description() call to set metadata
   auto myVar = uc.DefineVariable("x = 10").SetDescription("Stores the current iteration count.");

   // Retrieve and display the description
   cout << "Description for 'x': " << myVar.Description() << endl;
}
				
			
Description for 'x': Stores the current iteration count.
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      '// Define a variable and chain the Description() call to set metadata
      Dim myVar = uc.DefineVariable("x = 10").SetDescription("Stores the current iteration count.")
      
      '// Retrieve and display the description
      Console.WriteLine($"Description for 'x': {myVar.Description}")
   End Sub
End Module
				
			
Description for 'x': Stores the current iteration count.