Possible Duplicate:
String vs string in C#
Yeah, I knew that both of 2 style is ok, but which one is better, and why?
Possible Duplicate:
String vs string in C#
Yeah, I knew that both of 2 style is ok, but which one is better, and why?
In most cases, it is subject to opinion.
The less disputable facts:
using
declaration.If it is a new project, and you are in control of the coding style, use whichever tickles your fancy.
In addition to the method/property naming requirement, I've seen people say they prefer the non-keyword type name, so that it is more directly grokable across .Net languages. My opinion on this opinion is to write code to the language you are in.
The similar question was raised previously in StackOverFlow. And the Answer to it is given. Please refer to the following link for details:
https://stackoverflow.com/questions/215255/string-vs-string-in-c#
I'll add that StyleCop ( http://stylecop.codeplex.com/ ) "prefers" the "lower case" versions.
SA1121 Readability Rules UseBuiltInTypeAlias
A violation of this rule occurs when one of the following types are used anywhere in the code: Array, Boolean, Byte, Char, Decimal, Double, Int16, Int32, Int64, Object, SByte, Single, String, UInt16, UInt32, UInt64.
A violation also occurs when any of these types are represented in the code using the full namespace for the type: System.Array, System.Boolean, System.Byte, System.Char, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.Object, System.SByte, System.Single, System.String, System.UInt16, System.UInt32, System.UInt64.
Rather than using the type name or the fully-qualified type name, the built-in aliases for these types should always be used: array, bool, byte, char, decimal, double, short, int, long, object, sbyte, single, string, ushort, uint, ulong.
(taken from the help file StyleCop.chm)