int Order { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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));