It is considered standard to use bool instead of Boolean, string
instead of String, etc.
But technically, it's the same thing because they are all just
aliases.
int is an alias for Int32, string points to String, etc.
I you are going to be writing code in different languages (like C# and
VB) on a regular basis, it's best to be consistent, but I personally
like to use aliases, because who would want to type out Int64 instead
of long every time you need to use it???
On Aug 20, 4:27 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
shapper wrote:
When using C# should I use bool or Boolean, string or String, ... do
define a variable?
I am used to VB but for a few months I have been using C# instead ...
Matter of style.
Personally I prefer bool/string over Boolean/String. It is my impression
that the majority does the same.
Note that for method names like writeXxxx then you should always use
the .NET names, because the code may be used from other languages.
Arne