[f-spot] UriList is now a List<Uri>. Implements IEnumerable<Uri>.
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] UriList is now a List<Uri>. Implements IEnumerable<Uri>.
- Date: Mon, 6 Jul 2009 08:17:26 +0000 (UTC)
commit 2df453801ff63522dca97359c5bcf6ad1fe1c397
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jul 6 10:10:59 2009 +0200
UriList is now a List<Uri>. Implements IEnumerable<Uri>.
src/Util.cs | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/Util.cs b/src/Util.cs
index 9cfdb87..19a5544 100644
--- a/src/Util.cs
+++ b/src/Util.cs
@@ -10,6 +10,7 @@
using System.Runtime.InteropServices;
using System.Threading;
using System.Collections;
+using System.Collections.Generic;
using System.IO;
using System.Text;
using System;
@@ -18,7 +19,7 @@ using System;
namespace FSpot.Utils
{
- public class UriList : ArrayList {
+ public class UriList : List<Uri> {
public UriList (FSpot.IBrowsableItem [] photos) {
foreach (FSpot.IBrowsableItem p in photos) {
Uri uri;
@@ -107,21 +108,11 @@ namespace FSpot.Utils
LoadFromString (System.Text.Encoding.UTF8.GetString (selection.Data));
}*/
- public new Uri [] ToArray ()
- {
- return ToArray (typeof (Uri)) as Uri [];
- }
-
/*public void Add (string path)
{
AddUnknown (path);
}*/
- public void Add (Uri uri)
- {
- Add ((object)uri);
- }
-
public void Add (FSpot.IBrowsableItem item)
{
Add (item.DefaultVersionUri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]