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

Remove Type shadowing from C# Type #73

Closed
wants to merge 2 commits into from
Closed

Conversation

karimnaaji
Copy link
Member

No description provided.

@karimnaaji karimnaaji changed the title Use MatcherType instead of Type to remove shadowing from C# Type Remove Type shadowing from C# Type Nov 1, 2017
Copy link
Member

@matteblair matteblair left a comment

Choose a reason for hiding this comment

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

I would suggest that we make these Enums separate (not nested) type declarations. This seems to be a common and recommended practice in C# (https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/nested-types)

Edit: I'm guilty of only partially following this guideline so far - GeometryType is declared on its own but in another PR I added the UVMode Enum as a nested type, which I'll now update.

@karimnaaji
Copy link
Member Author

Makes sense after reading the guidelines, will refactor all nested types after #81, rebasing will be more convenient this way. Closing for the time being.

@karimnaaji karimnaaji closed this Nov 8, 2017
@karimnaaji karimnaaji deleted the type-shadowing branch December 1, 2017 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants