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

chore: csharp methods have the same visibility as structures and the class #83

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

kevaundray
Copy link
Contributor

Since the functions always have visibility public, if the class and the structures have visibility internal/private, then the c# compiler will complain with CS0051 -- In general, its good to be able to modify the accessibility of PInvoke methods as they should ideally not be directly accessed outside of the project.

@neuecc
Copy link
Member

neuecc commented Jul 8, 2024

Thank you, I will adopt the change as there seems to be no problems caused by the change.

@neuecc neuecc merged commit 068e1e7 into Cysharp:main Jul 8, 2024
@kevaundray
Copy link
Contributor Author

Thank you, I will adopt the change as there seems to be no problems caused by the change.

Thanks -- do you know when the next release will be with these changes?

@neuecc
Copy link
Member

neuecc commented Jul 9, 2024

released!

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