General utility functions for ICT applications that don't fall into other Units of the Ict.Common namespace.
More...
General utility functions for ICT applications that don't fall into other Units of the Ict.Common namespace.
◆ AddToArray()
static Object[] Ict.Common.Utilities.AddToArray |
( |
Object[] |
currentArray, |
|
|
Object |
newValue |
|
) |
| |
|
inlinestatic |
add a value to an existing array this will create a new array and copy all the elements and add the new value
- Parameters
-
currentArray | existing array |
newValue | new value |
- Returns
- a new array with old values and the new value
◆ CurrentTime()
static String Ict.Common.Utilities.CurrentTime |
( |
| ) |
|
|
inlinestatic |
Shorthand function that returns the current time in the HH:mm:ss format (24 hrs).
- Returns
- String containing the formatted current time.
◆ DetermineExecutingCLR()
this discovers if we are running on Microsoft .net or Mono etc Common Language Runtime
- Returns
- the runtime environment for .net
◆ DetermineExecutingOS()
Determines the Operating System on which this function is executed.
- Returns
- A value of the TExecutingOS enumeration.
◆ GetMethodName()
static string Ict.Common.Utilities.GetMethodName |
( |
bool |
ASplitPascalName = false | ) |
|
|
inlinestatic |
Return the name of the calling method
- Parameters
-
- Returns
◆ GetMethodSignature()
static string Ict.Common.Utilities.GetMethodSignature |
( |
| ) |
|
|
inlinestatic |
Return the name and signature of the calling method
- Returns
◆ GetThreadAndAppDomainCallInfo()
static string Ict.Common.Utilities.GetThreadAndAppDomainCallInfo |
( |
| ) |
|
|
inlinestatic |
Returns a formatted string that contains information about the current Thread and the AppDomain in which the code gets executed. Useful for logging!
- Returns
- Formatted string that contains information about the current Thread and the AppDomain in which the code gets executed.
◆ StrThreadAndAppDomainCallInfo
const string Ict.Common.Utilities.StrThreadAndAppDomainCallInfo = "(Call performed in Thread {0} in AppDomain '{1}')" |
|
static |
The documentation for this class was generated from the following file: