S
shapper
Hello,
On my profile I have a property as follows:
Private _Levels As Generic.List(Of Enumeration.Level)
Public Property Levels() As Generic.List(Of Enumeration.Level)
Get
If _Levels Is Nothing Then
Return New Generic.List(Of Enumeration.Level)
End If
Return _Levels
End Get
Set(ByVal value As Generic.List(Of Enumeration.Level))
_Levels = value
End Set
End Property ' Levels
When I create a new profile I don't add any items to this property ...
only later.
However when later I try to add items they are not added.
The only way to make this work is to, when I create the profile for
the new user, the following:
Profile.Levels = New Generic.List(Of Level)
Just like an initialization.
Well, do I really need to do that?
Maybe my property is not completely right ...
Should I change something in my property?
Thanks,
Miguel
On my profile I have a property as follows:
Private _Levels As Generic.List(Of Enumeration.Level)
Public Property Levels() As Generic.List(Of Enumeration.Level)
Get
If _Levels Is Nothing Then
Return New Generic.List(Of Enumeration.Level)
End If
Return _Levels
End Get
Set(ByVal value As Generic.List(Of Enumeration.Level))
_Levels = value
End Set
End Property ' Levels
When I create a new profile I don't add any items to this property ...
only later.
However when later I try to add items they are not added.
The only way to make this work is to, when I create the profile for
the new user, the following:
Profile.Levels = New Generic.List(Of Level)
Just like an initialization.
Well, do I really need to do that?
Maybe my property is not completely right ...
Should I change something in my property?
Thanks,
Miguel