G
Guest
hi,
I'm now using C#. Seeing as though you can declare & initialize or pass a
value to a variable on the same line as the declaration, is it still best
practice to group all the variables together at the top of the method, or is
it now acceptable for them to be declared at the point where they are
initially needed, seeing as though you can 'go to the definition', with the
right click of a mouse?
Pedantic I know, but I'm curious.
thanks for your opinions
Ant
I'm now using C#. Seeing as though you can declare & initialize or pass a
value to a variable on the same line as the declaration, is it still best
practice to group all the variables together at the top of the method, or is
it now acceptable for them to be declared at the point where they are
initially needed, seeing as though you can 'go to the definition', with the
right click of a mouse?
Pedantic I know, but I'm curious.
thanks for your opinions
Ant