[longomatch] Add method to get the last game unit in the list



commit 170c7e00993d4a6b6310e306efa9296ba4ee310e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Feb 6 03:04:53 2012 +0100

    Add method to get the last game unit in the list

 LongoMatch.Core/Store/GameUnitsList.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/GameUnitsList.cs b/LongoMatch.Core/Store/GameUnitsList.cs
index 65503e4..4cb7c4a 100644
--- a/LongoMatch.Core/Store/GameUnitsList.cs
+++ b/LongoMatch.Core/Store/GameUnitsList.cs
@@ -56,6 +56,10 @@ namespace LongoMatch.Store
 				return null;
 			return this[index+1];
 		}
+		
+		public GameUnit GetLast() {
+			return this[this.Count-1];
+		}
 	}
 }
 



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