How to get all the separator characters code in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            for (char ch = char.MinValue; ch < char.MaxValue; ch++)
            {
                if (char.IsSeparator(ch))
                    Console.WriteLine((int)ch);
            }
        }
    }
}


/*
run:

32
160
5760
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8232
8233
8239
8287
12288

*/

 



answered Mar 8, 2017 by avibootz
...