After learning about Console.ReadLine () in depth, I found something very peculiar.
I wrote the following code in the main method in a console application in C #
string str = Console.ReadLine();
Console.WriteLine(str);
Console.WriteLine(str.Trim());
Console.ReadLine();
When I ran the code, I gave input as ctrl + A and hit enter. I see emoticons (I can’t send an image because I don’t have permission yet to do this).
I want to understand how he shows the emoticon ? If it does not show ^ A or empty / empty (empty, because when I tried to debug it, it showed the string value a "".)
source
share