---
title: Boolean Names Is/Has/Should
impact: HIGH
impactDescription: makes conditions instantly readable
tags: naming, booleans, readability, quality, csharp
---

## Boolean Names Is/Has/Should

Prefix boolean properties and variables with `Is`, `Has`, `Can`, `Should`.

**Incorrect:**

```csharp
public bool Active { get; set; }
public bool Validate { get; set; } // is this a flag or a method?
```

**Correct:**

```csharp
public bool IsActive { get; set; }
public bool ShouldValidate { get; set; }
public bool HasAccess { get; set; }
```

**Tools:** StyleCop, Code Review
