Partilhar via


CodeGenerationUtilities.SortRoles(IList<DomainRole>) Method

Definition

Sort DomainRoles based on XmlRelationshipElement.Order (if specified). By default, the order of each role is 0. Roles with smaller order will appear first. Roles 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 SortRoles(System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::DslDefinition::DomainRole ^> ^ roles);
public static void SortRoles (System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole> roles);
static member SortRoles : System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole> -> unit
Public Shared Sub SortRoles (roles As IList(Of DomainRole))

Parameters

roles
IList<DomainRole>

Roles to be sorted.

Applies to