Shows the initial count of default instances upon application startup.
ID: 270
See: DefaultCount = [int]
using uCalcSoftware;
var uc = new uCalc();
// By default, a single uCalc instance is always available on the stack.
Console.WriteLine($"Initial default instance count: {uCalc.DefaultCount}");
Initial default instance count: 1 using uCalcSoftware; var uc = new uCalc(); // By default, a single uCalc instance is always available on the stack. Console.WriteLine($"Initial default instance count: {uCalc.DefaultCount}");
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
// By default, a single uCalc instance is always available on the stack.
cout << "Initial default instance count: " << uCalc::DefaultCount() << endl;
}
Initial default instance count: 1 #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // By default, a single uCalc instance is always available on the stack. cout << "Initial default instance count: " << uCalc::DefaultCount() << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
'// By default, a single uCalc instance is always available on the stack.
Console.WriteLine($"Initial default instance count: {uCalc.DefaultCount}")
End Sub
End Module
Initial default instance count: 1 Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() '// By default, a single uCalc instance is always available on the stack. Console.WriteLine($"Initial default instance count: {uCalc.DefaultCount}") End Sub End Module