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

SA1101 misfires when member name coincides with type name #2093

Closed
AArnott opened this issue Mar 2, 2016 · 1 comment
Closed

SA1101 misfires when member name coincides with type name #2093

AArnott opened this issue Mar 2, 2016 · 1 comment
Assignees
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented Mar 2, 2016

In the below sample (which references System.Drawing.dll), the use of the static method Region.FromHrgn causes SA1101 to inappropriately report that this. should be used in front of the Region type. Evidently it is confusing the Program.Region member with the Region type.

using System;
using System.Drawing;

internal class Program
{
    public Region Region => Region.FromHrgn(IntPtr.Zero);
}
@vweijsters
Copy link
Contributor

This one is similar to #1501

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

No branches or pull requests

3 participants