Skip to content

OnixLabs.Core.Reflection

matthew edited this page May 27, 2026 · 4 revisions

OnixLabs.Core.Reflection Namespace

The OnixLabs.Core.Reflection namespace provides reflection helpers for rendering CLR types as C# type-declaration strings.

Namespace OnixLabs.Core.Reflection
Assembly OnixLabs.Core.dll (NuGet)

Remarks

TypeExtensions converts a Type into a human-readable C# type-declaration string — resolving generic arity suffixes, rendering generic arguments, and applying C# language aliases, nullable shorthand, and value-tuple syntax. The exact output is controlled by the TypeDeclarationFlags bit field.

Bring the namespace into scope with using OnixLabs.Core.Reflection;.

Types in this namespace

Type Description
TypeExtensions Extension methods over System.Type for rendering a type as a C# type-declaration string.
TypeDeclarationFlags A [Flags] enum that configures how GetCSharpTypeDeclaration formats its output.

See Also

ONIXLabs .NET Library


Clone this wiki locally