Code inspection: Cannot resolve property
Some attributes and framework APIs expect the name of a property as a string. If the string does not resolve to a valid property, the framework will not be able to use it correctly.
This inspection reports a string literal where only property names are allowed, but the text does not resolve to a matching property. In some contexts, the required property must also be public.
Example
class Person
{
public string Name { get; set; }
}
[SomeFrameworkAttribute("MissingProperty")]
class Example
{
}
class Person
{
public string Name { get; set; }
}
[SomeFrameworkAttribute("Name")]
class Example
{
}
01 April 2026