*** empty log message ***
[m17n/m17n-lib-cs.git] / MSymbol.cs
index 39f9958..c687a0f 100644 (file)
@@ -26,6 +26,16 @@ namespace M17N.Core
       Name = name;
     }
 
+    public static implicit operator MSymbol (string name)
+    {
+      return Of (name);
+    }
+
+    public static explicit operator string (MSymbol sym)
+    {
+      return sym.Name;
+    }
+
     public static MSymbol Of (string name)
     {
       lock (pool)