There is no difference in C# - just stylistics (I prefer the second one).
In languages such as C and C++, it would make a difference with pointers:
int* p1, p2, p3; // p1 is a pointer to int, but p2 and p3 aren't
In C# we don't have this problem:
int* p1, p2, p3; // Ok, all three are pointers
int *p1, *p2, *p3; // Invalid in C#
Also, in C++ sometimes T a, b;
is not equivalent to T a;
T b;
even when T
is not a pointer - that's the case when a coincides with T;
T T, X; //T and X are of type T
T T;
T X; //error T is not a type
Sorry, I posted more about C++ than about C#, but this is to demonstrate that C# has taken care of potential differences between the two forms which C++ hasn't :)