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
Ant 6729
NA
87
2.2k
Dictionaries with timespans and messages
Jul 5 2019 1:55 AM
Hello
I try to use dictionaries
And I would like to know how could I in dictionary use a specific time range to display the appropriate message.
For example
If it's lunchtime, then one message.
If it is morning now, time is something else.
My attempt here
namespace
ConsoleApp1
{
class
Program
{
static
string
Method()
{
Console.WriteLine(
"The Timespan is : {0}"
, variable);
}
static
void
Main(
string
[] args)
{
var greetings =
new
List<
object
>() {
"Good morning"
,
"Good day"
,
"Good evenining"
};
var timePoints =
new
List<
object
>() { 9, 12, 15, 22};
for
(
int
i = 0; i < greetings.Count; i++)
{
//System.Console.WriteLine(i + 1 + " Pair:" + "\n" + "C# type inside IL is: " + greetings[i].GetType() + "\n" + timePoints[i].GetType() + "\n");
}
}
}
}
Reply
Answers (
1
)
Session Maintain
Query numbering in groups in access database ?