Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SA1314: TypeParameterNamesMustBeginWithT #739

Closed
Przemyslaw-W opened this issue Apr 27, 2015 · 3 comments · Fixed by #1925
Closed

Implement SA1314: TypeParameterNamesMustBeginWithT #739

Przemyslaw-W opened this issue Apr 27, 2015 · 3 comments · Fixed by #1925
Assignees
Milestone

Comments

@Przemyslaw-W
Copy link

I'd like to propose new naming rule for generic parameters. Name should start with "T", second character (if it exists) should be upper case letter or digit. AFAIK Whole BCL follows this convention.

Few valid names: "T", "T1", "TKey", "TValue"

Few invalid names: "t", "Tkey", "Key"

This rule was originally proposed by Andy Reeves here:
http://stylecop.codeplex.com/workitem/6891

@sharwell
Copy link
Member

I think this makes sense. It's certainly in line with the existing rule that applies to interface names.

@GregReddick
Copy link

👍

@nbarbettini
Copy link
Contributor

Grabbing this one

@sharwell sharwell added this to the Backlog milestone Dec 7, 2015
@sharwell sharwell modified the milestones: Backlog, 1.1.0 Beta 1 Dec 17, 2015
@sharwell sharwell changed the title Rule proposal: Naming rule - naming of generic type arguments Implement SA1314: TypeParameterNamesMustBeginWithT Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants