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
Hemant Mehra
NA
347
0
why we use delegate Func<T>
Jul 28 2014 9:14 AM
why we use delegate Func<T> there...
using System;
class Test
{
static void Main()
{
Func<string> func = GetGreeting; // no parameters but returns a string
Console.WriteLine(func());
Console.ReadKey();
}
static string GetGreeting()
{
return "Hello Jitendra :)";
}
}
Reply
Answers (
1
)
Is it good practice to use namespace like a variable???
listbox items