OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Utilities Class Reference

General utility functions for ICT applications that don't fall into other Units of the Ict.Common namespace. More...

Static Public Member Functions

static String CurrentTime ()
 Shorthand function that returns the current time in the HH:mm:ss format (24 hrs). More...
 
static TExecutingOSEnum DetermineExecutingOS ()
 Determines the Operating System on which this function is executed. More...
 
static TExecutingCLREnum DetermineExecutingCLR ()
 this discovers if we are running on Microsoft .net or Mono etc Common Language Runtime More...
 
static string GetMethodName (bool ASplitPascalName=false)
 Return the name of the calling method More...
 
static string GetThreadAndAppDomainCallInfo ()
 Returns a formatted string that contains information about the current Thread and the AppDomain in which the code gets executed. Useful for logging! More...
 
static string GetMethodSignature ()
 Return the name and signature of the calling method More...
 
static Object[] AddToArray (Object[] currentArray, Object newValue)
 add a value to an existing array this will create a new array and copy all the elements and add the new value More...
 

Static Public Attributes

const string StrThreadAndAppDomainCallInfo = "(Call performed in Thread {0} in AppDomain '{1}')"
 String that gets utilised by Method GetThreadAndAppDomainCallInfo but can also be utilised elsewhere. More...
 

Detailed Description

General utility functions for ICT applications that don't fall into other Units of the Ict.Common namespace.

Member Function Documentation

◆ 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
currentArrayexisting array
newValuenew 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()

static TExecutingCLREnum Ict.Common.Utilities.DetermineExecutingCLR ( )
inlinestatic

this discovers if we are running on Microsoft .net or Mono etc Common Language Runtime

Returns
the runtime environment for .net

◆ DetermineExecutingOS()

static TExecutingOSEnum Ict.Common.Utilities.DetermineExecutingOS ( )
inlinestatic

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
ASplitPascalName
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.

Member Data Documentation

◆ StrThreadAndAppDomainCallInfo

const string Ict.Common.Utilities.StrThreadAndAppDomainCallInfo = "(Call performed in Thread {0} in AppDomain '{1}')"
static

String that gets utilised by Method GetThreadAndAppDomainCallInfo but can also be utilised elsewhere.


The documentation for this class was generated from the following file: