using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
var dic = new Dictionary<char, bool>();
dic = Path.GetInvalidFileNameChars().ToDictionary(c => c, c => true);
foreach (KeyValuePair<char, bool> pair in dic) {
Console.WriteLine("{0} : {1}", pair.Key, pair.Value);
}
}
}
}
/*
run:
" : True
< : True
> : True
| : True
☺ : True
☻ : True
♥ : True
♦ : True
♣ : True
♠ : True
: True
: True
♂ : True
♀ : True
♫ : True
☼ : True
► : True
◄ : True
↕ : True
‼ : True
¶ : True
§ : True
▬ : True
↨ : True
↑ : True
↓ : True
→ : True
← : True
∟ : True
↔ : True
▲ : True
▼ : True
: : True
* : True
? : True
\ : True
/ : True
*/