locked
Distinct Method is not a member of 'List(Of String)' RRS feed

  • Question

  • Hi, i use VS2015.

      Dim keywords As List(Of String) = listkeyword.Distinct.ToList <<< 'distinct' is not a membre of List(of String)

    But on MSDN : https://msdn.microsoft.com/fr-fr/library/bb348436%28v=vs.110%29.aspx this Method exist !!!!

    And i run an other instance of VS2015 and.. guess what ? distinct is a membre of List(Of String) !!! Project are different and the referents are not the same but the platform is the same and the target framework is 4.5 for both of them.

    It is weird... A suggestion ?

    Saturday, October 3, 2015 8:38 PM

Answers

  • Ok the anwser is :

    Imports System.Linq

    i'm worried about me :'-/

    • Proposed as answer by Weiwei Cai Monday, October 5, 2015 6:29 AM
    • Marked as answer by Weiwei Cai Wednesday, October 14, 2015 4:40 AM
    Saturday, October 3, 2015 8:41 PM

All replies

  • Ok the anwser is :

    Imports System.Linq

    i'm worried about me :'-/

    • Proposed as answer by Weiwei Cai Monday, October 5, 2015 6:29 AM
    • Marked as answer by Weiwei Cai Wednesday, October 14, 2015 4:40 AM
    Saturday, October 3, 2015 8:41 PM
  • Hi hemipsy123,

    Thank you for sharing your solutions and experience here. Please mark your reply as answer. It will be very beneficial for other community members who have similar questions. If you have any difficulty in future programming, we welcome you to post in forums again.


    Best Regards,
    Weiwei

    Monday, October 5, 2015 6:29 AM