Bonjour,

Je suis en train de passer une application vb en c# et j'aurais besoin d'aide pour ce bout de code.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
        Public ReadOnly Property Item(ByVal Key As String) As AsyncSocket
            Get
                Return m_SocketCol(Key)
            End Get
        End Property
 
        Public ReadOnly Property ItembyIndex(ByVal Key As Integer) As AsyncSocket
            Get
                Return m_SocketCol(m_SocketCol.GetKey(Key))
            End Get
        End Property
 
 
        Public Function Exists(ByVal SocketID As String) As Boolean
 
            Dim tmpSocket As ShadowMud.Sockets.AsyncSocket = Item(SocketID)
 
            If tmpSocket Is Nothing Then
 
                Return False
 
            Else
 
                Return True
 
            End If
 
        End Function
Merci de votre aide