semitwist.util.reflect

Undocumented in source.

Members

Functions

qualifiedName
string qualifiedName()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

useNoThrowSafeToHash
enum useNoThrowSafeToHash;
Undocumented in source.
useNoThrowSafeToHash
enum useNoThrowSafeToHash;
Undocumented in source.

Templates

EnsureArray
template EnsureArray(T)

If T isn't an array, returns T[], otherwise returns T as-is.

ExprTypeOf
template ExprTypeOf(T)
Undocumented in source.
callableExists
template callableExists(T)
Undocumented in source.
isAllTypes
template isAllTypes(TList...)

Checks if value 'a' is, or is implicitly castable to, or is derived from all of the TList types.

isAnyArray
template isAnyArray(T)
Undocumented in source.
isAnyType
template isAnyType(TList...)

Checks if value 'a' is, or is implicitly castable to, or is derived from any of the TList types.

isType
template isType(T)

Checks if value 'a' is, or is implicitly castable to, or is derived from type T.

nameof
template nameof(alias T)

If you have a class MyClass(T), then nameof!(MyClass) will return "MyClass".

Meta