The Order
property of the TypeDescription
class represents an integer value that can be used to determine the order of the type within a collection or list. This property is useful for sorting or prioritizing types based on a predefined order.
The Order
property of the TypeDescription
class represents an integer value that can be used to determine the order of the type within a collection or list. This property is useful for sorting or prioritizing types based on a predefined order.
To use the Order
property, simply access it from an instance of the TypeDescription
class. You can get or set the order value as needed.
// Example of accessing the Order property TypeDescription typeDescription = new TypeDescription(); int currentOrder = typeDescription.Order; // Set a new order int newOrder = 5; typeDescription.Order = newOrder; // Use the order value for sorting List<TypeDescription> typeList = GetTypeDescriptions(); typeList.Sort((a, b) => a.Order.CompareTo(b.Order));