CodeGenerationUtilities.SortProperties Method
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.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
Public Shared Sub SortProperties ( _
props As IList(Of DomainProperty) _
)
public static void SortProperties(
IList<DomainProperty> props
)
public:
static void SortProperties(
IList<DomainProperty^>^ props
)
static member SortProperties :
props:IList<DomainProperty> -> unit
public static function SortProperties(
props : IList<DomainProperty>
)
Parameters
props
Type: System.Collections.Generic.IList<DomainProperty>Properties to be sorted.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.