Posted 14 years ago
by Gareth Hayter
IntelliPrompt doesn't seem to work when using 'var' in a foreach statement, however it does work as expected when using 'var' by itself:
Works correctly (shows correct members in list):
var x = this.Controls[0];
x. <- type '.' to display IntelliPrompt
Broken (doesn't show correct members in list):
foreach (var x in this.Controls)
{
x. <- type '.' to display IntelliPrompt
}
Works correctly (shows correct members in list):
var x = this.Controls[0];
x. <- type '.' to display IntelliPrompt
Broken (doesn't show correct members in list):
foreach (var x in this.Controls)
{
x. <- type '.' to display IntelliPrompt
}