mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-04 00:56:16 +02:00
Merge pull request #1 from cagdaskarademir/feature/cagdaskarademir/step26
Update C# Coding Standards and Naming Conventions.md
This commit is contained in:
@@ -412,6 +412,15 @@ public class BarcodeReadException : System.Exception
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 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.***
|
***Why: consistent with the Microsoft's .NET Framework and easy to read.***
|
||||||
|
|
||||||
## Offical Reference
|
## Offical Reference
|
||||||
|
|||||||
Reference in New Issue
Block a user