mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-04 09:06:19 +02:00
Merge pull request #18 from rodolphito/patch-1
Do not use abbreviations in 5. because of 6.
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:
|
#### 5. Use meaningful names for variables. The following example uses seattleCustomers for customers who are located in Seattle:
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
var seattleCustomers = from cust in customers
|
var seattleCustomers = from customer in customers
|
||||||
where cust.City == "Seattle"
|
where customer.City == "Seattle"
|
||||||
select cust.Name;
|
select customer.Name;
|
||||||
```
|
```
|
||||||
|
|
||||||
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
||||||
|
|||||||
Reference in New Issue
Block a user