Removing duplicates from a list collection

后端 未结 4 1957
天命终不由人
天命终不由人 2021-01-21 02:37

Hope someone can help me. I am using c# and I am somewhat new to it. I am loading a text file into my app and splitting the data on \",\" I am reading part of string into a

4条回答
  •  终归单人心
    2021-01-21 03:37

    If you load the strings into a Set instead of into a List then duplicates are discarded automatically.

提交回复
热议问题