Read Only Property Assignment
Identifies Property assigment references where Set or Let Property Members do not exist.
NEW! This inspection is only available in pre-release builds.
Reasoning
In general, the VBE editor catches this type of error and will not compile. However, there are a few scenarios where the error is overlooked by the compiler and an error is generated at runtime. To avoid the runtime error scenarios, the inspection flags all assignment references of a read-only property.
Default severity
Warning
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.ReadOnlyPropertyAssignmentInspection.cs (Prerelease-v2.5.2.6242)