CodeGenerationUtilities.SortProperties(IList<DomainProperty>) Method

Definition

Sort DomainProperties based on XmlElement.Order (if specified). By default, the order of each property is 0. Properties with smaller order will appear first. Properties of the same order will not be sorted (i.e. they'll keep their relative order after sorting). The sorting is in-place, so the passed-in collection will be changed directly.

public:
 static void SortProperties(System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::DslDefinition::DomainProperty ^> ^ props);
public static void SortProperties (System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty> props);
static member SortProperties : System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty> -> unit
Public Shared Sub SortProperties (props As IList(Of DomainProperty))

Parameters

props
IList<DomainProperty>

Properties to be sorted.

Applies to