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

CC0074: readonly cannot be added to fixed fields in an unsafe struct #1015

Open
GGG-KILLER opened this issue Dec 15, 2018 · 0 comments
Open

Comments

@GGG-KILLER
Copy link

Example:

private unsafe struct _24CharsBuffer
{
    public fixed Char chars[24];
}

CC0074 is raised for the field chars, but the readonly modifier is invalid for fixed fields:
image

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

2 participants