Posts

Showing posts from April 3, 2019

Get all unique values out of strings

Image
0 I am facing some problems while getting unique values out of string s. Example: string1 = "4,5" string2 = "7,9" string3 = "4,7,6,1" string4 = "1" After I need to get all unique values as an int . In this case result must be 6 . But each time the number of strings can change . Is this even possible? c# .net string share | improve this question edited Nov 22 '18 at 10:49 Dmitry Bychenko 112k 10 99 141 asked Nov 22 '18 at 6:31