Simple question re VB to c#

  • Thread starter Thread starter Adrian
  • Start date Start date
A

Adrian

Hi
just trying to switch from VB.net to c# and one thing which is really
bugging me is the auto prompting or the lack of it in C# can this be
swithced on?

so in VB I would type "Public x as" then aliet of possible optionwould
appear!

in C# "Public " but no list!

Thanks
 
Adrian said:
Hi
just trying to switch from VB.net to c# and one thing which is really
bugging me is the auto prompting or the lack of it in C# can this be
swithced on?

so in VB I would type "Public x as" then aliet of possible optionwould
appear!

in C# "Public " but no list!

Thanks
It's a question of the amount of information provided.
When you type "Public x As" in VB, VB knows a type is expected next, and
provides a list.
OTOH, typing "Public" in C# does not constrain the possibilities nearly as
much.
In C#, all sorts of things can logically follow "Public". You could be
starting a method header, or declaring a variable, etc.
 
I see OK thanks.

pvdg42 said:
It's a question of the amount of information provided.
When you type "Public x As" in VB, VB knows a type is expected next, and
provides a list.
OTOH, typing "Public" in C# does not constrain the possibilities nearly as
much.
In C#, all sorts of things can logically follow "Public". You could be
starting a method header, or declaring a variable, etc.
 
Back
Top