diff --git a/generator/Parameters.cs b/generator/Parameters.cs index 2fa71ade3..61726d809 100644 --- a/generator/Parameters.cs +++ b/generator/Parameters.cs @@ -24,11 +24,12 @@ namespace GtkSharp.Generation { using System; using System.Collections; + using System.Collections.Generic; using System.Xml; - public class Parameters : IEnumerable { + public class Parameters : IEnumerable { - ArrayList param_list = new ArrayList (); + List param_list = new List (); XmlElement elem; bool first_is_instance; @@ -61,7 +62,7 @@ namespace GtkSharp.Generation { public Parameter this [int idx] { get { - return param_list [idx] as Parameter; + return param_list [idx]; } } @@ -138,11 +139,16 @@ namespace GtkSharp.Generation { param_list = null; } - public IEnumerator GetEnumerator () + public IEnumerator GetEnumerator () { return param_list.GetEnumerator (); } + IEnumerator IEnumerable.GetEnumerator () + { + return GetEnumerator (); + } + bool valid = false; public bool Validate (LogWriter log)