foreach (char c in data.name)
{
- if (c == '\\' || c == ' ' || c == '\'' || c == '\"')
+ if (c == '\\' || c == ' ' || c == '\'' || c == '\"' || c == ':')
str += "\\";
str += c;
}
{
public static void Main()
{
- MSymbol sym = new MSymbol ("symbol");
+ MSymbol sym1 = new MSymbol ("sym1");
+ MSymbol sym2 = new MSymbol ("sym2");
MPlist plist = new MPlist ();
- MText mt = new MText ("abc");
+ MText mt1 = new MText ("abc");
+ MText mt2 = new MText ("ABC");
- plist.put (sym, mt);
+ plist.put (sym1, mt1);
+ plist.put (sym2, mt2);
Console.WriteLine (plist);
}
{
MSymbol sym1 = new MSymbol ("symbol");
MSymbol sym2 = new MSymbol ("symbol");
- MSymbol sym3 = new MSymbol ("another symbol");
+ MSymbol sym3 = new MSymbol ("another sym:bol");
Console.WriteLine ("sym1 = {0}", sym1);
Console.WriteLine ("sym2 = {0}", sym2);