User1006193418 posted
Hi,
Why you are going to return an IList(Of String)? You can simply return a List(Of String).
''' </summary>
''' <returns></returns>
Public Function GetRoomUsersNames() As List(of String)
Dim a As Object
Dim str As New List(of String) = Nothing
ExpireUsers(userChatRoomSessionTimeout)
' MsgBox(RoomUsers.ToString())
For Each key As Object In RoomUsers.Keys
'MsgBox(RoomUsers.Keys.ToString())
a = (Me.RoomUsers(key.ToString()).UserName)
str.Add(a.ToString())
'Return a
Next
Return str
End Function
Best Regards,
Shengqing Yang