// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#if NET_2_0
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
[ComVisible (false)]
public sealed class AssemblyReferenceCollection : IEnumerable {
- int count;
+ List <AssemblyReference> list;
+
+ AssemblyReferenceCollection ()
+ {
+ list = new List <AssemblyReference> ();
+ }
public AssemblyReference Add (AssemblyReference assembly)
{
- throw new NotImplementedException ();
+ list.Add (assembly);
+ return assembly;
}
public AssemblyReference Add (string path)
{
- throw new NotImplementedException ();
+ AssemblyReference ar = new AssemblyReference (path);
+ list.Add (ar);
+ return ar;
}
public void Clear ()
{
- throw new NotImplementedException ();
+ list.Clear ();
}
public AssemblyReference Find (AssemblyIdentity identity)
public IEnumerator GetEnumerator ()
{
- throw new NotImplementedException ();
+ return list.GetEnumerator ();
}
public void Remove (AssemblyReference assemblyReference)
{
- throw new NotImplementedException ();
+ list.Remove (assemblyReference);
}
public int Count {
- get { return count; }
+ get { return list.Count; }
}
public AssemblyReference this [int index] {
- get { return null; }
+ get { return list [index]; }
}
}
}
-#endif