mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-04 09:06:19 +02:00
Merge pull request #21 from cagdaskarademir/master
Any, Is, Have or Similar Keywords
This commit is contained in:
@@ -414,6 +414,17 @@ public class BarcodeReadException : System.Exception
|
||||
|
||||
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
||||
|
||||
#### 26. Do use suffix Any, Is, Have or similar keywords for boolean identifier :
|
||||
|
||||
```csharp
|
||||
// Correct
|
||||
public static bool IsNullOrEmpty(string value) {
|
||||
return (value == null || value.Length == 0);
|
||||
}
|
||||
```
|
||||
|
||||
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
||||
|
||||
## Offical Reference
|
||||
|
||||
1. [MSDN General Naming Conventions](http://msdn.microsoft.com/en-us/library/ms229045(v=vs.110).aspx)
|
||||
|
||||
Reference in New Issue
Block a user