namespace Microsoft.Build.BuildEngine {
public class ImportCollection : ICollection, IEnumerable {
- IDictionary imports;
+ IList imports;
Project parentProject;
internal ImportCollection (Project parentProject)
{
this.parentProject = parentProject;
- this.imports = new Hashtable ();
+ this.imports = new ArrayList ();
}
internal void Add (Import import)
if (import == null)
throw new ArgumentNullException ("import");
- if (imports.Contains (import.EvaluatedProjectPath))
+ if (imports.Contains (import))
throw new InvalidOperationException ("Import already added.");
- imports.Add (import.EvaluatedProjectPath, import);
+ imports.Add (import);
}
[MonoTODO]
get { return false; }
}
- internal Import this [string index] {
- get { return (Import) imports [index]; }
- }
-
public object SyncRoot {
get { return this; }
}
}
}
-#endif
\ No newline at end of file
+#endif