diff --git a/src/MICore/LaunchOptions.cs b/src/MICore/LaunchOptions.cs index 7c102711f..95f1ee049 100644 --- a/src/MICore/LaunchOptions.cs +++ b/src/MICore/LaunchOptions.cs @@ -370,7 +370,7 @@ public static ReadOnlyCollection CreateCollection(Xml.LaunchOpti public static ReadOnlyCollection CreateCollection(Dictionary source) { - IList sourceMaps = new List(source.Keys.Count); + var sourceMaps = new List(source.Keys.Count); foreach (var item in source) { @@ -416,6 +416,11 @@ public static ReadOnlyCollection CreateCollection(Dictionary string.CompareOrdinal(y.CompileTimePath, x.CompileTimePath)); + return new ReadOnlyCollection(sourceMaps); } }