How to sort classes/fields/methods/properties in a .NET assembly?
问题 I have an assembly of a program for which I don't have access to the source code and want to sort its classes alphabetically by their fully qualified name inside of the assembly, instead of using the order specified by the compiler used to generate it. I've tried using Mono.Cecil for that, but it seems I can't change the order of classes within ModuleDefinition.Types property because it's a get-only IEnumerable . So how do I change the order of the items of an assembly module? Or is it