2007-02-02 Marek Sieradzki <marek.sieradzki@gmail.com>
authorMarek Sieradzki <msierad@mono-cvs.ximian.com>
Fri, 2 Feb 2007 13:24:35 +0000 (13:24 -0000)
committerMarek Sieradzki <msierad@mono-cvs.ximian.com>
Fri, 2 Feb 2007 13:24:35 +0000 (13:24 -0000)
        * OutputMessageCollection.cs
        * OutputMessage.cs
        * AssemblyReferenceCollection.cs
        * FileReferenceCollection.cs: corcompare changes.

svn path=/trunk/mcs/; revision=72167

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/AssemblyReferenceCollection.cs
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/ChangeLog
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/FileReferenceCollection.cs
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessage.cs
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessageCollection.cs

index edd345e69172be5c89c93e1b6535ddd6fe766f49..6571b8a84f93c9985e9411d86dd2b65b7db6cce0 100644 (file)
@@ -29,6 +29,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Generic;
 using System.Runtime.InteropServices;
 using Microsoft.Build.Framework;
 
@@ -37,21 +38,29 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
        [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)
@@ -71,20 +80,20 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
                
                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]; }
                }
        }
 }
index 890b5efa9660240fbffe27b6039160a08279ebea..478da47c82ae6e84819245f9de42f6ba9a1c358c 100644 (file)
@@ -1,3 +1,10 @@
+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,
index 94108657099c3d8a42dca4c427fb9031c0c4ba4e..d787888568b499d285732837fb764cd1f8f5a7da 100644 (file)
@@ -29,6 +29,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Generic;
 using System.Runtime.InteropServices;
 using Microsoft.Build.Framework;
 
@@ -36,23 +37,33 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
        
        [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]
@@ -64,23 +75,23 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
                [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]; }
                }
        }
 }
index 92ea3b7d7379c52c3023784b99743bfa95907def..301966f48c04d5fe23017994835788dce21793a0 100644 (file)
@@ -39,6 +39,10 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
                string                  name;
                string                  text;
                OutputMessageType       type;
+
+               OutputMessage ()
+               {
+               }
        
                [MonoTODO]
                public string[] GetArguments ()
index 2aa5fb2b6691f6384b7994633e13a7e44e8b0f98..3638361e59f994d9e133b9d85dcf663e076b7df4 100644 (file)
@@ -29,6 +29,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Generic;
 using System.Runtime.InteropServices;
 using Microsoft.Build.Framework;
 
@@ -36,35 +37,41 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities {
        
        [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]; }
                }
        }
 }