Salut, je vous savoir comment faire en C# une propriété avec un paramètre comme dans VB,
voila mon exemple VB Code:
Noté bien que cette propriété à un paramètre Col
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Public ReadOnly Property Caption(ByVal Col As Integer) As String Get Col -= 1 Try Return "" Catch ex As Exception Throw New Exception(ex.Message, ex.InnerException) End Try End Get End Property
et merci bien
Partager