'ReadOnly' property '<propertyname>' cannot be the target of an assignment
A ReadOnly
property occurs in a context that assigns a value to it. Only writable variables, properties, and array elements can have values assigned to them during execution.
Error ID: BC30098
- Remove the
ReadOnly
keyword from theProperty
statement declaring the variable, or remove the statement that assigns a value to it.
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: