Skip to content

remove redundant Attribute( suffixes#4158

Open
SimonCropp wants to merge 1 commit intodotnet:mainfrom
SimonCropp:remove-redundant-Attribute(-suffixes
Open

remove redundant Attribute( suffixes#4158
SimonCropp wants to merge 1 commit intodotnet:mainfrom
SimonCropp:remove-redundant-Attribute(-suffixes

Conversation

@SimonCropp
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 03:55
@SimonCropp SimonCropp requested a review from a team as a code owner April 8, 2026 03:55
@github-project-automation github-project-automation bot moved this to To triage in SqlClient Board Apr 8, 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 standardizes attribute usage by removing redundant Attribute suffixes across several SqlClient types, and includes a few whitespace-only cleanups in comments/preprocessor blocks.

Changes:

  • Replaced usages like EditorBrowsableAttribute, ResCategoryAttribute, ResDescriptionAttribute, ConditionalAttribute, and fully-qualified serialization attributes with their shortened forms.
  • Cleaned up trailing whitespace and spacing around #endif and comment lines.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlParameterCollection.cs Shortened EditorBrowsableAttribute usage; minor doc comment whitespace cleanup.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlException.cs Shortened OptionalFieldAttribute / IgnoreDataMember usages (netfx-only) and removed stray whitespace.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependency.cs Shortened HostProtectionAttribute, ResCategoryAttribute, ResDescriptionAttribute; whitespace cleanup.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataReader.cs Shortened EditorBrowsableAttribute usages.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDataAdapter.cs Shortened ResCategoryAttribute / ResDescriptionAttribute usages.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnection.cs Shortened ResCategoryAttribute / SettingsBindableAttribute usages; whitespace cleanup.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommandBuilder.cs Shortened EditorBrowsableAttribute, ResCategoryAttribute, ResDescriptionAttribute usages.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common/ConnectionString/DbConnectionString.netfx.cs Shortened ConditionalAttribute usage and whitespace cleanup around #endif.

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

Labels

None yet

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

2 participants