From 7876ce9d17d97d87b4126b2858b5bfe8c7e349e0 Mon Sep 17 00:00:00 2001 From: Marek Sieradzki Date: Fri, 2 Feb 2007 13:24:35 +0000 Subject: [PATCH] 2007-02-02 Marek Sieradzki * OutputMessageCollection.cs * OutputMessage.cs * AssemblyReferenceCollection.cs * FileReferenceCollection.cs: corcompare changes. svn path=/trunk/mcs/; revision=72167 --- .../AssemblyReferenceCollection.cs | 25 +++++++++++++------ .../ChangeLog | 7 ++++++ .../FileReferenceCollection.cs | 25 +++++++++++++------ .../OutputMessage.cs | 4 +++ .../OutputMessageCollection.cs | 23 +++++++++++------ 5 files changed, 61 insertions(+), 23 deletions(-) diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/AssemblyReferenceCollection.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/AssemblyReferenceCollection.cs index edd345e6917..6571b8a84f9 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/AssemblyReferenceCollection.cs +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/AssemblyReferenceCollection.cs @@ -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 list; + + AssemblyReferenceCollection () + { + list = new List (); + } 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]; } } } } diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/ChangeLog b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/ChangeLog index 890b5efa966..478da47c82a 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/ChangeLog +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/ChangeLog @@ -1,3 +1,10 @@ +2007-02-02 Marek Sieradzki + + * OutputMessageCollection.cs + * OutputMessage.cs + * AssemblyReferenceCollection.cs + * FileReferenceCollection.cs: corcompare changes. + 2006-06-15 Marek Sieradzki * UpdateUnit.cs, AssemblyReferenceType.cs, OutputMessageType.cs, diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/FileReferenceCollection.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/FileReferenceCollection.cs index 94108657099..d787888568b 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/FileReferenceCollection.cs +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/FileReferenceCollection.cs @@ -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 list; + + FileReferenceCollection () + { + list = new List (); + } [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]; } } } } diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessage.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessage.cs index 92ea3b7d737..301966f48c0 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessage.cs +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessage.cs @@ -39,6 +39,10 @@ namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { string name; string text; OutputMessageType type; + + OutputMessage () + { + } [MonoTODO] public string[] GetArguments () diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessageCollection.cs b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessageCollection.cs index 2aa5fb2b669..3638361e59f 100644 --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessageCollection.cs +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.Deployment.ManifestUtilities/OutputMessageCollection.cs @@ -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 list; + int warning_count; + + OutputMessageCollection () + { + list = new List (); + } [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]; } } } } -- 2.25.1