Joining 2 string arrays to one singe array with unique values

All,

I am facing issues in identifying the unique values from 2 string arrays.

string_Arr1 = {“1111”,“2565”,“5685”,“1234”}
string_Arr2 = {“2865”,“1234”,“1111”}

Would require : just the unique values - {“1111”,“2565”,“5685”,“1234”,“2865”}

I have tried the below approach - (After converting to string by String.join (",", Both arrays),
String.Split(Environment.NewLine.TocharArray).Distinct().Toarray()

It isnt working, any other change would require? Pls advice.

[ Reference - How to remove duplicate values within a string variable ]

@Pradeep.Robot - Please check this…

image

2 Likes

Thanks @prasath17 . It works :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.