var in C# - Why can't it be used as a member variable?
Posted
by David Neale
on Stack Overflow
See other posts from Stack Overflow
or by David Neale
Published on 2010-05-05T08:08:15Z
Indexed on
2010/05/05
8:18 UTC
Read the original article
Hit count: 350
Why is it not possible to have implicitly-typed variables at a class level within C# for when these variables are immediately assigned?
ie:
public class TheClass
{
private var aList = new List<string>();
}
Is it just something that hasn't been implemented or is there a conceptual/technical reason for why it hasn't been done?
© Stack Overflow or respective owner