Public Class Class1
Private Withevents _cashLess as CashLess
Public Property CashLess() As CashLess
Get ' Noncompliant FP
Return _cashLess
End Get
Set(ByVal value As CashLess) ' Noncompliant FP
_cashLess = value
End Set
End Property
End Class
Background info: VB.NET compiler adds _XXX backing field for XXX WithEvents variable (therefore __cashLess) in order to deal with automatic AddHandler/RemoveHandler for Handles syntax.
Description
from community
Repro steps
Expected behavior
Should not raise FP
Actual behavior
Raises FP
Known workarounds
Remove
Withevents
Related information