string Name { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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"