public class TargetCollection : ICollection, IEnumerable {
Dictionary <string, Target> targetsByName;
- Project parentProject;
+ //Project parentProject;
internal TargetCollection (Project project)
{
- this.targetsByName = new Dictionary <string, Target> ();
- this.parentProject = project;
+ this.targetsByName = new Dictionary <string, Target> (StringComparer.InvariantCultureIgnoreCase);
+ //this.parentProject = project;
}
// This must create a new xml element and stuff.
public IEnumerator GetEnumerator ()
{
- foreach (KeyValuePair <string, Target> kvp in targetsByName) {
- yield return kvp.Key;
- }
+ foreach (KeyValuePair <string, Target> kvp in targetsByName)
+ yield return kvp.Value;
}
public void RemoveTarget (Target targetToRemove)