In C# we have .Net class and the short names, like Double and double. I was suggested sometime back that we shall use the short name always, wanted to know why. I know they both are same, but why one is sometimes preferred over others? Just readability or is there something more to it?
For example if I am creating a Class having a string and a boolean properties, which of the following should be used always and when the other should be used:
Class MyClass {
...
private String x;
private Boolean y;
...
}
OR
Class MyClass {
...
private string x;
private bool y;
...
}
In short: Do it like you want.
I would prefer to use the alias every time I can.
Use
Int32instead of int when you have several different Ints in your Code. Like mixingInt32,Int64orInt16.