Skip to content

Constants Class ​

Definition ​

Provides globally accessible, application-wide constants and environment information. This includes runtime context flags, assembly metadata, and core system values such as Unix epoch and OS detection.

  • Namespace: JASE
  • Assembly: JASE.Primitives.dll

Fields ​

NameDescription
DYNAMIC_ASSEMBLYNAMEDefault name for the generated dynamic assembly.
DYNAMIC_ASSEMBLYPREFIXPrefix used for dynamic type assembly names.
DYNAMIC_DLLNAMEFile name for the emitted dynamic DLL.
DYNAMIC_MODULENAMEDefault module name for the dynamic assembly.

Properties ​

NameDescription
ApplicationPathGets the base directory of the current application domain.
AvailableGcMemoryReturns the available Garabage Collection memory for the runtime environment
BuildConfigurationBuild configuration as detected from AssemblyConfiguration metadata
FrameworkReturns the name of the executing Framework
FrameworkDisplayReturns the Display name of the executing Framework
IsConsoleTrue if the application has a Console
IsDebugReturns true if a debugger is detected as attached
IsDebugBuildReturns true if detected as running in a debug build
IsLinuxReturns TRUE if the application is running on Linux.
IsMacReturns TRUE if the application is running on macOS.
IsRunningInUnitTestReturns TRUE if detected to be running inside of a unit test
IsWebAppReturns TRUE if running in a web application context.
IsWindowsReturns TRUE if the application is running on Windows.
UnixEpochDateTime value representing Unix Epoch
UnixEpochTicksGets the number of ticks since DateTime.MinValue to Unix epoch.