[f-spot] Convert to auto properties



commit 35d57e0cc8bd3c9519ad79fdfddcd37d90658d44
Author: Stephen Shaw <sshaw decriptor com>
Date:   Wed Nov 30 14:51:19 2011 -0700

    Convert to auto properties

 src/Core/FSpot.Core/FSpot.Core/DbItem.cs |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/Core/FSpot.Core/FSpot.Core/DbItem.cs b/src/Core/FSpot.Core/FSpot.Core/DbItem.cs
index 4e565f3..ac4b77e 100644
--- a/src/Core/FSpot.Core/FSpot.Core/DbItem.cs
+++ b/src/Core/FSpot.Core/FSpot.Core/DbItem.cs
@@ -4,6 +4,7 @@
 // Author:
 //   Stephane Delcroix <sdelcroix src gnome org>
 //   Ruben Vermeersch <ruben savanne be>
+//   Stephen Shaw <sshaw decriptor com>
 //
 // Copyright (C) 2008-2010 Novell, Inc.
 // Copyright (C) 2008 Stephane Delcroix
@@ -33,7 +34,8 @@ using System;
 
 namespace FSpot.Core
 {
-	public class DbItem {
+	public class DbItem
+	{
 		public uint Id { get; private set; }
 
 		protected DbItem (uint id) {
@@ -41,21 +43,18 @@ namespace FSpot.Core
 		}
 	}
 
-	public class DbItemEventArgs<T> : EventArgs where T : DbItem {
-		private T [] items;
-
-		public T [] Items {
-			get { return items; }
-		}
+	public class DbItemEventArgs<T> : EventArgs where T : DbItem
+	{
+		public T [] Items { get; private set; }
 
 		public DbItemEventArgs (T [] items) : base ()
 		{
-			this.items = items;
+			Items = items;
 		}
 
 		public DbItemEventArgs (T item) : base ()
 		{
-			this.items = new T [] { item };
+			Items = new T [] { item };
 		}
 	}
 }
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]