StackExchange / StackExchange/StackExchange.Redis

Naming inconventions on private fields.

Open
#2,648 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Under test, I see private fields don't start with underscores.

image

Is there any specific policy to avoid using underscore before letters on private fields by Redis? I would like to change them all, on entire solution but I wanted to create an issue to be sure about it.

Here is Microsoft's link about indentifier names.
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies private fields under test but does not name specific files or tests; start by reviewing the relevant test code and the linked Microsoft C# naming guidance. Confirm the repository policy before changing names across the solution, with consistent private-field naming throughout as the completion criterion.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.