Skip to content

.NET: Rename local variables in LocalEvaluator.cs to follow C# guidelines#5970

Open
XiongHaoTrigger wants to merge 1 commit into
microsoft:mainfrom
XiongHaoTrigger:main
Open

.NET: Rename local variables in LocalEvaluator.cs to follow C# guidelines#5970
XiongHaoTrigger wants to merge 1 commit into
microsoft:mainfrom
XiongHaoTrigger:main

Conversation

@XiongHaoTrigger
Copy link
Copy Markdown
Contributor

Motivation and Context

While reading the source code, I noticed that the naming of local variables here does not comply with C# guidelines. This change is purely formatting and does not affect any functionality.

Description

The local variables in dotnet/src/Microsoft.Agents.AI/Evaluation/LocalEvaluator.cs violated the C# coding guidelines. Renamed these variables to improve code readability and consistency.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

The local variables in LocalEvaluator.cs violated the team's C# coding
guidelines. Renamed these variables to improve code readability and consistency.
Copilot AI review requested due to automatic review settings May 20, 2026 09:23
@moonbox3 moonbox3 added the .NET label May 20, 2026
@github-actions github-actions Bot changed the title Rename local variables in LocalEvaluator.cs to follow C# guidelines .NET: Rename local variables in LocalEvaluator.cs to follow C# guidelines May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates LocalEvaluator to follow C# local-variable naming conventions by renaming a locally-scoped variable used during metric evaluation, without changing behavior.

Changes:

  • Renamed EvalCheckResultevalCheckResult within EvaluateAsync to match standard C# camelCase local variable style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants