[longomatch] Allow serializing Tags to strings.



commit 3a6d6a875fff4bd830626ccbba316c79c273796c
Author: Xavi Artigas <xartigas fluendo com>
Date:   Tue Apr 14 18:21:59 2015 +0200

    Allow serializing Tags to strings.

 LongoMatch.Core/Store/Tag.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Tag.cs b/LongoMatch.Core/Store/Tag.cs
index 9ee2847..aa6bbf9 100644
--- a/LongoMatch.Core/Store/Tag.cs
+++ b/LongoMatch.Core/Store/Tag.cs
@@ -64,5 +64,9 @@ namespace LongoMatch.Core.Store
                                return base.GetHashCode ();
                        }
                }
+
+               public override string ToString () {
+                       return String.Format ("{0} ({1})", Value, Group);
+               }
        }
 }


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