Open
Description
Description
FP is raised by S4275 when the field in a property is set through a method.
sonar-dotnet version: 8.33
Repro steps
C#:
private int[] attributes;
public int[] Attributes
{
set { value.CopyTo(attributes, 0); } // Noncompliant - FP
}
VB.NET:
Private attributes_ As Integer()
Public WriteOnly Property Attributes As Integer()
Set(ByVal value As Integer()) ' Noncompliant - FP
value.CopyTo(attributes_, 0)
End Set
End Property
Activity