From f16036819a664045e0a24dd4f98be8df47bcc4d2 Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Mon, 20 Sep 2010 14:44:20 -0300 Subject: Use List instead of ArrayList to make things prettier. --- mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs index 21f57af74f2..4423058cdd1 100644 --- a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs +++ b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs @@ -39,6 +39,7 @@ using System.Runtime.Serialization; using System.Globalization; using System.Runtime.CompilerServices; using System.Collections; +using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Security.Cryptography; @@ -826,16 +827,16 @@ namespace System.Reflection.Emit } if (res != null) { - ArrayList exceptions = null; + List exceptions = null; foreach (var type in res) { if (type is TypeBuilder) { if (exceptions == null) - exceptions = new ArrayList (); + exceptions = new List (); exceptions.Add (new TypeLoadException (string.Format ("Type '{0}' is not finished", FullName))); } } if (exceptions != null) - throw new ReflectionTypeLoadException (new Type [exceptions.Count], (Exception[])exceptions.ToArray (typeof (Exception))); + throw new ReflectionTypeLoadException (new Type [exceptions.Count], exceptions.ToArray ()); } return res == null ? Type.EmptyTypes : res; -- cgit v1.2.3