projects
/
m17n
/
m17n-lib-cs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[m17n/m17n-lib-cs.git]
/
MSymbol.cs
diff --git
a/MSymbol.cs
b/MSymbol.cs
index
39f9958
..
c687a0f
100644
(file)
--- a/
MSymbol.cs
+++ b/
MSymbol.cs
@@
-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)