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]; }
}
}
}
+2007-02-02 Marek Sieradzki <marek.sieradzki@gmail.com>
+
+ * OutputMessageCollection.cs
+ * OutputMessage.cs
+ * AssemblyReferenceCollection.cs
+ * FileReferenceCollection.cs: corcompare changes.
+
2006-06-15 Marek Sieradzki <marek.sieradzki@gmail.com>
* UpdateUnit.cs, AssemblyReferenceType.cs, OutputMessageType.cs,
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
[ComVisible (false)]
public sealed class FileReferenceCollection : IEnumerable {
+
+ List <FileReference> list;
+
+ FileReferenceCollection ()
+ {
+ list = new List <FileReference> ();
+ }
[MonoTODO]
public FileReference Add (FileReference file)
{
- throw new NotImplementedException ();
+ list.Add (file);
+ return file;
}
[MonoTODO]
public FileReference Add (string path)
{
- throw new NotImplementedException ();
+ FileReference fr = new FileReference (path);
+ list.Add (fr);
+ return fr;
}
[MonoTODO]
public void Clear ()
{
- throw new NotImplementedException ();
+ list.Clear ();
}
[MonoTODO]
[MonoTODO]
public IEnumerator GetEnumerator ()
{
- throw new NotImplementedException ();
+ return list.GetEnumerator ();
}
[MonoTODO]
public void Remove (FileReference file)
{
- throw new NotImplementedException ();
+ list.Remove (file);
}
[MonoTODO]
public int Count {
- get { return 0; }
+ get { return list.Count; }
}
[MonoTODO]
public FileReference this [int index] {
- get { return null; }
+ get { return list [index]; }
}
}
}
string name;
string text;
OutputMessageType type;
+
+ OutputMessage ()
+ {
+ }
[MonoTODO]
public string[] GetArguments ()
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
[ComVisible (false)]
public sealed class OutputMessageCollection : IEnumerable {
-
- int errorCount;
- int warningCount;
+
+ int error_count;
+ List <OutputMessage> list;
+ int warning_count;
+
+ OutputMessageCollection ()
+ {
+ list = new List <OutputMessage> ();
+ }
[MonoTODO]
public void Clear ()
{
- throw new NotImplementedException ();
+ list.Clear ();
}
[MonoTODO]
public IEnumerator GetEnumerator ()
{
- throw new NotImplementedException ();
+ return list.GetEnumerator ();
}
[MonoTODO]
public int ErrorCount {
- get { return errorCount; }
+ get { return error_count; }
}
[MonoTODO]
public int WarningCount {
- get { return warningCount; }
+ get { return warning_count; }
}
[MonoTODO]
public OutputMessage this [int index] {
- get { return null; }
+ get { return list [index]; }
}
}
}