D
Dan Iregren
Hi,
I need to know when a property has ben modified (IsDirty).
The most obvious way to solve the problem is perhaps something like the
following;
Private m_sFirstName As String
Private m_bFirstName_changed As Boolean = False
Public Property FirstName() As String
Get
Return m_sFirstName
End Get
Set(ByVal Value As String)
If m_sFirstName = Value Then Return
m_sFirstName = Value
m_bFirstName_changed = True
End Set
End Property
In my case threre are hundreds of properties that need this
functionality and this solution has many drawbacks.
Does anyone have a better solution?
Thanks in advance
/Dan
I need to know when a property has ben modified (IsDirty).
The most obvious way to solve the problem is perhaps something like the
following;
Private m_sFirstName As String
Private m_bFirstName_changed As Boolean = False
Public Property FirstName() As String
Get
Return m_sFirstName
End Get
Set(ByVal Value As String)
If m_sFirstName = Value Then Return
m_sFirstName = Value
m_bFirstName_changed = True
End Set
End Property
In my case threre are hundreds of properties that need this
functionality and this solution has many drawbacks.
Does anyone have a better solution?
Thanks in advance
/Dan