You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following snippet should raise a warning. Since InjectionCop currently does not support annotating getters and setters separately, Properties should behave like fields (field qualified => setting only valid when value is of respective type => getting the respective type is guaranteed).
[CustomType]
public object ComplexCustomTypeProperty
{
get
{
// unsafe: returning empty type qualifier
return new object();
}
set { }
}
The text was updated successfully, but these errors were encountered:
Following snippet should raise a warning. Since InjectionCop currently does not support annotating getters and setters separately, Properties should behave like fields (field qualified => setting only valid when value is of respective type => getting the respective type is guaranteed).
The text was updated successfully, but these errors were encountered: