Colleagues,
I'm kinda new to C#, "kinda" - coz I haven't been working with it since 2007 and forgotten some even simple things like the one in subject.
Now I'm back to C# (VS 2012 .NET) and trying to restore my skills.
So, quick question:
I vaguely remember that C# allowed (local) memvars' declaration like this:
Am I correct, or my (deteriorating) memory plays some sick trick on me and it was some other language?
P.S. Didn't find neither confirmation nor denial in MS's documentation, hence posting here.
Regards,
Ilya
I'm kinda new to C#, "kinda" - coz I haven't been working with it since 2007 and forgotten some even simple things like the one in subject.
Now I'm back to C# (VS 2012 .NET) and trying to restore my skills.
So, quick question:
I vaguely remember that C# allowed (local) memvars' declaration like this:
C#:
string sVar1 = sVar2 = sVar3 = sVar4 = "";
Am I correct, or my (deteriorating) memory plays some sick trick on me and it was some other language?
P.S. Didn't find neither confirmation nor denial in MS's documentation, hence posting here.
Regards,
Ilya