The TargetType
property represents the type that the TypeDescription
class describes. It provides access to the underlying System.Type
that this TypeDescription
instance is wrapping.
The TargetType
property represents the type that the TypeDescription
class describes. It provides access to the underlying System.Type
that this TypeDescription
instance is wrapping.
Use the TargetType
property to retrieve the System.Type
of the object that the TypeDescription
is describing. This can be useful for reflection or when you need to perform operations that require the actual type information.
// Example of accessing the TargetType property TypeDescription typeDescription = TypeLibrary.GetTypeDescription(typeof(MyClass)); System.Type targetType = typeDescription.TargetType; // Use the targetType for reflection or other type-based operations Console.WriteLine($"The target type is: {targetType.FullName}");