TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dinesh Kudale
1.6k
127
17.7k
Why output contain 'D' in C# program of ReadKey() ?
Jun 15 2019 1:04 AM
using
System;
using
System.Collections.Generic;
using
System.Text;
namespace
CSharp5
{
class
Class3
{
static
void
Main()
{
ConsoleKeyInfo m = Console.ReadKey();
Console.WriteLine(
"\n"
+ m.Key);
}
}
}
In Output screen, When I press 2, then it print D2.
Why It prints D before output?
Reply
Answers (
2
)
VisualC# program advice
.NET CORE Console app publish issue(Self-contained)