[banshee] Add implicit conversion to string.



commit a41491fef499d2d48c41b58672c9587f59d814a3
Author: Ruben Vermeersch <ruben savanne be>
Date:   Wed May 26 14:16:37 2010 +0200

    Add implicit conversion to string.
    
    This makes it seamlessly work with GIO#.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619706

 src/Core/Banshee.Core/Banshee.Base/SafeUri.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Base/SafeUri.cs b/src/Core/Banshee.Core/Banshee.Base/SafeUri.cs
index 5973929..622fa08 100644
--- a/src/Core/Banshee.Core/Banshee.Base/SafeUri.cs
+++ b/src/Core/Banshee.Core/Banshee.Base/SafeUri.cs
@@ -124,6 +124,11 @@ namespace Banshee.Base
             return AbsoluteUri;
         }
 
+        public static implicit operator string (SafeUri s)
+        {
+            return s.ToString ();
+        }
+
         public override bool Equals (object o)
         {
             if (!(o is SafeUri)) {



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