Appearance
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
| Name | Description |
|---|---|
DYNAMIC_ASSEMBLYNAME | Default name for the generated dynamic assembly. |
DYNAMIC_ASSEMBLYPREFIX | Prefix used for dynamic type assembly names. |
DYNAMIC_DLLNAME | File name for the emitted dynamic DLL. |
DYNAMIC_MODULENAME | Default module name for the dynamic assembly. |
Properties
| Name | Description |
|---|---|
ApplicationPath | Gets the base directory of the current application domain. |
AvailableGcMemory | Returns the available Garabage Collection memory for the runtime environment |
BuildConfiguration | Build configuration as detected from AssemblyConfiguration metadata |
Framework | Returns the name of the executing Framework |
FrameworkDisplay | Returns the Display name of the executing Framework |
IsConsole | True if the application has a Console |
IsDebug | Returns true if a debugger is detected as attached |
IsDebugBuild | Returns true if detected as running in a debug build |
IsLinux | Returns TRUE if the application is running on Linux. |
IsMac | Returns TRUE if the application is running on macOS. |
IsRunningInUnitTest | Returns TRUE if detected to be running inside of a unit test |
IsWebApp | Returns TRUE if running in a web application context. |
IsWindows | Returns TRUE if the application is running on Windows. |
UnixEpoch | DateTime value representing Unix Epoch |
UnixEpochTicks | Gets the number of ticks since DateTime.MinValue to Unix epoch. |