The Name
property of the TypeDescription
class provides the name of the type being described. This property is useful for retrieving the simple name of the type without any namespace or assembly information.
The Name
property of the TypeDescription
class provides the name of the type being described. This property is useful for retrieving the simple name of the type without any namespace or assembly information.
To access the Name
property, you need an instance of the TypeDescription
class. Once you have the instance, you can simply access the property to get the name of the type.
// Example of accessing the Name property TypeDescription typeDescription = TypeLibrary.GetTypeDescription(typeof(MyClass)); string typeName = typeDescription.Name; // Output the name of the type // typeName will contain "MyClass"