in ADTTools/UploadModels/Program.cs [228:250]
private static void OrderInterface(OrderedHashSet<DTInterfaceInfo> orderedInterfaces, DTInterfaceInfo @interface)
{
// Order each extended interface.
foreach (DTInterfaceInfo extendedInterface in @interface.Extends)
{
OrderInterface(orderedInterfaces, extendedInterface);
}
// Order each component schema interface.
IEnumerable<DTInterfaceInfo> componentSchemas = from content in @interface.Contents.Values
where content.EntityKind == DTEntityKind.Component
select ((DTComponentInfo)content).Schema;
foreach (DTInterfaceInfo componentSchemaInterface in componentSchemas)
{
OrderInterface(orderedInterfaces, componentSchemaInterface);
}
// Add this interface to the list of ordered interfaces.
if (!orderedInterfaces.Contains(@interface))
{
orderedInterfaces.Add(@interface);
}
}