Author: spouliot
Date: 2006-11-06 19:16:02 -0500 (Mon, 06 Nov 2006)
New Revision: 67422
Modified:
trunk/cecil/gendarme/framework/ChangeLog
trunk/cecil/gendarme/framework/Gendarme.Framework.csproj
trunk/cecil/gendarme/framework/MessageCollection.cs
Log:
Gendarme.Framework.csproj: Update to add new file. MessageCollection.cs: Add
new ctor that accept a Message. Easier to use when returning a collection with
a single message.
Modified: trunk/cecil/gendarme/framework/ChangeLog
===================================================================
--- trunk/cecil/gendarme/framework/ChangeLog 2006-11-07 00:10:43 UTC (rev
67421)
+++ trunk/cecil/gendarme/framework/ChangeLog 2006-11-07 00:16:02 UTC (rev
67422)
@@ -1,10 +1,13 @@
-2006-11-06 Sebastien Pouliot <[EMAIL PROTECTED]>
+2006-11-06 Sebastien Pouliot <[EMAIL PROTECTED]>
* framework.mdp: Update to add new file.
+ * Gendarme.Framework.csproj: Update to add new file.
* Makefile.am: Update to add new file.
* Message.cs: Reformat source to follow Mono source style. Ensure that
ToString works if a Location is null (e.g. rules on assemblies and
modules may not have a location).
+ * MessageCollection.cs: Add new ctor that accept a Message. Easier to
+ use when returning a collection with a single message.
* MessageType.cs: New file. Moved enum from Message.cs.
2006-10-09 Sebastien Pouliot <[EMAIL PROTECTED]>
Modified: trunk/cecil/gendarme/framework/Gendarme.Framework.csproj
===================================================================
--- trunk/cecil/gendarme/framework/Gendarme.Framework.csproj 2006-11-07
00:10:43 UTC (rev 67421)
+++ trunk/cecil/gendarme/framework/Gendarme.Framework.csproj 2006-11-07
00:16:02 UTC (rev 67422)
@@ -39,6 +39,7 @@
<Compile Include="Location.cs" />
<Compile Include="Message.cs" />
<Compile Include="MessageCollection.cs" />
+ <Compile Include="MessageType.cs" />
<Compile Include="MinimalRunner.cs" />
<Compile Include="RuleCollection.cs" />
<Compile Include="RuleInformation.cs" />
Modified: trunk/cecil/gendarme/framework/MessageCollection.cs
===================================================================
--- trunk/cecil/gendarme/framework/MessageCollection.cs 2006-11-07 00:10:43 UTC
(rev 67421)
+++ trunk/cecil/gendarme/framework/MessageCollection.cs 2006-11-07 00:16:02 UTC
(rev 67422)
@@ -34,7 +34,18 @@
/// </summary>
public class MessageCollection : IEnumerable {
- private ArrayList innerList = new ArrayList ();
+ private ArrayList innerList = new ArrayList ();
+
+
+ public MessageCollection ()
+ {
+ }
+
+ public MessageCollection (Message msg)
+ : this ()
+ {
+ Add (msg);
+ }
/// <summary>
/// Adds the given message to this collection
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches