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
Prakash Tripathi
29
40.3k
6.3m
var in class level members
Jul 3 2016 2:45 AM
Hello experts,
I wonder why var is not allowed to be used in class level members. When using so, I am getting error as "
The contextual keyword 'var' may only appear within a local variable declaration or in script code
"
class ConcurrentDictionaryDemo
{
var phoneOrders = new ConcurrentDictionary<string, int>(); //Error
............
............
}
Any thoughts on this?
Reply
Answers (
2
)
C# Polygon Border Algorithm
How to Download in in file