Author: antonello
Date: 2007-03-23 14:18:02 -0500 (Fri, 23 Mar 2007)
New Revision: 74905
Modified:
trunk/mcs/class/System.Core/System.Linq.Expressions/ExpressionUtil.cs
Log:
Modified: trunk/mcs/class/System.Core/System.Linq.Expressions/ExpressionUtil.cs
===================================================================
--- trunk/mcs/class/System.Core/System.Linq.Expressions/ExpressionUtil.cs
2007-03-23 19:11:16 UTC (rev 74904)
+++ trunk/mcs/class/System.Core/System.Linq.Expressions/ExpressionUtil.cs
2007-03-23 19:18:02 UTC (rev 74905)
@@ -60,14 +60,18 @@
{
if (en == null)
return new ReadOnlyCollection<MemberBinding>(new
MemberBinding[0]);
- return new
ReadOnlyCollection<MemberBinding>(en.ToArray<MemberBinding>());
+
+ List<MemberBindings> list = new List<MemberBindings>(en);
+ return new ReadOnlyCollection<MemberBinding>(list);
}
public static ReadOnlyCollection<Expression>
GetReadOnlyCollection(IEnumerable<Expression> en)
{
if (en == null)
return new ReadOnlyCollection<Expression>(new Expression[0]);
- return new
ReadOnlyCollection<Expression>(en.ToArray<Expression>());
+
+ List<MemberBindings> list = new List<MemberBindings>(en);
+ return new ReadOnlyCollection<Expression>(list);
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches