Skip to content

Mixins have inconsistent order #474

@zapov

Description

@zapov

In MixinData interfaces are sorted as

sortedMixedInterfaceTypes.Sort((x, y) => x.FullName.CompareTo(y.FullName));

instead of

sortedMixedInterfaceTypes.Sort((x, y) => String.CompareOrdinal(x.FullName, y.FullName));

or even better via

sortedMixedInterfaceTypes.Sort(new FieldReferenceComparer());

where FieldReferenceComparer could be renamed to TypeNameComparer

This causes wrong ctor order and fails to create an instance with strange message due to bad internal order ;(

I fixed my immediate problem by changing names, but it would be nice if this is fixed eventually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions