mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-04 09:06:19 +02:00
Do not use abbreviations in 5. because of 6.
The rule right after it says not to do it, yet it does it. Hypocritical, lol...
This commit is contained in:
@@ -74,9 +74,9 @@ public const string SHIPPINGTYPE = "DropShip";
|
||||
#### 5. Use meaningful names for variables. The following example uses seattleCustomers for customers who are located in Seattle:
|
||||
|
||||
```csharp
|
||||
var seattleCustomers = from cust in customers
|
||||
where cust.City == "Seattle"
|
||||
select cust.Name;
|
||||
var seattleCustomers = from customer in customers
|
||||
where customer.City == "Seattle"
|
||||
select customer.Name;
|
||||
```
|
||||
|
||||
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
||||
|
||||
Reference in New Issue
Block a user