Bug 31020

Summary: Order of interfaces in GetInterfaces() is random
Product: [Mono] Runtime Reporter: Andrius Bentkus <toxedvirus>
Component: ReflectionAssignee: Bugzilla <bugzilla>
Severity: normal CC: mono-bugs+runtime, vargaz
Priority: ---    
Version: 4.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:

Description Andrius Bentkus 2015-06-11 10:25:29 UTC
using System;
using System.Linq;
public class Example
	public static void Main(string[] args)
		Console.WriteLine(string.Join("\r\n", typeof(string[]).GetInterfaces().Select(i => i.Name)));

If you compile it to a binary and run it multiple times you always get a different ordering of the interfaces.

csharp repl won't reproduce the bug, running it straight with mono will.
Comment 1 Zoltan Varga 2015-06-13 00:22:01 UTC
Fixed in mono master/4.2 branch.

Thanks for the report.