using System; using System.Collections.Generic; public class Tests { static void A(IReadOnlyCollection otherList) { } static void B(IReadOnlyList otherList) { } public static void Main () { var ifacers = typeof(int[]).GetInterfaces (); var args = new string [0]; A (args); B (args); IReadOnlyList e1 = new int[0]; IReadOnlyCollection e2 = new int[0]; } }