/[gr2lib]/trunk/gr2lib/core/helpers/NameValuePair.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/helpers/NameValuePair.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/helpers/NameValuePair.cs	2010/07/22 09:06:33	159
+++ trunk/gr2lib/core/helpers/NameValuePair.cs	2010/07/22 10:20:55	160
@@ -14,6 +14,13 @@
     }
     public class NameValuePair<NAME_TYPE, VALUE_TYPE> : INameValuePair<NAME_TYPE, VALUE_TYPE>
     {
+
+        public override string ToString()
+        {
+            string val = "{" + Convert.ToInt32(Value).ToString() + "}";
+            return String.Format("{0} {1}", Name.ToString(), val);
+        }
+
         public NameValuePair()
         {
             _Name = default(NAME_TYPE);

 

  ViewVC Help
Powered by ViewVC 1.1.22