The ClassName
property provides a string representation of the class name. Historically, this was specified using the [Library( classname )]
attribute. If no specific name is provided, this property defaults to the type's name.
The ClassName
property provides a string representation of the class name. Historically, this was specified using the [Library( classname )]
attribute. If no specific name is provided, this property defaults to the type's name.
Use the ClassName
property to retrieve the name of the class as a string. This can be useful for logging, debugging, or when you need to display the class name in a user interface.
// Example of accessing the ClassName property TypeDescription typeDescription = new TypeDescription(); string className = typeDescription.ClassName; // Output the class name // Note: Avoid using Console.WriteLine in s&box Log.Info($"Class Name: {className}");