The result is exactly the same. Both are of the same type, so the resulting executable files are completely identical.
The char keyword is a C # alias for the type System.Char in the framework.
You can always use the char keyword. To use char , you need using System; include the System namespace at the top of the file (or use System.Char to specify the namespace).
In most situations, you can use either a keyword or a frame type, but not everywhere. For example, as a type of support in an enumeration, you can use only the keyword:
enum Test : int { }
(I use int in the example, since you cannot use char as the support type for an enumeration.)
Related: Difference between bytes and byte data types in C #
Guffa
source share