Root / Assembly / ARCCore / Class / Util / _Member

PRich

_Member

KeyValue
AllowedFileOrFolderNameCharsThe character set 'A...Za...z0...9-_().,'.

Used to create file and folder names that has no need for special encoding / escaping in 'any' situation. This also applies for HTTP URL encoding / decoding, therefore space, ' ', is not allowed, nor '+'.


Description, MethodName, MethodSignature, ReflectedType
AssembliesAll relevant assemblies for application.

Should be set at startup of application in a single threaded context.

Description, LongDescription, MethodName, MethodSignature, ReflectedType
AssertCurrentlyStartingUpNormally called from non-thread safe methods that should be run single-threaded at application startup only.

Description, LongDescription, MethodName, MethodSignature, ReflectedType
Boolean EnumTryParse(System.Type, System.String, System.Object ByRef, System.String ByRef)See also generic overload which most often is more practical.
(also see that generic overload for documentation)

Description, MethodName, MethodSignature, ReflectedType
Boolean EnumTryParse[T](System.String, T ByRef, System.String ByRef)Same as the inbuilt .NET method TryParse but will in addition check that:

1) The value is defined (because TryParse returns true for all integers, something which is deemed to lax and will lead to errors)
2) The int-value is not 0 / not '__invalid'.
Note: All AgoRapide enums start with '__invalid' (as 0) in order to catch missing setting of values (the default integer value of 0 is by default an invalid AgoRapide enum member / enum value).


Description, MethodName, MethodSignature, ReflectedType
CreateSafeFileOrFolderNameCreates a filename containing only characters in AllowedFileOrFolderNameChars.
Other characters are represented by '0x' plus their UTF-16 code value as four hex characters (like '0x0020' for space).

Truncates result to 250 characters (allows for .html to be added at end, for a total of 255 characters).

NOTE: Function is non-injective (not one-to-one), for instance '0x0020' and ' ' both encodes to '0x0020'.


Description, MethodName, MethodSignature, ReflectedType
CultureTODO: Add configurable support for other cultures, but beware how this culture is used currently.

Description, MethodName, MethodSignature, ReflectedType
Culture_en_USUsed by DoubleTryParse.

Description, MethodName, MethodSignature, ReflectedType
CurrentlyStartingUpCalled once at application startup after all Attribute instances in the C# code has been processed.
Afterwards attributes can only be accessed through the IP-based PKTypeAttribute.

Description, MethodName, MethodSignature, ReflectedType
DateTimeNowReturns DateTime.UtcNow unless UseLocalTimeInsteadOfUTC has been set to TRUE in which case DateTime.Now is returned.

Description, MethodName, MethodSignature, ReflectedType
DateTimeNowWithDescriptionReturns DateTimeNow appended with 'UTC' or '(Local time)' like '2020-12-09 12:30.21 UTC' or '2020-12-09 12:30.21 (Local time)'

Description, MethodName, MethodSignature, ReflectedType
DefaultAgoRapideEncodingTODO: Research optimal encoding. For instance if PropertyStream is encoded with only ASCII-characters (see EncodeKeyPartStringToPropertyStreamFormat and EncodeValuePartStringToPropertyStreamFormat) then maybe -ASCII- is good enough?

Description, MethodName, MethodSignature, ReflectedType
DoubleTryParseNote that treats ',' (comma) as decimal point (not as thousands separator).

Description, MethodName, MethodSignature, ReflectedType
GetExceptionChainAsStringFollows the chain of InnerException and returns types as comma-separated string

Description, MethodName, MethodSignature, ReflectedType
GetExeptionDetailsGives as much information about exception as possible.

Description, MethodName, MethodSignature, ReflectedType
TryGetTypeFromStringFromCacheCorresponding method for creating string-representation of type is ToStringDB.
(note that all AllIPDerivedTypes are understood also in short-hand form.

NOTE: Note how result is cached. Use overload TryGetTypeFromStringNoCache NOTE: if input parameter is not necessarily a type / if it has a potential huge range of values.

Description, MethodName, MethodSignature, ReflectedType
TryGetTypeFromStringNoCacheSee TryGetTypeFromStringFromCache for documentation.


Description, MethodName, MethodSignature, ReflectedType
UseLocalTimeInsteadOfUTCBy default AgoRapide operates only with UTC time.

This is the recommended approach as UTC is always unambigious.

This setting is for instance relevant to use if you synchronize data from data sources which do not support UTC, in which case it would be difficult for StreamProcessor to insert correct Timestamp at initial synchronization.

If you change this setting to TRUE then ALL uses of time in AgoRapide will be based on local time (because DateTimeNow is used).

This setting can only be changed at application startup and only set to TRUE. Default value is FALSE.

Description, MethodName, MethodSignature, ReflectedType
ValidDateTimeFormatsTODO: The formats are supposed to be used also for parsing human user input (through an API for instance).
TODO: Add support for user-configurable formats

Description, MethodName, MethodSignature, ReflectedType

19 items


Generated 2020-10-13 11:11:05.819 UTC