In c # line is just an alias for the CLR type System.String , so there is no performance difference. It is not clear why MS decided to include this alias, in particular, since other aliases (int, long, etc.) are value types, not reference types.
On my team, we decided that the static methods of the string class should be specified as, for example. String.ToUpper () , not string.ToUpper () to be more compatible with other CLR languages.
Ultimately, which version you use is up to you, but you must decide which one you will use in which context to improve consistency.
source share