C#

C#

Made by DeepSource

Use aliases when using built-in types CS-R1000

Anti-pattern
Minor

Most of the built-in types in the language have aliases defined for them. Some such examples are:

[Type] [Alias] 1. System.String [String] -> string 2. System.Boolean [Boolean] -> bool 3. System.Byte [Byte] -> byte 4. System.Int32 [Int32] -> int

and so on. Therefore, it is suggested that you use these aliases when and where possible.

Bad Practice

String lang = "C#";

Recommended

string lang = "C#";

Reference