Local variables within methods of structures cannot be declared 'Static'
The Static
modifier cannot be used with local variables in structures.
Error ID: BC31400
Remove the
Static
modifier from the local variable.Declare the variable as a static variable with broader scope.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: