I have the following class :

```
Public Class titlesclass
Public Property Link As String
Public Property Title As String

Public Function Clear()
    Link.Distinct().ToArray()
    Title.Distinct().ToArray()

End Function
End Class

```

And the following code :

```
For Each title As Match In (New Regex(pattern).Matches(content)) 'Since you are only pulling a few strings, I thought a regex would be better.
            Dim letitre As New titlesclass
            letitre.Link = title.Groups("Data").Value
            letitre.Title = title.Groups("Dataa").Value
            lestitres.Add(letitre)
            'tempTitles2.Add(title.Groups("Dataa").Value)
        Next

```

I tried to delete the duplicated strings using the simple way

```
Dim titles2 = lestitres.Distinct().ToArray()

```

And calling the class function :

```
lestitres.Clear()

```

But the both propositions didn't work , i know that i'm missing something very simple but still can't find what it is